Make vecs implicitly copyable for all of our projects.
This commit is contained in:
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_non_implicitly_copyable_typarams,no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
use rustc(vers = "0.2");
|
use rustc(vers = "0.2");
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
// cargo.rs - Rust package manager
|
// cargo.rs - Rust package manager
|
||||||
|
|
||||||
#[warn(no_non_implicitly_copyable_typarams)];
|
|
||||||
|
|
||||||
import syntax::{ast, codemap};
|
import syntax::{ast, codemap};
|
||||||
import syntax::parse;
|
import syntax::parse;
|
||||||
import rustc::metadata::filesearch::{get_cargo_root, get_cargo_root_nearest,
|
import rustc::metadata::filesearch::{get_cargo_root, get_cargo_root_nearest,
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
use syntax(vers = "0.2");
|
use syntax(vers = "0.2");
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ This behavior can be disabled with the `#[no_core]` crate attribute.
|
|||||||
// Don't link to core. We are core.
|
// Don't link to core. We are core.
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
export int, i8, i16, i32, i64;
|
export int, i8, i16, i32, i64;
|
||||||
export uint, u8, u16, u32, u64;
|
export uint, u8, u16, u32, u64;
|
||||||
export float, f32, f64;
|
export float, f32, f64;
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
import core::*;
|
import core::*;
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#[no_core];
|
#[no_core];
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
use syntax(vers = "0.2");
|
use syntax(vers = "0.2");
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#[no_core];
|
#[no_core];
|
||||||
|
|
||||||
|
#[warn(no_vecs_not_implicitly_copyable)];
|
||||||
|
|
||||||
use core(vers = "0.2");
|
use core(vers = "0.2");
|
||||||
use std(vers = "0.2");
|
use std(vers = "0.2");
|
||||||
use rustc(vers = "0.2");
|
use rustc(vers = "0.2");
|
||||||
|
|||||||
Reference in New Issue
Block a user