-
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.
Rollup merge of #106366 - GuillaumeGomez:fix-rustdoc-ice-typedef-type…
…-mismatch, r=notriddle Fix rustdoc ICE on bad typedef with mismatching types Fixes #106226. Fixes #105742. Fixes #105737. Fixes #105334. Fixes #96287. In this case, it's ok to replace the panic with `rustc_error::raise` because the compiler provided us with a `Error`. r? `@notriddle`
- Loading branch information
Showing
11 changed files
with
497 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
impl Vec< br##"*.."## > {} | ||
//~^ ERROR |
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[E0747]: constant provided when a type was expected | ||
--> $DIR/issue-105334.rs:1:11 | ||
| | ||
LL | impl Vec< br##"*.."## > {} | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0747`. |
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,4 @@ | ||
impl Vec<lol> {} | ||
//~^ ERROR | ||
|
||
pub fn lol() {} |
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,12 @@ | ||
error[E0747]: constant provided when a type was expected | ||
--> $DIR/issue-105737.rs:1:10 | ||
| | ||
LL | impl Vec<lol> {} | ||
| ^^^ | ||
| | ||
= help: `lol` is a function item, not a type | ||
= help: function item types cannot be named directly | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0747`. |
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,40 @@ | ||
// compile-flags: -Znormalize-docs | ||
|
||
use std::ops::Index; | ||
|
||
pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) { | ||
//~^ ERROR | ||
//~^^ ERROR | ||
//~^^^ ERROR | ||
let _ = s; | ||
} | ||
|
||
pub trait SVec: Index< | ||
<Self as SVec>::Item, | ||
//~^ ERROR | ||
//~^^ ERROR | ||
//~^^^ ERROR | ||
//~^^^^ ERROR | ||
Output = <Index<<Self as SVec>::Item, | ||
//~^ ERROR | ||
//~^^ ERROR | ||
//~^^^ ERROR | ||
//~^^^^ ERROR | ||
Output = <Self as SVec>::Item> as SVec>::Item, | ||
//~^ ERROR | ||
//~^^ ERROR | ||
//~^^^ ERROR | ||
//~^^^^ ERROR | ||
//~^^^^^ ERROR | ||
//~^^^^^^ ERROR | ||
//~^^^^^^^ ERROR | ||
//~^^^^^^^^ ERROR | ||
> { | ||
type Item<'a, T>; | ||
|
||
fn len(&self) -> <Self as SVec>::Item; | ||
//~^ ERROR | ||
//~^^ ERROR | ||
//~^^^ ERROR | ||
//~^^^^ ERROR | ||
} |
Oops, something went wrong.