From 018c4950b9406055dec02ef0fb52f132e2bb1e2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:25:56 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/unsafe/foreign-unsafe-fn-called.mir.stderr | 2 +- tests/ui/unsafe/foreign-unsafe-fn-called.thir.stderr | 2 +- tests/ui/unsafe/initializing-ranged-via-ctor.stderr | 2 +- tests/ui/unsafe/inline_asm.mir.stderr | 2 +- tests/ui/unsafe/inline_asm.thir.stderr | 2 +- ...issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr | 2 +- tests/ui/unsafe/issue-3080.mir.stderr | 2 +- tests/ui/unsafe/issue-3080.thir.stderr | 2 +- tests/ui/unsafe/ranged-ctor-as-fn-ptr.stderr | 2 +- tests/ui/unsafe/ranged_ints.mir.stderr | 2 +- tests/ui/unsafe/ranged_ints.thir.stderr | 2 +- tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr | 2 +- tests/ui/unsafe/ranged_ints_const.mir.stderr | 2 +- tests/ui/unsafe/ranged_ints_const.thir.stderr | 2 +- tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr | 2 +- tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr | 2 +- tests/ui/unsafe/unsafe-block-without-braces.stderr | 2 +- tests/ui/unsafe/unsafe-const-fn.mir.stderr | 2 +- tests/ui/unsafe/unsafe-const-fn.thir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-autoderef.stderr | 5 +++-- tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr | 2 +- tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr | 2 +- tests/ui/unsafe/unsafe-subtyping.stderr | 2 +- tests/ui/unsafe/unsafe-trait-impl.rs | 4 ++-- tests/ui/unsafe/unsafe-trait-impl.stderr | 6 +++--- tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr | 2 +- tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr | 2 +- 36 files changed, 41 insertions(+), 40 deletions(-) (limited to 'tests/ui/unsafe') diff --git a/tests/ui/unsafe/foreign-unsafe-fn-called.mir.stderr b/tests/ui/unsafe/foreign-unsafe-fn-called.mir.stderr index d3cf5d84f..5157dbb51 100644 --- a/tests/ui/unsafe/foreign-unsafe-fn-called.mir.stderr +++ b/tests/ui/unsafe/foreign-unsafe-fn-called.mir.stderr @@ -6,6 +6,6 @@ LL | test::free(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/foreign-unsafe-fn-called.thir.stderr b/tests/ui/unsafe/foreign-unsafe-fn-called.thir.stderr index 00ba0f7a6..8c221314c 100644 --- a/tests/ui/unsafe/foreign-unsafe-fn-called.thir.stderr +++ b/tests/ui/unsafe/foreign-unsafe-fn-called.thir.stderr @@ -6,6 +6,6 @@ LL | test::free(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/initializing-ranged-via-ctor.stderr b/tests/ui/unsafe/initializing-ranged-via-ctor.stderr index 13438fd31..56b112867 100644 --- a/tests/ui/unsafe/initializing-ranged-via-ctor.stderr +++ b/tests/ui/unsafe/initializing-ranged-via-ctor.stderr @@ -11,6 +11,6 @@ LL | println!("{:?}", Some(1).map(NonZeroAndOneU8).unwrap()); note: required by a bound in `Option::::map` --> $SRC_DIR/core/src/option.rs:LL:COL -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/unsafe/inline_asm.mir.stderr b/tests/ui/unsafe/inline_asm.mir.stderr index 633f1edb2..e38a9388a 100644 --- a/tests/ui/unsafe/inline_asm.mir.stderr +++ b/tests/ui/unsafe/inline_asm.mir.stderr @@ -6,6 +6,6 @@ LL | asm!("nop"); | = note: inline assembly is entirely unchecked and can cause undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/inline_asm.thir.stderr b/tests/ui/unsafe/inline_asm.thir.stderr index 633f1edb2..e38a9388a 100644 --- a/tests/ui/unsafe/inline_asm.thir.stderr +++ b/tests/ui/unsafe/inline_asm.thir.stderr @@ -6,6 +6,6 @@ LL | asm!("nop"); | = note: inline assembly is entirely unchecked and can cause undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr b/tests/ui/unsafe/issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr index 7384899b9..9dd68d2a6 100644 --- a/tests/ui/unsafe/issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr +++ b/tests/ui/unsafe/issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr @@ -16,6 +16,6 @@ LL ~ Some(_) => unsafe { uwu() }, LL ~ None => todo!(), | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0004`. diff --git a/tests/ui/unsafe/issue-3080.mir.stderr b/tests/ui/unsafe/issue-3080.mir.stderr index f395c30b8..a1ad98d20 100644 --- a/tests/ui/unsafe/issue-3080.mir.stderr +++ b/tests/ui/unsafe/issue-3080.mir.stderr @@ -6,6 +6,6 @@ LL | X(()).with(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/issue-3080.thir.stderr b/tests/ui/unsafe/issue-3080.thir.stderr index 4d8acac61..1018218b1 100644 --- a/tests/ui/unsafe/issue-3080.thir.stderr +++ b/tests/ui/unsafe/issue-3080.thir.stderr @@ -6,6 +6,6 @@ LL | X(()).with(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged-ctor-as-fn-ptr.stderr b/tests/ui/unsafe/ranged-ctor-as-fn-ptr.stderr index 660c40704..23bfe3c9c 100644 --- a/tests/ui/unsafe/ranged-ctor-as-fn-ptr.stderr +++ b/tests/ui/unsafe/ranged-ctor-as-fn-ptr.stderr @@ -10,6 +10,6 @@ LL | let x: fn(u8) -> NonZeroAndOneU8 = NonZeroAndOneU8; found struct constructor `unsafe fn(_) -> NonZeroAndOneU8 {NonZeroAndOneU8}` = note: unsafe functions cannot be coerced into safe function pointers -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/unsafe/ranged_ints.mir.stderr b/tests/ui/unsafe/ranged_ints.mir.stderr index f9ef7834e..ef00edae0 100644 --- a/tests/ui/unsafe/ranged_ints.mir.stderr +++ b/tests/ui/unsafe/ranged_ints.mir.stderr @@ -6,6 +6,6 @@ LL | let _x = NonZero(0); | = note: initializing a layout restricted type's field with a value outside the valid range is undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints.thir.stderr b/tests/ui/unsafe/ranged_ints.thir.stderr index f9ef7834e..ef00edae0 100644 --- a/tests/ui/unsafe/ranged_ints.thir.stderr +++ b/tests/ui/unsafe/ranged_ints.thir.stderr @@ -6,6 +6,6 @@ LL | let _x = NonZero(0); | = note: initializing a layout restricted type's field with a value outside the valid range is undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr index 9eec0b09e..72bce5de0 100644 --- a/tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr @@ -6,6 +6,6 @@ LL | let y = &x.0; | = note: references to fields of layout constrained fields lose the constraints. Coupled with interior mutability, the field can be changed to invalid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr index 9eec0b09e..72bce5de0 100644 --- a/tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr @@ -6,6 +6,6 @@ LL | let y = &x.0; | = note: references to fields of layout constrained fields lose the constraints. Coupled with interior mutability, the field can be changed to invalid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr index 493483d2c..4f2f1e42e 100644 --- a/tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr @@ -6,6 +6,6 @@ LL | x.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr index 493483d2c..4f2f1e42e 100644 --- a/tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr @@ -6,6 +6,6 @@ LL | x.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr index a06c6f479..a2a3ae668 100644 --- a/tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr @@ -6,6 +6,6 @@ LL | x.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr index a06c6f479..a2a3ae668 100644 --- a/tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr +++ b/tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr @@ -6,6 +6,6 @@ LL | x.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints_const.mir.stderr b/tests/ui/unsafe/ranged_ints_const.mir.stderr index 33d134c7c..563b9be26 100644 --- a/tests/ui/unsafe/ranged_ints_const.mir.stderr +++ b/tests/ui/unsafe/ranged_ints_const.mir.stderr @@ -6,6 +6,6 @@ LL | const fn foo() -> NonZero { NonZero(0) } | = note: initializing a layout restricted type's field with a value outside the valid range is undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/ranged_ints_const.thir.stderr b/tests/ui/unsafe/ranged_ints_const.thir.stderr index 33d134c7c..563b9be26 100644 --- a/tests/ui/unsafe/ranged_ints_const.thir.stderr +++ b/tests/ui/unsafe/ranged_ints_const.thir.stderr @@ -6,6 +6,6 @@ LL | const fn foo() -> NonZero { NonZero(0) } | = note: initializing a layout restricted type's field with a value outside the valid range is undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr b/tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr index 9abc51424..f8b55e066 100644 --- a/tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr +++ b/tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr @@ -6,6 +6,6 @@ LL | foo.0.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr b/tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr index 9abc51424..f8b55e066 100644 --- a/tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr +++ b/tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr @@ -6,6 +6,6 @@ LL | foo.0.0 = 0; | = note: mutating layout constrained fields cannot statically be checked for valid values -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-block-without-braces.stderr b/tests/ui/unsafe/unsafe-block-without-braces.stderr index 44f77b99c..d29e49d73 100644 --- a/tests/ui/unsafe/unsafe-block-without-braces.stderr +++ b/tests/ui/unsafe/unsafe-block-without-braces.stderr @@ -11,5 +11,5 @@ help: try placing this code inside a block LL | { std::mem::transmute::(1.0); } | + + -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/unsafe/unsafe-const-fn.mir.stderr b/tests/ui/unsafe/unsafe-const-fn.mir.stderr index 3031be720..2450f0866 100644 --- a/tests/ui/unsafe/unsafe-const-fn.mir.stderr +++ b/tests/ui/unsafe/unsafe-const-fn.mir.stderr @@ -6,6 +6,6 @@ LL | const VAL: u32 = dummy(0xFFFF); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-const-fn.thir.stderr b/tests/ui/unsafe/unsafe-const-fn.thir.stderr index 1a77adf44..199dca923 100644 --- a/tests/ui/unsafe/unsafe-const-fn.thir.stderr +++ b/tests/ui/unsafe/unsafe-const-fn.thir.stderr @@ -6,6 +6,6 @@ LL | const VAL: u32 = dummy(0xFFFF); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr index fee645e41..da3d5f3bd 100644 --- a/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr +++ b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr @@ -6,6 +6,6 @@ LL | *p = 0; | = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr index bbe4a415b..aa5644782 100644 --- a/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr +++ b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr @@ -6,6 +6,6 @@ LL | *p = 0; | = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-autoderef.stderr b/tests/ui/unsafe/unsafe-fn-autoderef.stderr index 20a88c356..c3ab80202 100644 --- a/tests/ui/unsafe/unsafe-fn-autoderef.stderr +++ b/tests/ui/unsafe/unsafe-fn-autoderef.stderr @@ -3,9 +3,10 @@ error[E0609]: no field `f` on type `*const Rec` | LL | return p.f; | --^ - | | + | | | + | | unknown field | help: `p` is a raw pointer; try dereferencing it: `(*p).f` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0609`. diff --git a/tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr b/tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr index 1d6fa4cbf..d33474370 100644 --- a/tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr +++ b/tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr @@ -6,6 +6,6 @@ LL | f(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr b/tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr index 206dbd90a..754316661 100644 --- a/tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr +++ b/tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr @@ -6,6 +6,6 @@ LL | f(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr b/tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr index b08a7109d..01e8e49ec 100644 --- a/tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr +++ b/tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr @@ -6,6 +6,6 @@ LL | x(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr b/tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr index e81dd3b2b..c38da7226 100644 --- a/tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr +++ b/tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr @@ -6,6 +6,6 @@ LL | x(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-subtyping.stderr b/tests/ui/unsafe/unsafe-subtyping.stderr index 2db7cc312..1cc949cf7 100644 --- a/tests/ui/unsafe/unsafe-subtyping.stderr +++ b/tests/ui/unsafe/unsafe-subtyping.stderr @@ -9,6 +9,6 @@ LL | x = note: expected enum `Option` found enum `Option` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/unsafe/unsafe-trait-impl.rs b/tests/ui/unsafe/unsafe-trait-impl.rs index 1fc84ca02..9fd9ff652 100644 --- a/tests/ui/unsafe/unsafe-trait-impl.rs +++ b/tests/ui/unsafe/unsafe-trait-impl.rs @@ -7,8 +7,8 @@ trait Foo { impl Foo for u32 { fn len(&self) -> u32 { *self } //~^ ERROR method `len` has an incompatible type for trait - //~| expected signature `unsafe fn(&u32) -> _` - //~| found signature `fn(&u32) -> _` + //~| expected signature `unsafe fn(&_) -> _` + //~| found signature `fn(&_) -> _` } fn main() { } diff --git a/tests/ui/unsafe/unsafe-trait-impl.stderr b/tests/ui/unsafe/unsafe-trait-impl.stderr index 18ba79404..5888b674d 100644 --- a/tests/ui/unsafe/unsafe-trait-impl.stderr +++ b/tests/ui/unsafe/unsafe-trait-impl.stderr @@ -9,9 +9,9 @@ note: type in trait | LL | unsafe fn len(&self) -> u32; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: expected signature `unsafe fn(&u32) -> _` - found signature `fn(&u32) -> _` + = note: expected signature `unsafe fn(&_) -> _` + found signature `fn(&_) -> _` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0053`. diff --git a/tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr b/tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr index dcb84a80c..79133ab39 100644 --- a/tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr +++ b/tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr @@ -6,6 +6,6 @@ LL | *a == b | = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr b/tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr index dcb84a80c..79133ab39 100644 --- a/tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr +++ b/tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr @@ -6,6 +6,6 @@ LL | *a == b | = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. -- cgit v1.2.3