diff --git a/tests/mir-opt/uninhabited_not_read.rs b/tests/mir-opt/uninhabited_not_read.rs index 15769cdd75b3..4c80f5e55c68 100644 --- a/tests/mir-opt/uninhabited_not_read.rs +++ b/tests/mir-opt/uninhabited_not_read.rs @@ -1,7 +1,7 @@ // skip-filecheck //@ edition: 2021 -// In ed 2021 and below, we don't fallback `!` to `()`. +// In ed 2021 and below, we fallback `!` to `()`. // This would introduce a `! -> ()` coercion which would // be UB if we didn't disallow this explicitly. diff --git a/tests/ui/consts/const-eval/raw-bytes.rs b/tests/ui/consts/const-eval/raw-bytes.rs index 58ae763e017f..199f4d1ea0e1 100644 --- a/tests/ui/consts/const-eval/raw-bytes.rs +++ b/tests/ui/consts/const-eval/raw-bytes.rs @@ -34,7 +34,7 @@ const BAD_ENUM2: Enum2 = unsafe { mem::transmute(0usize) }; #[derive(Copy, Clone)] enum Never {} -// An enum with 3 variants of which some are uninhabited -- so the uninhabited variants *do* +// An enum with 4 variants of which only some are uninhabited -- so the uninhabited variants *do* // have a discriminant. enum UninhDiscriminant { A,