-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #60708 - Centril:rollup-j5smdo0, r=Centril
Rollup of 6 pull requests Successful merges: - #60529 (RFC 2008: Uninhabitedness fixes for enum variants and tests) - #60620 (Fix a couple of FIXMEs in ext::tt::transcribe) - #60659 (Tweak `Symbol` and `InternedString`) - #60692 (Extend #60676 test for nested mut patterns.) - #60697 (add regression test for #60629) - #60701 (Update mailmap for mati865) Failed merges: r? @ghost
- Loading branch information
Showing
32 changed files
with
1,106 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,8 @@ Mark Sinclair <[email protected]> =Mark Sinclair <[email protected]> | |
Markus Westerlind <[email protected]> Markus <[email protected]> | ||
Martin Hafskjold Thoresen <[email protected]> | ||
Matej Lach <[email protected]> Matej Ľach <[email protected]> | ||
Mateusz Mikuła <[email protected]> <[email protected]> | ||
Mateusz Mikuła <[email protected]> <[email protected]> | ||
Matt Brubeck <[email protected]> <[email protected]> | ||
Matthew Auld <[email protected]> | ||
Matthew McPherrin <[email protected]> <[email protected]> | ||
|
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,10 @@ | ||
// revisions:rpass1 rpass2 | ||
|
||
struct A; | ||
|
||
#[cfg(rpass2)] | ||
impl From<A> for () { | ||
fn from(_: A) {} | ||
} | ||
|
||
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
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 +1,3 @@ | ||
async fn f(mut x: u8) { } | ||
async fn g((mut x, y, mut z): (u8, u8, u8)) { } | ||
async fn g(mut x: u8, (a, mut b, c): (u8, u8, u8), y: u8) { } |
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
33 changes: 33 additions & 0 deletions
33
src/test/ui/rfc-2008-non-exhaustive/uninhabited/auxiliary/uninhabited.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#![crate_type = "rlib"] | ||
#![feature(never_type)] | ||
#![feature(non_exhaustive)] | ||
|
||
#[non_exhaustive] | ||
pub enum UninhabitedEnum { | ||
} | ||
|
||
#[non_exhaustive] | ||
pub struct UninhabitedStruct { | ||
_priv: !, | ||
} | ||
|
||
#[non_exhaustive] | ||
pub struct UninhabitedTupleStruct(!); | ||
|
||
pub enum UninhabitedVariants { | ||
#[non_exhaustive] Tuple(!), | ||
#[non_exhaustive] Struct { x: ! } | ||
} | ||
|
||
pub enum PartiallyInhabitedVariants { | ||
Tuple(u8), | ||
#[non_exhaustive] Struct { x: ! } | ||
} | ||
|
||
pub struct IndirectUninhabitedEnum(UninhabitedEnum); | ||
|
||
pub struct IndirectUninhabitedStruct(UninhabitedStruct); | ||
|
||
pub struct IndirectUninhabitedTupleStruct(UninhabitedTupleStruct); | ||
|
||
pub struct IndirectUninhabitedVariants(UninhabitedVariants); |
Oops, something went wrong.