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#124890 - matthiaskrgr:rollup-25iq88h, r=matth…
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#124548 (Handle normalization failure in `struct_tail_erasing_lifetimes`) - rust-lang#124761 (Fix insufficient logic when searching for the underlying allocation) - rust-lang#124864 (rustdoc: use stability, instead of features, to decide what to show) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
9 changed files
with
94 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
//@ aux-build:issue-76736-1.rs | ||
//@ aux-build:issue-76736-2.rs | ||
|
||
// https://github.com/rust-lang/rust/issues/124635 | ||
|
||
#![crate_name = "foo"] | ||
#![feature(rustc_private)] | ||
|
||
extern crate issue_76736_1; | ||
extern crate issue_76736_2; | ||
|
||
// @has foo/struct.Foo.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub struct Foo; | ||
|
||
// @has foo/struct.Bar.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub use issue_76736_2::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,19 @@ | ||
//@ aux-build:issue-76736-1.rs | ||
//@ aux-build:issue-76736-2.rs | ||
|
||
// https://github.com/rust-lang/rust/issues/124635 | ||
|
||
#![crate_name = "foo"] | ||
#![feature(rustc_private, staged_api)] | ||
#![unstable(feature = "rustc_private", issue = "none")] | ||
|
||
extern crate issue_76736_1; | ||
extern crate issue_76736_2; | ||
|
||
// @has foo/struct.Foo.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub struct Foo; | ||
|
||
// @has foo/struct.Bar.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub use issue_76736_2::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
3 changes: 2 additions & 1 deletion
3
tests/crashes/113272.rs → ...s/ice-struct-tail-normalization-113272.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
19 changes: 19 additions & 0 deletions
19
tests/ui/structs/ice-struct-tail-normalization-113272.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,19 @@ | ||
error[E0412]: cannot find type `Missing` in this scope | ||
--> $DIR/ice-struct-tail-normalization-113272.rs:5:25 | ||
| | ||
LL | impl Trait for () where Missing: Trait {} | ||
| ^^^^^^^ not found in this scope | ||
|
||
error[E0046]: not all trait items implemented, missing: `RefTarget` | ||
--> $DIR/ice-struct-tail-normalization-113272.rs:5:1 | ||
| | ||
LL | type RefTarget; | ||
| -------------- `RefTarget` from trait | ||
... | ||
LL | impl Trait for () where Missing: Trait {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `RefTarget` in implementation | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors have detailed explanations: E0046, E0412. | ||
For more information about an error, try `rustc --explain E0046`. |