Make vecs implicitly copyable for all of our projects.

This commit is contained in:
Michael Sullivan 2012-06-04 18:34:24 -07:00
parent 01a6c713c3
commit 6396e2c3c3
10 changed files with 17 additions and 2 deletions

View File

@ -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");

View File

@ -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,

View File

@ -2,6 +2,8 @@
#[no_core];
#[warn(no_vecs_not_implicitly_copyable)];
use core(vers = "0.2");
use std(vers = "0.2");

View File

@ -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");

View File

@ -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;

View File

@ -10,6 +10,8 @@
#[no_core];
#[warn(no_vecs_not_implicitly_copyable)];
use core(vers = "0.2");
import core::*;

View File

@ -8,6 +8,8 @@
#[no_core];
#[warn(no_vecs_not_implicitly_copyable)];
use core(vers = "0.2");
use std(vers = "0.2");

View File

@ -1,4 +1,5 @@
#[no_core];
#[warn(no_vecs_not_implicitly_copyable)];
use core(vers = "0.2");
use std(vers = "0.2");

View File

@ -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");

View File

@ -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");