-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Erase escaping late-bound regions when probing for ambiguous associated types #109102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erase escaping late-bound regions when probing for ambiguous associated types #109102
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
@@ -2395,13 +2395,22 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { | |||
tcx, | |||
infcx.fresh_substs_for_item(DUMMY_SP, impl_def_id), | |||
); | |||
let universe = infcx.create_next_universe(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need to make a universe unless we need it, but also we're on the error path, so it doesn't matter here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this as a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but someone else should take a look.
r? rust-lang/types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with comment
@@ -2395,13 +2395,22 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { | |||
tcx, | |||
infcx.fresh_substs_for_item(DUMMY_SP, impl_def_id), | |||
); | |||
let universe = infcx.create_next_universe(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this as a comment
559a980
to
79ad7cc
Compare
@bors r=jackh726 rollup (diagnostics only) |
…-lt-binder, r=jackh726 Erase escaping late-bound regions when probing for ambiguous associated types Fixes rust-lang#109090
…-lt-binder, r=jackh726 Erase escaping late-bound regions when probing for ambiguous associated types Fixes rust-lang#109090
…-lt-binder, r=jackh726 Erase escaping late-bound regions when probing for ambiguous associated types Fixes rust-lang#109090
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#109102 (Erase escaping late-bound regions when probing for ambiguous associated types) - rust-lang#109200 (Fix index out of bounds in `suggest_trait_fn_ty_for_impl_fn_infer`) - rust-lang#109211 (E0206 - update description ) - rust-lang#109222 (Do not ICE for unexpected lifetime with ConstGeneric rib) - rust-lang#109235 (fallback to lstat when stat fails on Windows) - rust-lang#109248 (Pass the right HIR back from `get_fn_decl`) - rust-lang#109251 (Suggest surrounding the macro with `{}` to interpret as a statement) - rust-lang#109256 (Check for llvm-tools before install) - rust-lang#109257 (resolve: Improve debug impls for `NameBinding`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #109090