Skip to content

Commit 9d181ac

Browse files
committed
Fix tests and rebase conflict
1 parent 8b586e6 commit 9d181ac

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl<'a, 'tcx> DirtyCleanVisitor<'a, 'tcx> {
409409
//HirItem::ItemTrait(..) => ("ItemTrait", LABELS_TRAIT),
410410

411411
// `impl Trait for .. {}`
412-
HirItem::ItemDefaultImpl(..) => ("ItemDefaultImpl", LABELS_IMPL),
412+
HirItem::ItemAutoImpl(..) => ("ItemAutoImpl", LABELS_IMPL),
413413

414414
// An implementation, eg `impl<A> Trait for Foo { .. }`
415415
HirItem::ItemImpl(..) => ("ItemImpl", LABELS_IMPL),

src/test/compile-fail/auto-impl-future-compat.rs

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

11+
#![feature(optin_builtin_traits)]
12+
1113
trait Foo {}
1214
impl Foo for .. {}
15+
//~^ ERROR The form `impl Foo for .. {}` will be removed, please use `auto trait Foo {}`
16+
//~^^ WARN this was previously accepted by the compiler

src/test/compile-fail/auxiliary/tdticc_coherence_lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![crate_type = "rlib"]
1313

1414
pub trait DefaultedTrait { }
15+
#[allow(auto_impl)]
1516
impl DefaultedTrait for .. { }
1617

1718
pub struct Something<T> { t: T }

src/test/compile-fail/typeck-default-trait-impl-precedence.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#![feature(optin_builtin_traits)]
1717

1818
trait Defaulted { }
19+
#[allow(auto_impl)]
1920
impl Defaulted for .. { }
2021
impl<'a,T:Signed> Defaulted for &'a T { }
2122
impl<'a,T:Signed> Defaulted for &'a mut T { }

0 commit comments

Comments
 (0)