From 714fb0d9d89b04141e0c787a28a8845d55865e01 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 1 Apr 2021 04:06:05 +0900 Subject: [PATCH] Update to `nightly-2020-12-14` rust-lang/rust#79956 improved enum's visibility and now we can check the visibility more precisely. --- README.md | 6 +++--- rust-toolchain | 2 +- tests/cases/enums/stdout | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 101b5786..91631045 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ repository and compiled from source or installed from of the nightly toolchain is supported at any given time. -It's recommended to use `nightly-2020-12-01` toolchain. -You can install it by using `rustup install nightly-2020-12-01` if you already have rustup. +It's recommended to use `nightly-2020-12-14` toolchain. +You can install it by using `rustup install nightly-2020-12-14` if you already have rustup. Then you can do: ```sh $ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2020-11-19 -$ cargo +nightly-2020-12-01 install --git https://github.com/rust-lang/rust-semverver +$ cargo +nightly-2020-12-14 install --git https://github.com/rust-lang/rust-semverver ``` You'd also need `cmake` for some dependencies, and a few common libraries (if you hit diff --git a/rust-toolchain b/rust-toolchain index e5ddd352..6b4f26d7 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,4 +1,4 @@ # NOTE: Keep in sync with nightly date on README [toolchain] -channel = "nightly-2020-12-01" +channel = "nightly-2020-12-14" components = ["llvm-tools-preview", "rustc-dev"] diff --git a/tests/cases/enums/stdout b/tests/cases/enums/stdout index 5464c972..ee681b79 100644 --- a/tests/cases/enums/stdout +++ b/tests/cases/enums/stdout @@ -73,32 +73,32 @@ warning: variant with no public fields changed to a tuple variant (breaking) | 19 | Abc(u8), | ^^^^^^^ -warning: variant with no public fields changed to a tuple variant (breaking) +warning: variant with public fields changed to a tuple variant (breaking) --> enums/new.rs:20:5 | 20 | Bcd, | ^^^ -warning: variant with no public fields changed to a struct variant (breaking) +warning: variant with public fields changed to a struct variant (breaking) --> enums/new.rs:21:5 | 21 | Cde { f: u8 }, | ^^^^^^^^^^^^^ -warning: variant with no public fields changed to a tuple variant (breaking) +warning: variant with public fields changed to a tuple variant (breaking) --> enums/new.rs:22:5 | 22 | Def, | ^^^ -warning: variant with no public fields changed to a struct variant (breaking) +warning: variant with public fields changed to a struct variant (breaking) --> enums/new.rs:23:5 | 23 | Efg { f: u8 }, | ^^^^^^^^^^^^^ -warning: private field removed from variant with private fields (breaking) +warning: public field removed from variant with no private fields (breaking) --> enums/old.rs:25:11 | 25 | Ghi { f: u8 }, | ^^^^^ -note: private field added to variant with private fields (non-breaking) +warning: public field added to variant with no private fields (breaking) --> enums/new.rs:25:11 | 25 | Ghi { g: u8 },