Fix tests and rebase conflict
This commit is contained in:
parent
8b586e68b5
commit
9d181ac2de
@ -409,7 +409,7 @@ impl<'a, 'tcx> DirtyCleanVisitor<'a, 'tcx> {
|
||||
//HirItem::ItemTrait(..) => ("ItemTrait", LABELS_TRAIT),
|
||||
|
||||
// `impl Trait for .. {}`
|
||||
HirItem::ItemDefaultImpl(..) => ("ItemDefaultImpl", LABELS_IMPL),
|
||||
HirItem::ItemAutoImpl(..) => ("ItemAutoImpl", LABELS_IMPL),
|
||||
|
||||
// An implementation, eg `impl<A> Trait for Foo { .. }`
|
||||
HirItem::ItemImpl(..) => ("ItemImpl", LABELS_IMPL),
|
||||
|
@ -8,5 +8,9 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(optin_builtin_traits)]
|
||||
|
||||
trait Foo {}
|
||||
impl Foo for .. {}
|
||||
//~^ ERROR The form `impl Foo for .. {}` will be removed, please use `auto trait Foo {}`
|
||||
//~^^ WARN this was previously accepted by the compiler
|
||||
|
@ -12,6 +12,7 @@
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
pub trait DefaultedTrait { }
|
||||
#[allow(auto_impl)]
|
||||
impl DefaultedTrait for .. { }
|
||||
|
||||
pub struct Something<T> { t: T }
|
||||
|
@ -16,6 +16,7 @@
|
||||
#![feature(optin_builtin_traits)]
|
||||
|
||||
trait Defaulted { }
|
||||
#[allow(auto_impl)]
|
||||
impl Defaulted for .. { }
|
||||
impl<'a,T:Signed> Defaulted for &'a T { }
|
||||
impl<'a,T:Signed> Defaulted for &'a mut T { }
|
||||
|
Loading…
Reference in New Issue
Block a user