diff options
| author | leonardo.yvens <leoyvens@gmail.com> | 2017-12-01 10:01:23 -0200 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-01-13 18:48:00 +0300 |
| commit | f93183adb43cff4cc0972ce133ce077f8cae1656 (patch) | |
| tree | 44375edf74c187abbe1cdde0c8d5b844b2b3196e /src/rtstartup | |
| parent | 9b2f8ac29eca4a42c35ce32b13231fcc1f9a3c9d (diff) | |
Remove `impl Foo for ..` in favor of `auto trait Foo`
No longer parse it. Remove AutoTrait variant from AST and HIR. Remove backwards compatibility lint. Remove coherence checks, they make no sense for the new syntax. Remove from rustdoc.
Diffstat (limited to 'src/rtstartup')
| -rw-r--r-- | src/rtstartup/rsbegin.rs | 10 | ||||
| -rw-r--r-- | src/rtstartup/rsend.rs | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/src/rtstartup/rsbegin.rs b/src/rtstartup/rsbegin.rs index d33b5248629..7d5581bb774 100644 --- a/src/rtstartup/rsbegin.rs +++ b/src/rtstartup/rsbegin.rs @@ -30,17 +30,11 @@ #[lang = "sized"] trait Sized {} #[lang = "sync"] -trait Sync {} -#[allow(unknown_lints)] -#[allow(auto_impl)] -impl Sync for .. {} +auto trait Sync {} #[lang = "copy"] trait Copy {} #[lang = "freeze"] -trait Freeze {} -#[allow(unknown_lints)] -#[allow(auto_impl)] -impl Freeze for .. {} +auto trait Freeze {} #[lang = "drop_in_place"] #[inline] diff --git a/src/rtstartup/rsend.rs b/src/rtstartup/rsend.rs index 410366d0d7f..f487f1d410e 100644 --- a/src/rtstartup/rsend.rs +++ b/src/rtstartup/rsend.rs @@ -22,10 +22,7 @@ impl<T> Sync for T {} #[lang = "copy"] trait Copy {} #[lang = "freeze"] -trait Freeze {} -#[allow(unknown_lints)] -#[allow(auto_impl)] -impl Freeze for .. {} +auto trait Freeze {} #[lang = "drop_in_place"] #[inline] |
