]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/stack_overflow.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / sys / sgx / stack_overflow.rs
index 0176b748a87c6f6192d65648755202a8408e24d7..e63fa2bed65d56700f5a67447f5bc134602bf205 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 pub struct Handler;
 
 impl Handler {
@@ -16,6 +6,7 @@ pub unsafe fn new() -> Handler {
     }
 }
 
+#[cfg_attr(test, allow(dead_code))]
 pub unsafe fn init() {
 }