test: Subtract code_offset from width for ui_testing
This commit is contained in:
parent
0a5817aa2e
commit
9c6897bd07
22 changed files with 81 additions and 81 deletions
|
|
@ -2021,7 +2021,7 @@ impl HumanEmitter {
|
|||
if let Some(width) = self.diagnostic_width {
|
||||
width.saturating_sub(code_offset)
|
||||
} else if self.ui_testing || cfg!(miri) {
|
||||
DEFAULT_COLUMN_WIDTH
|
||||
DEFAULT_COLUMN_WIDTH.saturating_sub(code_offset)
|
||||
} else {
|
||||
termize::dimensions()
|
||||
.map(|(w, _)| w.saturating_sub(code_offset))
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ LL | let _ = option_env!("PATH").expect("environment variable PATH isn't set
|
|||
error: this will panic at run-time if the environment variable doesn't exist at compile-time
|
||||
--> tests/ui/option_env_unwrap.rs:14:13
|
||||
|
|
||||
LL | let _ = option_env!("__Y__do_not_use").unwrap(); // This test only works if you don't have a __Y__do_not_use env variable in your env...
|
||||
LL | let _ = option_env!("__Y__do_not_use").unwrap(); // This test only works if you don't have a __Y__do_not_use env variable in you...
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: consider using the `env!` macro instead
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ LL | | /// gravida non lacinia at, rhoncus eu lacus.
|
|||
error: first doc comment paragraph is too long
|
||||
--> tests/ui/too_long_first_doc_paragraph.rs:65:1
|
||||
|
|
||||
LL | / /// Some function. This doc-string paragraph is too long. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lore...
|
||||
LL | / /// Some function. This doc-string paragraph is too long. Lorem Ipsum is simply dummy text of the printing and typesetting industr...
|
||||
LL | |
|
||||
LL | | ///
|
||||
LL | | /// Here's a second paragraph. It would be preferable to put the details here.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: trying to join an already joined thread
|
||||
--> tests/fail-dep/concurrency/libc_pthread_join_joined.rs:LL:CC
|
||||
|
|
||||
LL | assert_eq!(libc::pthread_join(native, ptr::null_mut()), 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
LL | ... assert_eq!(libc::pthread_join(native, ptr::null_mut()), 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: trying to join a detached thread
|
||||
--> tests/fail-dep/concurrency/libc_pthread_join_main.rs:LL:CC
|
||||
|
|
||||
LL | assert_eq!(libc::pthread_join(thread_id, ptr::null_mut()), 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
LL | ... assert_eq!(libc::pthread_join(thread_id, ptr::null_mut()), 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
error: Undefined Behavior: Data race detected between (1) non-atomic read on thread `unnamed-ID` and (2) deallocation on thread `unnamed-ID` at ALLOC
|
||||
--> tests/fail/data_race/dealloc_read_race1.rs:LL:CC
|
||||
|
|
||||
LL | / __rust_dealloc(
|
||||
LL | |
|
||||
LL | | ptr.0 as *mut _,
|
||||
LL | | std::mem::size_of::<usize>(),
|
||||
LL | | std::mem::align_of::<usize>(),
|
||||
LL | | );
|
||||
| |_____________^ (2) just happened here
|
||||
LL | / ... __rust_dealloc(
|
||||
LL | | ...
|
||||
LL | | ... ptr.0 as *mut _,
|
||||
LL | | ... std::mem::size_of::<usize>(),
|
||||
LL | | ... std::mem::align_of::<usize>(),
|
||||
LL | | ... );
|
||||
| |_______^ (2) just happened here
|
||||
|
|
||||
help: and (1) occurred earlier here
|
||||
--> tests/fail/data_race/dealloc_read_race1.rs:LL:CC
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: Data race detected between (1) non-atomic read on thread `unnamed-ID` and (2) deallocation on thread `unnamed-ID` at ALLOC
|
||||
--> tests/fail/data_race/dealloc_read_race_stack.rs:LL:CC
|
||||
|
|
||||
LL | }
|
||||
| ^ (2) just happened here
|
||||
LL | ... }
|
||||
| ^ (2) just happened here
|
||||
|
|
||||
help: and (1) occurred earlier here
|
||||
--> tests/fail/data_race/dealloc_read_race_stack.rs:LL:CC
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
error: Undefined Behavior: Data race detected between (1) non-atomic write on thread `unnamed-ID` and (2) deallocation on thread `unnamed-ID` at ALLOC
|
||||
--> tests/fail/data_race/dealloc_write_race1.rs:LL:CC
|
||||
|
|
||||
LL | / __rust_dealloc(
|
||||
LL | |
|
||||
LL | | ptr.0 as *mut _,
|
||||
LL | | std::mem::size_of::<usize>(),
|
||||
LL | | std::mem::align_of::<usize>(),
|
||||
LL | | );
|
||||
| |_____________^ (2) just happened here
|
||||
LL | / ... __rust_dealloc(
|
||||
LL | | ...
|
||||
LL | | ... ptr.0 as *mut _,
|
||||
LL | | ... std::mem::size_of::<usize>(),
|
||||
LL | | ... std::mem::align_of::<usize>(),
|
||||
LL | | ... );
|
||||
| |_______^ (2) just happened here
|
||||
|
|
||||
help: and (1) occurred earlier here
|
||||
--> tests/fail/data_race/dealloc_write_race1.rs:LL:CC
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: Data race detected between (1) non-atomic write on thread `unnamed-ID` and (2) deallocation on thread `unnamed-ID` at ALLOC
|
||||
--> tests/fail/data_race/dealloc_write_race_stack.rs:LL:CC
|
||||
|
|
||||
LL | }
|
||||
| ^ (2) just happened here
|
||||
LL | ... }
|
||||
| ^ (2) just happened here
|
||||
|
|
||||
help: and (1) occurred earlier here
|
||||
--> tests/fail/data_race/dealloc_write_race_stack.rs:LL:CC
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: accessing memory with alignment ALIGN, but alignment ALIGN is required
|
||||
--> tests/fail/intrinsics/copy_unaligned.rs:LL:CC
|
||||
|
|
||||
LL | std::intrinsics::copy_nonoverlapping(&data[5], ptr, 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
LL | ... std::intrinsics::copy_nonoverlapping(&data[5], ptr, 0);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: `simd_cast` intrinsic called on 3.40282347E+38f32 which cannot be represented in target type `i32`
|
||||
--> tests/fail/intrinsics/simd-float-to-int.rs:LL:CC
|
||||
|
|
||||
LL | let _x: i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
LL | ... let _x: i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: Undefined Behavior: Data race detected between (1) retag read on thread `unnamed-ID` and (2) non-atomic write on thread `unnamed-ID` at ALLOC
|
||||
--> tests/fail/stacked_borrows/retag_data_race_read.rs:LL:CC
|
||||
|
|
||||
LL | *p = 5;
|
||||
| ^^^^^^ (2) just happened here
|
||||
LL | ... *p = 5;
|
||||
| ^^^^^^ (2) just happened here
|
||||
|
|
||||
help: and (1) occurred earlier here
|
||||
--> tests/fail/stacked_borrows/retag_data_race_read.rs:LL:CC
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
error[E0423]: expected function, found module `core::future::async_drop`
|
||||
--> $DIR/ex-ice1.rs:9:35
|
||||
|
|
||||
LL | let async_drop_fut = pin!(core::future::async_drop(async {}));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ not a function
|
||||
LL | ... let async_drop_fut = pin!(core::future::async_drop(async {}));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ not a function
|
||||
|
||||
error[E0603]: module `async_drop` is private
|
||||
--> $DIR/ex-ice1.rs:9:49
|
||||
|
|
||||
LL | let async_drop_fut = pin!(core::future::async_drop(async {}));
|
||||
| ^^^^^^^^^^ private module
|
||||
LL | ... let async_drop_fut = pin!(core::future::async_drop(async {}));
|
||||
| ^^^^^^^^^^ private module
|
||||
|
|
||||
note: the module `async_drop` is defined here
|
||||
--> $SRC_DIR/core/src/future/mod.rs:LL:COL
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0605]: non-primitive cast: `&for<'a, 'b> fn(&'a Event<'b>) {my_fn}` as `&for<'a, 'b> fn(&'a Event<'b>)`
|
||||
--> $DIR/func-pointer-issue-140491.rs:6:34
|
||||
|
|
||||
LL | ..._>) = &my_fn as _;
|
||||
| ^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
|
||||
LL | ... = &my_fn as _;
|
||||
| ^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
|
||||
|
|
||||
= note: casting reference expression `&my_fn` because `&` binds tighter than `as`
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ LL | pub const UNDERFLOW_ADDRESS_SPACE: *const u8 = unsafe { (1 as *const u8).of
|
|||
error[E0080]: in-bounds pointer arithmetic failed: attempting to offset pointer by -$BYTES bytes, but got ALLOC3-0x2 which points to before the beginning of the allocation
|
||||
--> $DIR/offset_ub.rs:16:49
|
||||
|
|
||||
LL | ...*const u8 = unsafe { [0u8; 1].as_ptr().wrapping_offset(-2).offset(-2) };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `NEGATIVE_OFFSET` failed here
|
||||
LL | ...nst u8 = unsafe { [0u8; 1].as_ptr().wrapping_offset(-2).offset(-2) };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `NEGATIVE_OFFSET` failed here
|
||||
|
||||
error[E0080]: in-bounds pointer arithmetic failed: attempting to offset pointer by 1 byte, but got ALLOC4 which is at or beyond the end of the allocation of size $BYTES bytes
|
||||
--> $DIR/offset_ub.rs:18:50
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ LL | let _ = nested::DeprecatedStruct {
|
|||
error: use of deprecated unit struct `deprecation_lint::nested::DeprecatedUnitStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:48:25
|
||||
|
|
||||
LL | let _ = nested::DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... let _ = nested::DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated unit variant `deprecation_lint::nested::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/deprecation-lint.rs:50:31
|
||||
|
|
@ -97,8 +97,8 @@ LL | macro_test_arg!(deprecated_text());
|
|||
error: use of deprecated function `deprecation_lint::deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:60:41
|
||||
|
|
||||
LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
LL | ... macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated method `deprecation_lint::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:65:16
|
||||
|
|
@ -211,8 +211,8 @@ LL | Trait::trait_deprecated_text(&foo);
|
|||
error: use of deprecated method `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:261:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::deprecated_future`: text
|
||||
--> $DIR/deprecation-lint.rs:264:9
|
||||
|
|
@ -295,8 +295,8 @@ LL | Trait::trait_deprecated_text(&foo);
|
|||
error: use of deprecated method `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:299:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::test_fn_closure_body::{closure#0}::bar`
|
||||
--> $DIR/deprecation-lint.rs:317:13
|
||||
|
|
@ -391,8 +391,8 @@ LL | foo.method_deprecated_text();
|
|||
error: use of deprecated method `deprecation_lint::MethodTester::method_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:27:14
|
||||
|
|
||||
LL | Foo::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... Foo::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated method `deprecation_lint::MethodTester::method_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:28:16
|
||||
|
|
@ -589,8 +589,8 @@ LL | Foo::method_deprecated_text(&foo);
|
|||
error: use of deprecated method `this_crate::MethodTester::method_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:257:16
|
||||
|
|
||||
LL | <Foo>::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo>::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated method `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:258:13
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ LL | Trait::trait_deprecated_text(&foo);
|
|||
warning: use of deprecated method `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:40:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:42:9
|
||||
|
|
@ -115,8 +115,8 @@ LL | let _ = Enum::DeprecatedVariant;
|
|||
warning: use of deprecated unit variant `lint_stability::Enum::DeprecatedUnstableVariant`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:121:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedUnstableVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... let _ = Enum::DeprecatedUnstableVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated tuple struct `lint_stability::DeprecatedTupleStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:125:17
|
||||
|
|
@ -127,8 +127,8 @@ LL | let _ = DeprecatedTupleStruct (1);
|
|||
warning: use of deprecated tuple struct `lint_stability::DeprecatedUnstableTupleStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:126:17
|
||||
|
|
||||
LL | let _ = DeprecatedUnstableTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... let _ = DeprecatedUnstableTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:135:25
|
||||
|
|
@ -139,14 +139,14 @@ LL | macro_test_arg!(deprecated_text());
|
|||
warning: use of deprecated function `lint_stability::deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:136:25
|
||||
|
|
||||
LL | macro_test_arg!(deprecated_unstable_text());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... macro_test_arg!(deprecated_unstable_text());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:137:41
|
||||
|
|
||||
LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
LL | ... macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated method `lint_stability::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:142:16
|
||||
|
|
@ -169,8 +169,8 @@ LL | Trait::trait_deprecated_text(&foo);
|
|||
warning: use of deprecated method `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:148:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated method `lint_stability::Trait::trait_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:150:16
|
||||
|
|
@ -211,8 +211,8 @@ LL | trait LocalTrait2 : DeprecatedTrait { }
|
|||
warning: use of deprecated function `inheritance::inherited_stability::unstable_mod::deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:205:23
|
||||
|
|
||||
LL | unstable_mod::deprecated();
|
||||
| ^^^^^^^^^^
|
||||
LL | ... unstable_mod::deprecated();
|
||||
| ^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `this_crate::deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:327:9
|
||||
|
|
@ -367,14 +367,14 @@ LL | foo.method_deprecated_text();
|
|||
warning: use of deprecated method `lint_stability::MethodTester::method_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:35:14
|
||||
|
|
||||
LL | Foo::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... Foo::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated method `lint_stability::MethodTester::method_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:36:16
|
||||
|
|
||||
LL | <Foo>::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... <Foo>::method_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated method `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:37:13
|
||||
|
|
@ -397,8 +397,8 @@ LL | foo.method_deprecated_unstable();
|
|||
warning: use of deprecated method `lint_stability::MethodTester::method_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:44:14
|
||||
|
|
||||
LL | Foo::method_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... Foo::method_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated method `lint_stability::MethodTester::method_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:45:16
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: too many `#` symbols: raw strings may be delimited by up to 255 `#` symbols, but found 256
|
||||
--> $DIR/too-many-hash.rs:4:19
|
||||
|
|
||||
LL | ... = r####################################################...#######################################;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | ... = r###################################################...######################################;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -346,8 +346,8 @@ LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
|
|||
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
--> $DIR/empty-match.rs:71:24
|
||||
|
|
||||
LL | match_guarded_arm!(NonEmptyEnum5::V1);
|
||||
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
LL | ...ded_arm!(NonEmptyEnum5::V1);
|
||||
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
|
|
||||
note: `NonEmptyEnum5` defined here
|
||||
--> $DIR/empty-match.rs:38:10
|
||||
|
|
|
|||
|
|
@ -346,8 +346,8 @@ LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
|
|||
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
--> $DIR/empty-match.rs:71:24
|
||||
|
|
||||
LL | match_guarded_arm!(NonEmptyEnum5::V1);
|
||||
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
LL | ...ded_arm!(NonEmptyEnum5::V1);
|
||||
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
|
||||
|
|
||||
note: `NonEmptyEnum5` defined here
|
||||
--> $DIR/empty-match.rs:38:10
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ LL | simd_insert(v, 2, 0u8);
|
|||
error[E0511]: invalid monomorphization of `simd_extract` intrinsic: SIMD index #1 is out of bounds (limit 2)
|
||||
--> $DIR/not-out-of-bounds.rs:85:24
|
||||
|
|
||||
LL | let _val: u8 = simd_extract(v, 2);
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
LL | ... let _val: u8 = simd_extract(v, 2);
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0277]: `&[u8; 0]` cannot be safely transmuted into `&[u16; 0]`
|
||||
--> $DIR/align-fail.rs:21:55
|
||||
|
|
||||
LL | ...tatic [u8; 0], &'static [u16; 0]>();
|
||||
| ^^^^^^^^^^^^^^^^^ the minimum alignment of `&[u8; 0]` (1) should be greater than that of `&[u16; 0]` (2)
|
||||
LL | ...ic [u8; 0], &'static [u16; 0]>();
|
||||
| ^^^^^^^^^^^^^^^^^ the minimum alignment of `&[u8; 0]` (1) should be greater than that of `&[u16; 0]` (2)
|
||||
|
|
||||
note: required by a bound in `is_maybe_transmutable`
|
||||
--> $DIR/align-fail.rs:9:14
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue