Skip to content

Commit

Permalink
rust-lang#10356: Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Apr 29, 2015
1 parent ac3557e commit 02449df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/auxiliary/linkage-visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

#![feature(std_misc)]

// 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]
Expand All @@ -25,6 +29,7 @@ pub fn foo2<T>() {
#[no_mangle]
fn bar() { }

#[allow(dead_code)]
#[no_mangle]
fn baz() { }

Expand Down

0 comments on commit 02449df

Please sign in to comment.