diff --git a/src/test/auxiliary/linkage-visibility.rs b/src/test/auxiliary/linkage-visibility.rs index d96dfd848f3f0..e04029a4e767f 100644 --- a/src/test/auxiliary/linkage-visibility.rs +++ b/src/test/auxiliary/linkage-visibility.rs @@ -10,6 +10,10 @@ #![feature(std_misc, old_path)] +// We're testing linkage visibility; the compiler warns us, but we want to +// do the runtime check that these functions aren't exported. +#![allow(private_no_mangle_fns)] + use std::dynamic_lib::DynamicLibrary; #[no_mangle] @@ -25,6 +29,7 @@ pub fn foo2() { #[no_mangle] fn bar() { } +#[allow(dead_code)] #[no_mangle] fn baz() { }