forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#74543 - Manishearth:rollup-m5w6hyg, r=Manishe…
…arth Rollup of 9 pull requests Successful merges: - rust-lang#73618 (Documentation for the false keyword) - rust-lang#74486 (Improve Read::read_exact documentation) - rust-lang#74514 (Do not clobber RUSTDOCFLAGS) - rust-lang#74516 (do not try fetching the ancestors of errored trait impls) - rust-lang#74520 (include backtrace folder in rust-src component) - rust-lang#74523 (Improve documentation for `core::fmt` internals) - rust-lang#74527 (Add myself to toolstate change notifications for rustfmt) - rust-lang#74534 (Only skip impls of foreign unstable traits) - rust-lang#74536 (fix documentation surrounding the `in` and `for` keywords) Failed merges: r? @ghost
- Loading branch information
Showing
13 changed files
with
90 additions
and
19 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#![feature(staged_api)] | ||
#![stable(feature = "private_general", since = "1.0.0")] | ||
|
||
#[unstable(feature = "private_trait", issue = "none")] | ||
pub trait Bar {} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub struct Foo { | ||
// nothing | ||
} | ||
|
||
impl Foo { | ||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub fn stable_impl() {} | ||
} | ||
|
||
impl Foo { | ||
#[unstable(feature = "private_trait", issue = "none")] | ||
pub fn bar() {} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub fn bar2() {} | ||
} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
impl Bar for Foo {} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// aux-build:unstable-trait.rs | ||
|
||
#![crate_name = "foo"] | ||
#![feature(private_trait)] | ||
|
||
extern crate unstable_trait; | ||
|
||
// @has foo/struct.Foo.html 'bar' | ||
// @has foo/struct.Foo.html 'bar2' | ||
#[doc(inline)] | ||
pub use unstable_trait::Foo; |
7 changes: 7 additions & 0 deletions
7
src/test/ui/specialization/min_specialization/impl-on-nonexisting.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![feature(min_specialization)] | ||
|
||
trait Trait {} | ||
impl Trait for NonExistent {} | ||
//~^ ERROR cannot find type `NonExistent` in this scope | ||
|
||
fn main() {} |
9 changes: 9 additions & 0 deletions
9
src/test/ui/specialization/min_specialization/impl-on-nonexisting.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0412]: cannot find type `NonExistent` in this scope | ||
--> $DIR/impl-on-nonexisting.rs:4:16 | ||
| | ||
LL | impl Trait for NonExistent {} | ||
| ^^^^^^^^^^^ not found in this scope | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0412`. |
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