Skip to content

Commit 7462a32

Browse files
committed
---
yaml --- r: 140790 b: refs/heads/try2 c: 5614e83 h: refs/heads/master v: v3
1 parent f7a0e85 commit 7462a32

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: ccfb3ebf0310444804542c93e079a78c20bf5415
8+
refs/heads/try2: 5614e83e817a1d15286a1d4eeb6b665ddf5fe3cb
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/lint.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pub enum lint {
5151
implicit_copies,
5252
unrecognized_lint,
5353
non_implicitly_copyable_typarams,
54-
vecs_implicitly_copyable,
5554
deprecated_pattern,
5655
non_camel_case_types,
5756
type_limits,
@@ -132,14 +131,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
132131
default: warn
133132
}),
134133

135-
("vecs_implicitly_copyable",
136-
LintSpec {
137-
lint: vecs_implicitly_copyable,
138-
desc: "make vecs and strs not implicitly copyable \
139-
(only checked at top level)",
140-
default: warn
141-
}),
142-
143134
("implicit_copies",
144135
LintSpec {
145136
lint: implicit_copies,

branches/try2/src/librustc/middle/ty.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ use metadata::csearch;
1414
use metadata;
1515
use middle::const_eval;
1616
use middle::freevars;
17-
use middle::lint::{get_lint_level, allow};
18-
use middle::lint;
1917
use middle::resolve::{Impl, MethodInfo};
2018
use middle::resolve;
2119
use middle::ty;
@@ -241,7 +239,6 @@ struct ctxt_ {
241239
diag: @syntax::diagnostic::span_handler,
242240
interner: @mut HashMap<intern_key, ~t_box_>,
243241
next_id: @mut uint,
244-
vecs_implicitly_copyable: bool,
245242
legacy_modes: bool,
246243
cstore: @mut metadata::cstore::CStore,
247244
sess: session::Session,
@@ -992,14 +989,10 @@ pub fn mk_ctxt(s: session::Session,
992989
}
993990
}
994991

995-
let vecs_implicitly_copyable =
996-
get_lint_level(s.lint_settings.default_settings,
997-
lint::vecs_implicitly_copyable) == allow;
998992
@ctxt_ {
999993
diag: s.diagnostic(),
1000994
interner: @mut HashMap::new(),
1001995
next_id: @mut primitives::LAST_PRIMITIVE_ID,
1002-
vecs_implicitly_copyable: vecs_implicitly_copyable,
1003996
legacy_modes: legacy_modes,
1004997
cstore: s.cstore,
1005998
sess: s,
@@ -1946,8 +1939,7 @@ pub impl TypeContents {
19461939
}
19471940

19481941
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
19511943
}
19521944

19531945
fn needs_drop(&self, cx: ctxt) -> bool {

0 commit comments

Comments
 (0)