-
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.
Auto merge of #59991 - Centril:rollup-bqxt4w3, r=Centril
Rollup of 6 pull requests Successful merges: - #59648 (Add must_use annotations to Result::is_ok and is_err) - #59748 (Add summary and reference to Rust trademark guide) - #59779 (Uplift `get_def_path` from Clippy) - #59955 (bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent) - #59978 (rustdoc: Remove default keyword from re-exported trait methods) - #59989 (Fix links to Atomic* in RELEASES.md) Failed merges: r? @ghost
- Loading branch information
Showing
21 changed files
with
155 additions
and
48 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
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
Submodule stdsimd
updated
from 2792b4 to 2323a8
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 |
---|---|---|
|
@@ -11,5 +11,5 @@ struct Str { | |
|
||
fn main() { | ||
let str: Option<&Str> = None; | ||
str.is_some(); | ||
let _ = str.is_some(); | ||
} |
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(specialization)] | ||
|
||
// @has default_trait_method/trait.Item.html | ||
// @has - '//*[@id="tymethod.foo"]' 'fn foo()' | ||
// @!has - '//*[@id="tymethod.foo"]' 'default fn foo()' | ||
// @has - '//*[@id="tymethod.bar"]' 'fn bar()' | ||
// @!has - '//*[@id="tymethod.bar"]' 'default fn bar()' | ||
// @has - '//*[@id="method.baz"]' 'fn baz()' | ||
// @!has - '//*[@id="method.baz"]' 'default fn baz()' | ||
pub trait Item { | ||
fn foo(); | ||
fn bar(); | ||
fn baz() {} | ||
} | ||
|
||
// @has default_trait_method/struct.Foo.html | ||
// @has - '//*[@id="method.foo"]' 'default fn foo()' | ||
// @has - '//*[@id="method.bar"]' 'fn bar()' | ||
// @!has - '//*[@id="method.bar"]' 'default fn bar()' | ||
// @has - '//*[@id="method.baz"]' 'fn baz()' | ||
// @!has - '//*[@id="method.baz"]' 'default fn baz()' | ||
pub struct Foo; | ||
impl Item for Foo { | ||
default fn foo() {} | ||
fn bar() {} | ||
} |
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/test/rustdoc/inline_cross/auxiliary/default-trait-method.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,16 @@ | ||
#![feature(specialization)] | ||
|
||
#![crate_name = "foo"] | ||
|
||
pub trait Item { | ||
fn foo(); | ||
fn bar(); | ||
fn baz() {} | ||
} | ||
|
||
pub struct Foo; | ||
|
||
impl Item for Foo { | ||
default fn foo() {} | ||
fn bar() {} | ||
} |
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,20 @@ | ||
// aux-build:default-trait-method.rs | ||
|
||
extern crate foo; | ||
|
||
// @has default_trait_method/trait.Item.html | ||
// @has - '//*[@id="tymethod.foo"]' 'fn foo()' | ||
// @!has - '//*[@id="tymethod.foo"]' 'default fn foo()' | ||
// @has - '//*[@id="tymethod.bar"]' 'fn bar()' | ||
// @!has - '//*[@id="tymethod.bar"]' 'default fn bar()' | ||
// @has - '//*[@id="method.baz"]' 'fn baz()' | ||
// @!has - '//*[@id="method.baz"]' 'default fn baz()' | ||
pub use foo::Item; | ||
|
||
// @has default_trait_method/struct.Foo.html | ||
// @has - '//*[@id="method.foo"]' 'default fn foo()' | ||
// @has - '//*[@id="method.bar"]' 'fn bar()' | ||
// @!has - '//*[@id="method.bar"]' 'default fn bar()' | ||
// @has - '//*[@id="method.baz"]' 'fn baz()' | ||
// @!has - '//*[@id="method.baz"]' 'default fn baz()' | ||
pub use foo::Foo; |