Skip to content
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

Merged
merged 1 commit into from
Dec 25, 2015

Conversation

michaelwoerister
Copy link
Member

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".
@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

/me ponders if there is a way to write a test for this

@alexcrichton
Copy link
Member

r? @nikomatsakis

@eddyb
Copy link
Member

eddyb commented Dec 22, 2015

@nikomatsakis IIRC we already have some run-make tests peeking at the symbol list of a crate.

@nikomatsakis
Copy link
Contributor

so the code looks fine, r=me, my only hesitation would be whether we can test this for the future.

@michaelwoerister
Copy link
Member Author

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.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Dec 23, 2015

📌 Commit 4c4195f has been approved by nikomatsakis

Manishearth added a commit to Manishearth/rust that referenced this pull request Dec 25, 2015
…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
bors added a commit that referenced this pull request Dec 25, 2015
@bors bors merged commit 4c4195f into rust-lang:master Dec 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants