Skip to content

Commit c9a7a52

Browse files
committed
---
yaml --- r: 36742 b: refs/heads/try2 c: 99fa9c3 h: refs/heads/master v: v3
1 parent e1e6909 commit c9a7a52

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
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: 593f4142548100f9d37909ca10df35615a91abec
8+
refs/heads/try2: 99fa9c3cabda81a4121a12d497589da10b909ac7
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: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ enum lint {
6565
non_camel_case_types,
6666
structural_records,
6767
type_limits,
68-
default_methods,
6968

7069
managed_heap_memory,
7170
owned_heap_memory,
@@ -201,12 +200,7 @@ fn get_lint_dict() -> lint_dict {
201200
(~"type_limits",
202201
@{lint: type_limits,
203202
desc: ~"comparisons made useless by limits of the types involved",
204-
default: warn}),
205-
206-
(~"default_methods",
207-
@{lint: default_methods,
208-
desc: ~"allow default methods",
209-
default: forbid}),
203+
default: warn})
210204

211205
/* FIXME(#3266)--make liveness warnings lintable
212206
(~"unused_variable",
@@ -420,7 +414,6 @@ fn check_item(i: @ast::item, cx: ty::ctxt) {
420414
check_item_structural_records(cx, i);
421415
check_item_deprecated_modes(cx, i);
422416
check_item_type_limits(cx, i);
423-
check_item_default_methods(cx, i);
424417
}
425418

426419
// Take a visitor, and modify it so that it will not proceed past subitems.
@@ -570,27 +563,6 @@ fn check_item_type_limits(cx: ty::ctxt, it: @ast::item) {
570563
visit::visit_item(it, (), visit);
571564
}
572565

573-
fn check_item_default_methods(cx: ty::ctxt, item: @ast::item) {
574-
match item.node {
575-
ast::item_trait(_, _, methods) => {
576-
for methods.each |method| {
577-
match *method {
578-
ast::required(*) => {}
579-
ast::provided(*) => {
580-
cx.sess.span_lint(
581-
default_methods,
582-
item.id,
583-
item.id,
584-
item.span,
585-
~"default methods are experimental");
586-
}
587-
}
588-
}
589-
}
590-
_ => {}
591-
}
592-
}
593-
594566
fn check_item_structural_records(cx: ty::ctxt, it: @ast::item) {
595567
let visit = item_stopping_visitor(visit::mk_simple_visitor(@{
596568
visit_expr: fn@(e: @ast::expr) {

branches/try2/src/test/compile-fail/lint-default-methods.rs

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

0 commit comments

Comments
 (0)