From 23049f7395b5cba32e57001de6f657bd57614c5f Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 21 Apr 2015 22:10:22 -0700 Subject: [PATCH] #10379: Warnings --- src/test/auxiliary/linkage-visibility.rs | 5 +++++ 1 file changed, 5 insertions(+) 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() { }