diff --git a/src/cargo/cargo.rc b/src/cargo/cargo.rc index 2ed264719c2..a23b6a2ff51 100644 --- a/src/cargo/cargo.rc +++ b/src/cargo/cargo.rc @@ -19,6 +19,8 @@ #[no_core]; +#[warn(no_non_implicitly_copyable_typarams,no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); use rustc(vers = "0.2"); diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index e6b89ce786b..eee76f24ec2 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -1,7 +1,5 @@ // cargo.rs - Rust package manager -#[warn(no_non_implicitly_copyable_typarams)]; - import syntax::{ast, codemap}; import syntax::parse; import rustc::metadata::filesearch::{get_cargo_root, get_cargo_root_nearest, diff --git a/src/compiletest/compiletest.rc b/src/compiletest/compiletest.rc index ba04952df5d..d4c4cb482e0 100644 --- a/src/compiletest/compiletest.rc +++ b/src/compiletest/compiletest.rc @@ -2,6 +2,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); diff --git a/src/fuzzer/fuzzer.rc b/src/fuzzer/fuzzer.rc index c04fa0d2f39..1a5630b0e2f 100644 --- a/src/fuzzer/fuzzer.rc +++ b/src/fuzzer/fuzzer.rc @@ -4,6 +4,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); use syntax(vers = "0.2"); diff --git a/src/libcore/core.rc b/src/libcore/core.rc index 6aa24b9b651..84cebcceccd 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -31,6 +31,8 @@ This behavior can be disabled with the `#[no_core]` crate attribute. // Don't link to core. We are core. #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + export int, i8, i16, i32, i64; export uint, u8, u16, u32, u64; export float, f32, f64; diff --git a/src/libstd/std.rc b/src/libstd/std.rc index 7558f57a46c..8d2e0732833 100644 --- a/src/libstd/std.rc +++ b/src/libstd/std.rc @@ -10,6 +10,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); import core::*; diff --git a/src/libsyntax/syntax.rc b/src/libsyntax/syntax.rc index 8284138c675..53e21e4214c 100644 --- a/src/libsyntax/syntax.rc +++ b/src/libsyntax/syntax.rc @@ -8,6 +8,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); diff --git a/src/rustc/driver/rustc.rs b/src/rustc/driver/rustc.rs index 5be463ee7a9..db185215bea 100644 --- a/src/rustc/driver/rustc.rs +++ b/src/rustc/driver/rustc.rs @@ -1,4 +1,5 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; use core(vers = "0.2"); use std(vers = "0.2"); diff --git a/src/rustc/rustc.rc b/src/rustc/rustc.rc index 6a4d447af23..7cdaeb9273b 100644 --- a/src/rustc/rustc.rc +++ b/src/rustc/rustc.rc @@ -11,6 +11,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); use syntax(vers = "0.2"); diff --git a/src/rustdoc/rustdoc.rc b/src/rustdoc/rustdoc.rc index b7fc9de5994..8e6dc2e6ccf 100644 --- a/src/rustdoc/rustdoc.rc +++ b/src/rustdoc/rustdoc.rc @@ -11,6 +11,8 @@ #[no_core]; +#[warn(no_vecs_not_implicitly_copyable)]; + use core(vers = "0.2"); use std(vers = "0.2"); use rustc(vers = "0.2");