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#98632 - matthiaskrgr:rollup-peg868d, r=matthi…
…askrgr Rollup of 11 pull requests Successful merges: - rust-lang#98548 (rustdoc-json: Allow Typedef to be different in sanity assert) - rust-lang#98560 (Add regression test for rust-lang#85907) - rust-lang#98564 (Remove references to `./tmp` in-tree) - rust-lang#98602 (Add regression test for rust-lang#80074) - rust-lang#98606 (:arrow_up: rust-analyzer) - rust-lang#98609 (Fix ICE for associated constant generics) - rust-lang#98611 (Fix glob import ICE in rustdoc JSON format) - rust-lang#98617 (Remove feature `const_option` from std) - rust-lang#98619 (Fix mir-opt wg name) - rust-lang#98621 (llvm-wrapper: adapt for removal of the ASanGlobalsMetadataAnalysis LLVM API) - rust-lang#98623 (fix typo in comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
19 changed files
with
132 additions
and
18 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,22 @@ | ||
// Regression test for <https://github.com/rust-lang/rust/issues/98547>. | ||
|
||
// @has assoc_type.json | ||
// @has - "$.index[*][?(@.name=='Trait')]" | ||
// @has - "$.index[*][?(@.name=='AssocType')]" | ||
// @has - "$.index[*][?(@.name=='S')]" | ||
// @has - "$.index[*][?(@.name=='S2')]" | ||
|
||
pub trait Trait { | ||
type AssocType; | ||
} | ||
|
||
impl<T> Trait for T { | ||
type AssocType = Self; | ||
} | ||
|
||
pub struct S; | ||
|
||
/// Not needed for the #98547 ICE to occur, but added to maximize the chance of | ||
/// getting an ICE in the future. See | ||
/// <https://github.com/rust-lang/rust/pull/98548#discussion_r908219164> | ||
pub struct S2; |
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,24 @@ | ||
// This is a regression test for <https://github.com/rust-lang/rust/issues/98003>. | ||
|
||
#![feature(no_core)] | ||
#![no_std] | ||
#![no_core] | ||
|
||
// @has glob_import.json | ||
// @has - "$.index[*][?(@.name=='glob')]" | ||
// @has - "$.index[*][?(@.kind=='import')].inner.name" \"*\" | ||
|
||
|
||
mod m1 { | ||
pub fn f() {} | ||
} | ||
mod m2 { | ||
pub fn f(_: u8) {} | ||
} | ||
|
||
pub use m1::*; | ||
pub use m2::*; | ||
|
||
pub mod glob { | ||
pub use *; | ||
} |
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 @@ | ||
const fn hey() -> usize { | ||
panic!(123); //~ ERROR argument to `panic!()` in a const context must have type `&str` | ||
} | ||
|
||
fn main() { | ||
let _: [u8; hey()] = todo!(); | ||
} |
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,10 @@ | ||
error: argument to `panic!()` in a const context must have type `&str` | ||
--> $DIR/issue-85907.rs:2:5 | ||
| | ||
LL | panic!(123); | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous 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,4 @@ | ||
// edition:2018 | ||
|
||
macro_rules! foo_ { () => {}; } | ||
use foo_ as 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,10 @@ | ||
// edition:2018 | ||
// build-pass | ||
// aux-crate:issue_80074=issue-80074-macro.rs | ||
|
||
#[macro_use] | ||
extern crate issue_80074; | ||
|
||
fn main() { | ||
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,9 @@ | ||
struct Struct<T>(T); | ||
|
||
impl<T> Struct<T> { | ||
const CONST: fn() = || { | ||
struct _Obligation where T:; //~ ERROR can't use generic parameters from outer function | ||
}; | ||
} | ||
|
||
fn main() {} |
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,14 @@ | ||
error[E0401]: can't use generic parameters from outer function | ||
--> $DIR/issue-98432.rs:5:34 | ||
| | ||
LL | impl<T> Struct<T> { | ||
| - type parameter from outer function | ||
LL | const CONST: fn() = || { | ||
LL | struct _Obligation where T:; | ||
| ^ use of generic parameter from outer function | ||
| | ||
= help: try using a local generic parameter instead | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0401`. |
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 rust-analyzer
updated
from 427061 to b74e96
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