Skip to content

Fix def paths creation for items inlined from external crates.#30528

Merged
bors merged 1 commit into
rust-lang:masterfrom
michaelwoerister:fix-extern-def-paths
Dec 25, 2015
Merged

Fix def paths creation for items inlined from external crates.#30528
bors merged 1 commit into
rust-lang:masterfrom
michaelwoerister:fix-extern-def-paths

Conversation

@michaelwoerister

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @alexcrichton

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

@nikomatsakis

Copy link
Copy Markdown
Contributor

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

@alexcrichton

Copy link
Copy Markdown
Member

r? @nikomatsakis

@eddyb

eddyb commented Dec 22, 2015

Copy link
Copy Markdown
Contributor

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

@nikomatsakis

Copy link
Copy Markdown
Contributor

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

@michaelwoerister

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@bors r+

@bors

bors commented Dec 23, 2015

Copy link
Copy Markdown
Collaborator

📌 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