-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #61527 - pietroalbini:rollup-vhxyqlk, r=pietroalbini
Rollup of 5 pull requests Successful merges: - #61069 (Make MIR drop terminators borrow the dropped location) - #61453 (Remove unneeded feature attr from atomic integers doctests) - #61488 (Fix NLL typeck ICEs) - #61500 (Fix regression 61475) - #61523 (Hide gen_future API from documentation) Failed merges: r? @ghost
- Loading branch information
Showing
12 changed files
with
274 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#![feature(integer_atomics)] | ||
|
||
// compile-pass | ||
|
||
use std::cell::UnsafeCell; | ||
|
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,15 @@ | ||
// run-pass | ||
#![allow(dead_code)] | ||
|
||
enum E { | ||
A, B | ||
} | ||
|
||
fn main() { | ||
match &&E::A { | ||
&&E::A => { | ||
} | ||
&&E::B => { | ||
} | ||
}; | ||
} |
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,11 @@ | ||
// Regression test for #61315 | ||
// | ||
// `dyn T:` is lowered to `dyn T: ReEmpty` - check that we don't ICE in NLL for | ||
// the unexpected region. | ||
|
||
// compile-pass | ||
|
||
trait T {} | ||
fn f() where dyn T: {} | ||
|
||
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,34 @@ | ||
// Regression test for #61311 | ||
// We would ICE after failing to normalize `Self::Proj` in the `impl` below. | ||
|
||
// compile-pass | ||
|
||
pub struct Unit; | ||
trait Obj {} | ||
|
||
trait Bound {} | ||
impl Bound for Unit {} | ||
|
||
pub trait HasProj { | ||
type Proj; | ||
} | ||
|
||
impl<T> HasProj for T { | ||
type Proj = Unit; | ||
} | ||
|
||
trait HasProjFn { | ||
type Proj; | ||
fn the_fn(_: Self::Proj); | ||
} | ||
|
||
impl HasProjFn for Unit | ||
where | ||
Box<dyn Obj + 'static>: HasProj, | ||
<Box<dyn Obj + 'static> as HasProj>::Proj: Bound, | ||
{ | ||
type Proj = Unit; | ||
fn the_fn(_: Self::Proj) {} | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.