Skip to content

Commit

Permalink
rust-lang#10379: Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Apr 22, 2015
1 parent 52ccc9d commit 23049f7
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, 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]
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 23049f7

Please sign in to comment.