forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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#91406 - matthiaskrgr:rollup-a2whn8m, r=matthi…
…askrgr Rollup of 4 pull requests Successful merges: - rust-lang#91294 (Visit type in process_projection_elem.) - rust-lang#91340 (Bump compiler_builtins to 0.1.55 to bring in fixes for targets lackin…) - rust-lang#91366 (Only show notable traits if both types are the same) - rust-lang#91397 (Emit a warning on generic parameters with doc comments) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
12 changed files
with
92 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#![feature(doc_notable_trait)] | ||
|
||
#[doc(notable_trait)] | ||
pub trait SomeTrait {} | ||
|
||
pub struct SomeStruct; | ||
pub struct OtherStruct; | ||
impl SomeTrait for &[SomeStruct] {} | ||
|
||
// @has doc_notable_trait_slice/fn.bare_fn_matches.html | ||
// @has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]' | ||
pub fn bare_fn_matches() -> &'static [SomeStruct] { | ||
&[] | ||
} | ||
|
||
// @has doc_notable_trait_slice/fn.bare_fn_no_matches.html | ||
// @!has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]' | ||
pub fn bare_fn_no_matches() -> &'static [OtherStruct] { | ||
&[] | ||
} |
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