Skip to content

Commit 98e2b9f

Browse files
committed
Auto merge of rust-lang#7119 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
2 parents 1f7aef3 + 876897d commit 98e2b9f

6 files changed

+9
-7
lines changed

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2021-04-08"
2+
channel = "nightly-2021-04-22"
33
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]

tests/ui/crashes/ice-6251.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
1616
= help: unsized fn params are gated as an unstable feature
1717
help: function arguments must have a statically known size, borrowed types always have a known size
1818
|
19-
LL | fn bug<T>() -> impl Iterator<Item = [(); { |&x: [u8]| x }]> {
20-
| ^
19+
LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> {
20+
| ^
2121

2222
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2323
--> $DIR/ice-6251.rs:4:54

tests/ui/crate_level_checks/entrypoint_recursion.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// ignore-macos
22
// ignore-windows
33

4-
#![feature(main)]
4+
#![feature(rustc_attrs)]
55

66
#[warn(clippy::main_recursion)]
77
#[allow(unconditional_recursion)]
8-
#[main]
8+
#[rustc_main]
99
fn a() {
1010
println!("Hello, World!");
1111
a();

tests/ui/wildcard_enum_match_arm.fixed

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn main() {
7777
let error_kind = ErrorKind::NotFound;
7878
match error_kind {
7979
ErrorKind::NotFound => {},
80-
ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | _ => {},
80+
ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | _ => {},
8181
}
8282
match error_kind {
8383
ErrorKind::NotFound => {},
@@ -98,6 +98,7 @@ fn main() {
9898
ErrorKind::Interrupted => {},
9999
ErrorKind::Other => {},
100100
ErrorKind::UnexpectedEof => {},
101+
ErrorKind::Unsupported => {},
101102
_ => {},
102103
}
103104
}

tests/ui/wildcard_enum_match_arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ fn main() {
9898
ErrorKind::Interrupted => {},
9999
ErrorKind::Other => {},
100100
ErrorKind::UnexpectedEof => {},
101+
ErrorKind::Unsupported => {},
101102
_ => {},
102103
}
103104
}

tests/ui/wildcard_enum_match_arm.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ error: wildcard matches known variants and will also match future added variants
3232
--> $DIR/wildcard_enum_match_arm.rs:80:9
3333
|
3434
LL | _ => {},
35-
| ^ help: try this: `ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | _`
35+
| ^ help: try this: `ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | _`
3636

3737
error: aborting due to 5 previous errors
3838

0 commit comments

Comments
 (0)