]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen-units/partitioning/extern-generic.rs
trans: Treat generics like regular functions, not like #[inline] functions during...
[rust.git] / src / test / codegen-units / partitioning / extern-generic.rs
index 58f904f48a17dad25d5d4625182610bec2fbffce..db36b50702a43efd090be185914bddd167dd9527 100644 (file)
@@ -57,8 +57,8 @@ fn non_user() {}
 }
 
 // Make sure the two generic functions from the extern crate get instantiated
-// privately in every module they are use in.
-//~ TRANS_ITEM fn cgu_generic_function::foo[0]<&str> @@ extern_generic[Internal] extern_generic-mod1[Internal] extern_generic-mod2[Internal] extern_generic-mod1-mod1[Internal]
-//~ TRANS_ITEM fn cgu_generic_function::bar[0]<&str> @@ extern_generic[Internal] extern_generic-mod1[Internal] extern_generic-mod2[Internal] extern_generic-mod1-mod1[Internal]
+// once for the current crate
+//~ TRANS_ITEM fn cgu_generic_function::foo[0]<&str> @@ cgu_generic_function.volatile[External]
+//~ TRANS_ITEM fn cgu_generic_function::bar[0]<&str> @@ cgu_generic_function.volatile[External]
 
 //~ TRANS_ITEM drop-glue i8