Add note for possible crate mismatches in type errors#28300
Merged
bors merged 6 commits intorust-lang:masterfrom Sep 9, 2015
Merged
Add note for possible crate mismatches in type errors#28300bors merged 6 commits intorust-lang:masterfrom
bors merged 6 commits intorust-lang:masterfrom
Conversation
…m two different crate of the same name (rust-lang#22750)
Contributor
There was a problem hiding this comment.
IIRC all FIXMEs should have an associated issue
Member
Author
There was a problem hiding this comment.
fixed, it's the same bug (since this is only a partial fix)
Contributor
|
So excited for this patch to land! The messages look good to me. |
Member
There was a problem hiding this comment.
You should check that the crates are different - for example:
fn main() {
let _ = [{struct Foo; Foo}, {struct Foo; Foo}];
}The error in the above code will see the path "main::Foo" for both of the two different types.
Member
There was a problem hiding this comment.
You'll want to look up the crate names from the crate numbers in the DefIds (and/or find the subset of the path which refers to the extern crate item).
Member
|
@bors r+ |
Collaborator
|
📌 Commit c65d338 has been approved by |
Collaborator
bors
added a commit
that referenced
this pull request
Sep 9, 2015
Partially fixes #22750 I'll write a test for this when I figure out how to. r? @eddyb cc @steveklabnik
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partially fixes #22750
I'll write a test for this when I figure out how to.
r? @eddyb
cc @steveklabnik