Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check metadata hash when loading transitive dependent crates
Fix issue #2138
- Loading branch information
Showing
3 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// xfail-fast | ||
// aux-build:crateresolve6-1.rs | ||
// aux-build:crateresolve6-2.rs | ||
|
||
// These both have the same version but differ in other metadata | ||
mod a { | ||
use cr6_1 (name = "crateresolve6", vers = "0.1", calories="100"); | ||
fn f() -> int { cr6_1::f() } | ||
} | ||
|
||
mod b { | ||
use cr6_2 (name = "crateresolve6", vers = "0.1", calories="200"); | ||
fn f() -> int { cr6_2::f() } | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// xfail-fast | ||
// aux-build:crateresolve6-1.rs | ||
// aux-build:crateresolve6-2.rs | ||
// aux-build:crateresolve7x.rs | ||
|
||
use crateresolve7x; | ||
|
||
fn main() { | ||
assert crateresolve7x::a::f() == 100; | ||
assert crateresolve7x::b::f() == 200; | ||
} |