-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the name "auto traits" everywhere in the compiler
Goodbye, OIBIT!
- Loading branch information
Showing
10 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#![feature(auto_traits)] | ||
|
||
pub auto trait AnOibit {} | ||
pub auto trait AnAutoTrait {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#![feature(negative_impls)] | ||
#![feature(auto_traits)] | ||
|
||
pub auto trait AnOibit {} | ||
pub auto trait AnAutoTrait {} | ||
|
||
pub struct Foo<T> { field: T } | ||
|
||
// @has impl_parts/struct.Foo.html '//*[@class="impl"]//code' \ | ||
// "impl<T: Clone> !AnOibit for Foo<T> where T: Sync," | ||
// @has impl_parts/trait.AnOibit.html '//*[@class="item-list"]//code' \ | ||
// "impl<T: Clone> !AnOibit for Foo<T> where T: Sync," | ||
impl<T: Clone> !AnOibit for Foo<T> where T: Sync {} | ||
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync," | ||
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//code' \ | ||
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync," | ||
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {} |
4 changes: 2 additions & 2 deletions
4
src/test/ui/phantom-oibit.rs → src/test/ui/phantom-auto-trait.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts-inductive-overflow-supertrait-oibit.rs → ...ductive-overflow-supertrait-auto-trait.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nductive-overflow-supertrait-oibit.stderr → ...ive-overflow-supertrait-auto-trait.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters