Skip to content

Commit e10c9b5

Browse files
committed
rust-lang#10356: Warnings
1 parent b4e663b commit e10c9b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/auxiliary/linkage-visibility.rs

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#![feature(std_misc)]
1212

13+
// We're testing linkage visibility; the compiler warns us, but we want to
14+
// do the runtime check that these functions aren't exported.
15+
#![allow(private_no_mangle_fns)]
16+
1317
use std::dynamic_lib::DynamicLibrary;
1418

1519
#[no_mangle]
@@ -25,6 +29,7 @@ pub fn foo2<T>() {
2529
#[no_mangle]
2630
fn bar() { }
2731

32+
#[allow(dead_code)]
2833
#[no_mangle]
2934
fn baz() { }
3035

0 commit comments

Comments
 (0)