We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d47766 commit 5e678cfCopy full SHA for 5e678cf
src/test/run-make-fulldeps/extern-flag-fun/Makefile
@@ -14,3 +14,6 @@ all:
14
--extern bar=$(TMPDIR)/libbar.rlib \
15
--extern bar=$(TMPDIR)/libbar-a.rlib
16
$(RUSTC) foo.rs --extern bar=$(TMPDIR)/libbar.rlib
17
+ # Try to be sneaky and load a private crate from with a non-private name.
18
+ $(RUSTC) rustc.rs -Zforce-unstable-if-unmarked --crate-type=rlib
19
+ $(RUSTC) gated_unstable.rs --extern alloc=$(TMPDIR)/librustc.rlib 2>&1 | $(CGREP) 'rustc_private'
src/test/run-make-fulldeps/extern-flag-fun/gated_unstable.rs
@@ -0,0 +1,3 @@
1
+extern crate alloc;
2
+
3
+fn main() {}
src/test/run-make-fulldeps/extern-flag-fun/rustc.rs
@@ -0,0 +1 @@
+pub fn foo() {}
0 commit comments