Skip to content

Commit 476e69f

Browse files
Adapt codegen-unit test to shared-generics.
1 parent 7199524 commit 476e69f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/codegen-units/partitioning/extern-generic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// ignore-tidy-linelength
1212
// We specify -Z incremental here because we want to test the partitioning for
1313
// incremental compilation
14-
// compile-flags:-Zprint-trans-items=eager -Zincremental=tmp/partitioning-tests/extern-generic
14+
// compile-flags:-Zprint-trans-items=eager -Zincremental=tmp/partitioning-tests/extern-generic -Zshare-generics=y
1515

1616
#![allow(dead_code)]
1717
#![crate_type="lib"]
@@ -59,4 +59,4 @@ mod mod3 {
5959
// Make sure the two generic functions from the extern crate get instantiated
6060
// once for the current crate
6161
//~ TRANS_ITEM fn cgu_generic_function::foo[0]<&str> @@ cgu_generic_function.volatile[External]
62-
//~ TRANS_ITEM fn cgu_generic_function::bar[0]<&str> @@ cgu_generic_function.volatile[Internal]
62+
//~ TRANS_ITEM fn cgu_generic_function::bar[0]<&str> @@ cgu_generic_function.volatile[External]

0 commit comments

Comments
 (0)