Skip to content

Commit 33dd48a

Browse files
committed
---
yaml --- r: 15403 b: refs/heads/try c: a6e748a h: refs/heads/master i: 15401: 62a2ee3 15399: a0bc997 v: v3
1 parent 7240a7f commit 33dd48a

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 0094ffd99b09f2fc8c639df28b12e10211cff6ce
5+
refs/heads/try: a6e748a1d9795f59f9ca954dbf1ad82d238c3990
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/back/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ fn symbol_hash(tcx: ty::ctxt, sha: sha1, t: ty::t, link_meta: link_meta) ->
420420
sha.reset();
421421
sha.input_str(link_meta.name);
422422
sha.input_str("-");
423-
// FIXME: This wants to be link_meta.meta_hash
424-
sha.input_str(link_meta.name);
423+
sha.input_str(link_meta.extras_hash);
425424
sha.input_str("-");
426425
sha.input_str(encoder::encoded_ty(tcx, t));
427426
let hash = truncated_sha1_result(sha);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[link(name = "crateresolve6",
2+
vers = "0.1",
3+
calories = "100")];
4+
5+
#[crate_type = "lib"];
6+
7+
fn f() -> int { 100 }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[link(name = "crateresolve6",
2+
vers = "0.1",
3+
calories = "200")];
4+
5+
#[crate_type = "lib"];
6+
7+
fn f() -> int { 200 }
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// xfail-fast
2+
// aux-build:crateresolve6-1.rs
3+
// aux-build:crateresolve6-2.rs
4+
// error-pattern:mismatched types
5+
6+
// These both have the same version but differ in other metadata
7+
use cr6_1 (name = "crateresolve6", vers = "0.1", calories="100");
8+
use cr6_2 (name = "crateresolve6", vers = "0.1", calories="200");
9+
10+
fn main() {
11+
assert cr6_1::f() == 100;
12+
assert cr6_2::f() == 200;
13+
}

0 commit comments

Comments
 (0)