-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix def paths creation for items inlined from external crates. #30528
Conversation
Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec".
(rust_highfive has picked a reviewer for you, use r? to override) |
/me ponders if there is a way to write a test for this |
@nikomatsakis IIRC we already have some run-make tests peeking at the symbol list of a crate. |
so the code looks fine, r=me, my only hesitation would be whether we can test this for the future. |
Def paths will show up in the upcoming codegen unit partitioning tests (that's how I became aware of the problem in the first place) so this will be tested once those land. |
@bors r+ |
📌 Commit 4c4195f has been approved by |
…hs, r=nikomatsakis Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec". cc @rust-lang/compiler
Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec".
cc @rust-lang/compiler