-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Resolve the prelude import in build_reduced_graph
#145322
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
base: master
Are you sure you want to change the base?
Resolve the prelude import in build_reduced_graph
#145322
Conversation
Could you also add this case to tests? //@ check-pass
#![feature(custom_inner_attributes)]
#![rustfmt::skip]
fn main() {
let _ = todo!();
} |
I am currently unable to implement any of your suggestions; it is the prelude import that can not be resolved during |
@Voultapher |
Suggestions worked, however, we can't emit an error when the prelude is already set, I just used a panic for ease of use, and it was triggered when compiling stdlib:
I also can't avoid to only resolve the prelude path when the prelude is not set. Errors like these get emitted:
@rustbot ready |
Okay, I see, in |
This comment has been minimized.
This comment has been minimized.
@petrochenkov I've tested #139493 with this PR and I can confirm it does resolve the problem in question, but I'm also seeing the same UI test failures reported by the CI here. |
Small addendum, I had hopped that fixing the |
Which tests are you talking about? |
I also tried to make CI green, those changes are in the second commit. @rustbot ready |
This pr tries to resolve the prelude import at the
build_reduced_graph
stage.Part of batched import resolution in #145108 (cherry picked commit) and maybe needed for #139493.
r? petrochenkov