Skip to content

Commit 63c6f5b

Browse files
committed
---
yaml --- r: 64252 b: refs/heads/snap-stage3 c: 3fa5203 h: refs/heads/master v: v3
1 parent 436695e commit 63c6f5b

24 files changed

+3
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 19446418bcc7ae48b23dd89d04e78c3d552e3001
4+
refs/heads/snap-stage3: 3fa5203273ad5a88b20b77b83a7a2e42cbcc3602
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
236236
LintSpec {
237237
lint: default_methods,
238238
desc: "allow default methods",
239-
default: deny
239+
default: allow
240240
}),
241241

242242
("unused_unsafe",

branches/snap-stage3/src/libstd/iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ implementing the `Iterator` trait.
1717
1818
*/
1919

20-
#[allow(default_methods)]; // solid enough for the use case here
20+
#[allow(default_methods)]; // still off by default in stage0
2121

2222
use cmp;
2323
use iter::Times;

branches/snap-stage3/src/test/auxiliary/issue_3979_traits.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ trait Positioned {
1818
fn X(&self) -> int;
1919
}
2020

21-
#[allow(default_methods)]
2221
trait Movable: Positioned {
2322
fn translate(&self, dx: int) {
2423
self.SetX(self.X() + dx);

branches/snap-stage3/src/test/auxiliary/trait_default_method_xc_aux.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[allow(default_methods)];
21

32
pub struct Something { x: int }
43

branches/snap-stage3/src/test/run-pass/bug-7183-generics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)]
1211
trait Speak {
1312
fn say(&self, s:&str) -> ~str;
1413
fn hi(&self) -> ~str { hello(self) }

branches/snap-stage3/src/test/run-pass/bug-7295.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211
pub trait Foo<T> {
1312
pub fn func1<U>(&self, t: U);
1413

branches/snap-stage3/src/test/run-pass/default-method-simple.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Foo {
1413
fn f(&self) {

branches/snap-stage3/src/test/run-pass/issue-3563-2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)]
1211
trait Canvas {
1312
fn add_point(&self, point: &int);
1413
fn add_points(&self, shapes: &[int]) {

branches/snap-stage3/src/test/run-pass/issue-3563-3.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ impl ToStr for AsciiArt {
113113

114114
// This is similar to an interface in other languages: it defines a protocol which
115115
// developers can implement for arbitrary concrete types.
116-
#[allow(default_methods)]
117116
trait Canvas {
118117
fn add_point(&mut self, shape: Point);
119118
fn add_rect(&mut self, shape: Rect);

branches/snap-stage3/src/test/run-pass/issue-3683.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Foo {
1413
fn a(&self) -> int;

branches/snap-stage3/src/test/run-pass/issue-3979-generics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ trait Positioned<S> {
1414
fn X(&self) -> S;
1515
}
1616

17-
#[allow(default_methods)]
1817
trait Movable<S, T>: Positioned<T> {
1918
fn translate(&self, dx: T) {
2019
self.SetX(self.X() + dx);

branches/snap-stage3/src/test/run-pass/issue-3979.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ trait Positioned {
1616
fn X(&self) -> int;
1717
}
1818

19-
#[allow(default_methods)]
2019
trait Movable: Positioned {
2120
fn translate(&mut self, dx: int) {
2221
let x = self.X();

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait A<T> {
1413
fn g<U>(&self, x: T, y: U) -> (T, U) { (x, y) }

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait A<T> {
1413
fn g(&self, x: T) -> T { x }

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst3.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait A {
1413
fn g<T>(&self, x: T, y: T) -> (T, T) { (x, y) }

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst4.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait A<T> {
1413
fn g(&self, x: uint) -> uint { x }

branches/snap-stage3/src/test/run-pass/trait-default-method-bound.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait A {
1413
fn g(&self) -> int { 10 }

branches/snap-stage3/src/test/run-pass/trait-default-method-xc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// xfail-fast
22
// aux-build:trait_default_method_xc_aux.rs
33

4-
#[allow(default_methods)];
54

65
extern mod aux(name = "trait_default_method_xc_aux");
76
use aux::{A, TestEquality, Something};

branches/snap-stage3/src/test/run-pass/trait-with-bounds-default.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pub trait Clone2 {
1515
fn clone(&self) -> Self;
1616
}
1717

18-
#[allow(default_methods)]
1918
trait Getter<T: Clone> {
2019
fn do_get(&self) -> T;
2120

branches/snap-stage3/src/test/run-pass/traits-default-method-macro.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Foo {
1413
fn bar(&self) -> ~str {

branches/snap-stage3/src/test/run-pass/traits-default-method-mut.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Foo {
1413
fn foo(&self, mut v: int) { v = 1; }

branches/snap-stage3/src/test/run-pass/traits-default-method-self.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Cat {
1413
fn meow(&self) -> bool;

branches/snap-stage3/src/test/run-pass/traits-default-method-trivial.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(default_methods)];
1211

1312
trait Cat {
1413
fn meow(&self) -> bool;

0 commit comments

Comments
 (0)