-
Notifications
You must be signed in to change notification settings - Fork 1.7k
rustup #5377
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
rustup #5377
Conversation
There's still this left
I need to figure out which commit causes this (could be the rustc_hir_pretty one) |
@matthiaskrgr Seems like paths have to be printed from their source snippets now: https://github.com/rust-lang/rust/pull/70344/files#diff-f7c5ab0a133d5d59a6ce76d8c88ff203R1316-R1320 first error should be resolved by this: -if !&trait_ref.trait_def_id().is_local();
+if !&trait_ref.trait_def_id().map_or(false, |def_id| def_id.is_local()); |
Yeah, it should work now :) |
Tests are failing :/ |
Yeah, You can resolve it like it was done in rustc: https://github.com/Centril/rust/blob/b2f7a9502bafebfa9ce0b61ff24a19c26e66c93b/src/librustc_privacy/lib.rs#L1316-L1321 and use |
@bors r+ |
📌 Commit 0982097 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
I would recommend trying to avoid any further dependence on HIR pretty printing and trying to remove that which you already have. It's something we might want to remove and its not really a good fit for diagnostics in either case. |
changelog: none