@@ -14,8 +14,6 @@ use metadata::csearch;
14
14
use metadata;
15
15
use middle:: const_eval;
16
16
use middle:: freevars;
17
- use middle:: lint:: { get_lint_level, allow} ;
18
- use middle:: lint;
19
17
use middle:: resolve:: { Impl , MethodInfo } ;
20
18
use middle:: resolve;
21
19
use middle:: ty;
@@ -241,7 +239,6 @@ struct ctxt_ {
241
239
diag : @syntax:: diagnostic:: span_handler ,
242
240
interner : @mut HashMap < intern_key , ~t_box_ > ,
243
241
next_id : @mut uint ,
244
- vecs_implicitly_copyable : bool ,
245
242
legacy_modes : bool ,
246
243
cstore : @mut metadata:: cstore:: CStore ,
247
244
sess : session:: Session ,
@@ -992,14 +989,10 @@ pub fn mk_ctxt(s: session::Session,
992
989
}
993
990
}
994
991
995
- let vecs_implicitly_copyable =
996
- get_lint_level ( s. lint_settings . default_settings ,
997
- lint:: vecs_implicitly_copyable) == allow;
998
992
@ctxt_ {
999
993
diag : s. diagnostic ( ) ,
1000
994
interner : @mut HashMap :: new ( ) ,
1001
995
next_id : @mut primitives:: LAST_PRIMITIVE_ID ,
1002
- vecs_implicitly_copyable : vecs_implicitly_copyable,
1003
996
legacy_modes : legacy_modes,
1004
997
cstore : s. cstore ,
1005
998
sess : s,
@@ -1946,8 +1939,7 @@ pub impl TypeContents {
1946
1939
}
1947
1940
1948
1941
fn nonimplicitly_copyable ( cx : ctxt ) -> TypeContents {
1949
- let base = TypeContents :: noncopyable ( cx) + TC_OWNED_POINTER ;
1950
- if cx. vecs_implicitly_copyable { base} else { base + TC_OWNED_VEC }
1942
+ TypeContents :: noncopyable ( cx) + TC_OWNED_POINTER + TC_OWNED_VEC
1951
1943
}
1952
1944
1953
1945
fn needs_drop ( & self , cx : ctxt ) -> bool {
0 commit comments