Skip to content

Commit 6f6f6e7

Browse files
committed
---
yaml --- r: 36639 b: refs/heads/try2 c: 55a3a5f h: refs/heads/master i: 36637: 56c105a 36635: b24a500 36631: b96bf5c 36623: b4b3194 36607: c37035d v: v3
1 parent 98bc2b2 commit 6f6f6e7

File tree

8 files changed

+15
-47
lines changed

8 files changed

+15
-47
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: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: a0d7b961706f1f808e7dd244e8bbd9515c073196
8+
refs/heads/try2: 55a3a5fcc973663af3694f32be7a4df10a1a2cd1
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ enum lint {
6060
unrecognized_lint,
6161
non_implicitly_copyable_typarams,
6262
vecs_implicitly_copyable,
63-
deprecated_item,
6463
deprecated_mode,
6564
deprecated_pattern,
6665
non_camel_case_types,
@@ -158,11 +157,6 @@ fn get_lint_dict() -> lint_dict {
158157
desc: ~"implicit copies of non implicitly copyable data",
159158
default: warn}),
160159

161-
(~"deprecated_item",
162-
@{lint: deprecated_item,
163-
desc: ~"warn about items marked deprecated",
164-
default: warn}),
165-
166160
(~"deprecated_mode",
167161
@{lint: deprecated_mode,
168162
desc: ~"warn about deprecated uses of modes",
@@ -418,7 +412,6 @@ fn check_item(i: @ast::item, cx: ty::ctxt) {
418412
check_item_non_camel_case_types(cx, i);
419413
check_item_heap(cx, i);
420414
check_item_structural_records(cx, i);
421-
check_item_deprecated(cx, i);
422415
check_item_deprecated_modes(cx, i);
423416
check_item_type_limits(cx, i);
424417
}
@@ -774,26 +767,6 @@ fn check_item_non_camel_case_types(cx: ty::ctxt, it: @ast::item) {
774767
}
775768
}
776769

777-
fn check_item_deprecated(tcx: ty::ctxt, it: @ast::item) {
778-
let at = attr::find_attrs_by_name(it.attrs, ~"deprecated");
779-
780-
if at.is_not_empty() {
781-
for at.each |attr| {
782-
let fmt = match attr.node.value.node {
783-
ast::meta_name_value(_, ref l) =>
784-
match l.node {
785-
ast::lit_str(ref reason) =>
786-
fmt!("deprecated: %s", **reason),
787-
_ => ~"item is deprecated"
788-
},
789-
_ => ~"item is deprecated"
790-
};
791-
tcx.sess.span_lint(deprecated_item, it.id, it.id, it.span,
792-
fmt);
793-
}
794-
}
795-
}
796-
797770
fn check_fn(tcx: ty::ctxt, fk: visit::fn_kind, decl: ast::fn_decl,
798771
_body: ast::blk, span: span, id: ast::node_id) {
799772
debug!("lint check_fn fk=%? id=%?", fk, id);

branches/try2/src/libsyntax/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn find_attrs_by_name(attrs: ~[ast::attribute], name: ~str) ->
182182
return vec::filter_map(attrs, filter);
183183
}
184184

185-
/// Search a list of meta items and return only those with a specific name
185+
/// Searcha list of meta items and return only those with a specific name
186186
fn find_meta_items_by_name(metas: ~[@ast::meta_item], name: ~str) ->
187187
~[@ast::meta_item] {
188188
let filter = fn@(m: &@ast::meta_item) -> Option<@ast::meta_item> {

branches/try2/src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2012-12-08 6630d75
2+
macos-i386 cdb0f0ebe99b8fea7688d9ae32860a63d1e05399
3+
macos-x86_64 c509dc252be6e1c5cf862c659235dc94bde397aa
4+
freebsd-x86_64 3df01545e10c25fd72f88ac7d0d836da23924e63
5+
linux-i386 339478a9ee8127c608d0d8e8c718d34db4073d31
6+
linux-x86_64 ed287803e3d3ea1164a9a00ce0e0b41345464bd8
7+
winnt-i386 62a541cb5fba7b7c9752d5d92cf17ce25125f4b1
8+
19
S 2012-11-26 be6613e
210
winnt-i386 f800925ce98d23f842a03be65f01aae0dfa1e897
311
freebsd-x86_64 23462b234b8ff3c0b6d6f94e5952178dbcef3488

branches/try2/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ mod name_pool {
2222
mod rust {
2323
#[legacy_exports];
2424

25-
import name_pool::add;
26-
// FIXME #3155: this is a hack
27-
import name_pool::__extensions__;
25+
use name_pool::add;
2826
export add;
2927
export rt;
3028
export cx;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fn main() {
2-
fn baz(_x: fn() -> int) {}
2+
fn baz(_x: fn(y: int) -> int) {}
33
for baz |_e| { } //~ ERROR should return `bool`
44
}

branches/try2/src/test/compile-fail/lint-deprecated-items.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

branches/try2/src/test/run-pass/crate-method-reexport-grrrrrrr.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
// name_pool::methods impl in the other crate is reachable from this
33
// crate.
44

5-
// xfail-test
65
// xfail-fast
76
// aux-build:crate-method-reexport-grrrrrrr2.rs
87

9-
use crate_method_reexport_grrrrrrr2;
8+
extern mod crate_method_reexport_grrrrrrr2;
109

1110
fn main() {
12-
import crate_method_reexport_grrrrrrr2::rust::add;
13-
import crate_method_reexport_grrrrrrr2::rust::cx;
11+
use crate_method_reexport_grrrrrrr2::rust::add;
12+
use crate_method_reexport_grrrrrrr2::rust::cx;
1413
let x = @();
1514
x.cx();
1615
let y = ();

0 commit comments

Comments
 (0)