aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/safe_packed_borrows.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pin_project/safe_packed_borrows.stderr')
-rw-r--r--tests/ui/pin_project/safe_packed_borrows.stderr33
1 files changed, 10 insertions, 23 deletions
diff --git a/tests/ui/pin_project/safe_packed_borrows.stderr b/tests/ui/pin_project/safe_packed_borrows.stderr
index c1f734a..4048eaa 100644
--- a/tests/ui/pin_project/safe_packed_borrows.stderr
+++ b/tests/ui/pin_project/safe_packed_borrows.stderr
@@ -1,24 +1,11 @@
-error: borrow of packed field is unsafe and requires unsafe function or block (error E0133)
- --> $DIR/safe_packed_borrows.rs:17:5
- |
-17 | &a.f; //~ ERROR borrow of packed field is unsafe and requires unsafe function or block
- | ^^^^
- |
+error: lint `safe_packed_borrows` has been renamed to `unaligned_references`
+ --> $DIR/safe_packed_borrows.rs:2:9
+ |
+2 | #![deny(safe_packed_borrows)] //~ ERROR has been renamed to `unaligned_references`
+ | ^^^^^^^^^^^^^^^^^^^ help: use the new name: `unaligned_references`
+ |
note: the lint level is defined here
- --> $DIR/safe_packed_borrows.rs:1:11
- |
-1 | #![forbid(safe_packed_borrows)]
- | ^^^^^^^^^^^^^^^^^^^
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
- = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
- = note: fields of packed structs might be misaligned: dereferencing a misaligned pointer or even just creating a misaligned reference is undefined behavior
-
-error: borrow of packed field is unsafe and requires unsafe function or block (error E0133)
- --> $DIR/safe_packed_borrows.rs:20:5
- |
-20 | &b.f; //~ ERROR borrow of packed field is unsafe and requires unsafe function or block
- | ^^^^
- |
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
- = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
- = note: fields of packed structs might be misaligned: dereferencing a misaligned pointer or even just creating a misaligned reference is undefined behavior
+ --> $DIR/safe_packed_borrows.rs:1:9
+ |
+1 | #![deny(renamed_and_removed_lints)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^