Skip to content

Commit 6be7f02

Browse files
committed
---
yaml --- r: 196578 b: refs/heads/auto c: 49f2a56 h: refs/heads/master v: v3
1 parent fea60cb commit 6be7f02

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 48a023c2e946f6df4217c62be71313484e673c40
13+
refs/heads/auto: 49f2a566663b125334245563f4dbe51778296feb
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/test/compile-fail/shadowed-lifetime.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ struct Foo<'a>(&'a isize);
1515
impl<'a> Foo<'a> {
1616
//~^ NOTE shadowed lifetime `'a` declared here
1717
fn shadow_in_method<'a>(&'a self) -> &'a isize {
18-
//~^ WARNING lifetime name `'a` shadows another lifetime name that is already in scope
19-
//~| NOTE deprecated
18+
//~^ ERROR lifetime name `'a` shadows another lifetime name that is already in scope
2019
self.0
2120
}
2221

2322
fn shadow_in_type<'b>(&'b self) -> &'b isize {
2423
//~^ NOTE shadowed lifetime `'b` declared here
2524
let x: for<'b> fn(&'b isize) = panic!();
26-
//~^ WARNING lifetime name `'b` shadows another lifetime name that is already in scope
27-
//~| NOTE deprecated
25+
//~^ ERROR lifetime name `'b` shadows another lifetime name that is already in scope
2826
self.0
2927
}
3028

@@ -35,9 +33,4 @@ impl<'a> Foo<'a> {
3533
}
3634

3735
fn main() {
38-
// intentional error that occurs after `resolve_lifetime` runs,
39-
// just to ensure that this test fails to compile; when shadowed
40-
// lifetimes become either an error or a proper lint, this will
41-
// not be needed.
42-
let x: isize = 3_usize; //~ ERROR mismatched types
4336
}

branches/auto/src/test/run-pass/overloaded-index-assoc-list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<K,V> AssociationList<K,V> {
3535
impl<'a, K: PartialEq + std::fmt::Debug, V:Clone> Index<&'a K> for AssociationList<K,V> {
3636
type Output = V;
3737

38-
fn index<'a>(&'a self, index: &K) -> &'a V {
38+
fn index(&self, index: &K) -> &V {
3939
for pair in &self.pairs {
4040
if pair.key == *index {
4141
return &pair.value

0 commit comments

Comments
 (0)