resolve: Do not consider traits from ambiguous imports to be in scope#147995
resolve: Do not consider traits from ambiguous imports to be in scope#147995petrochenkov wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
@bors try |
This comment has been minimized.
This comment has been minimized.
resolve: Do not consider traits from ambiguous imports to be in scope
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
| impl Trait for u8 {} | ||
| } | ||
|
|
||
| fn test1() { |
There was a problem hiding this comment.
Nit: Could you add #[rustfmt::skip] to this and test2, I'd be worried about the test no longer testing the right thing if someone decided to reformat these.
|
🎉 Experiment
Footnotes
|
|
All the root regressions (31 of them) are , as expected. I guess we need to somehow preserve these traits in scope, but keep them poisoned, so an error (or a lint) can be reported later during type checking. |
Or a FCW, I think it makes sense to break this someday. |
FCW will also have to be reported in type checking, can't do that without keeping the poisoned traits in scope. |
I'll try to implement both the alternatives and look what's simpler. |
|
Closing in favor of #149058. |
One of unblocking steps for #145108.
Fixes #147992.