-
Notifications
You must be signed in to change notification settings - Fork 13.4k
do not propagate inferred bounds on trait objects if they involve Self
#56003
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
do not propagate inferred bounds on trait objects if they involve Self
#56003
Conversation
Urgh, rebasing. |
r=me |
21d4688
to
6575988
Compare
@bors r=eddyb |
📌 Commit 6575988 has been approved by |
@bors p=1 -- regression, rust-2018, etc |
💔 Test failed - status-appveyor |
@bors retry Seems spurious. |
FWIW, I think I fixed this particular error in the latest cargo (once #55999 lands, fixed by rust-lang/cargo#6292). I'm a little concerned because this coincidentally happened earlier today (rust-lang/cargo#6319), and these are the first occurrences I'm aware of since that test was added 7 months ago. Hopefully it will be fixed. Would you mind pinging me whenever you see a spurious cargo error? I've been trying to get cargo's tests to be more reliable, and any data is helpful. |
⌛ Testing commit 6575988 with merge e4927b4c0488c6a6c32ad45e933c3f8ad71ef3c5... |
💔 Test failed - status-appveyor |
@bors: retry |
☀️ Test successful - status-appveyor, status-travis |
beta backport rollup Backports of some beta-approved PRs - [x] #55385: NLL: cast causes failure to promote to static - [x] #56043: remove "approx env bounds" if we already know from trait - [x] #56003: do not propagate inferred bounds on trait objects if they involve `Self` - [x] #55852: Rewrite `...` as `..=` as a `MachineApplicable` 2018 idiom lint - [x] #55804: rustdoc: don't inline `pub use some_crate` unless directly asked to - [x] #56059: Increase `Duration` approximate equal threshold to 1us - [x] Keep resolved defs in path prefixes and emit them in save-analysis #54145 - [x] Adjust Ids of path segments in visibility modifiers #55487 - [x] save-analysis: bug fix and optimisation. #55521 - [x] save-analysis: be even more aggressive about ignorning macro-generated defs #55936 - [x] save-analysis: fallback to using path id #56060 - [x] save-analysis: Don't panic for macro-generated use globs #55879 - [x] Add temporary renames to manifests for rustfmt/clippy #56081 - [x] Revert #51601 #56049 - [x] Fix stability hole with `static _` #55983 - [x] #56077 - [x] Fix Rustdoc ICE when checking blanket impls #55258 - [x] Updated RELEASES.md for 1.31.0 #55678 - [x] ~~#56061~~ #56111 - [x] Stabilize `extern_crate_item_prelude` #56032 Still running tests locally, and I plan to backport @nrc's other PRs too (cc @petrochenkov -- thanks for the advice)
Fixes #54467, which is a Rust 2018 Release blocking issue.
r? @eddyb