Files
rust/tests/ui
bors 39c03fb652 Auto merge of #112026 - saethlin:misaligned-addrof, r=pnkfelix
Don't check for misaligned raw pointer derefs inside Rvalue::AddressOf

From https://github.com/rust-lang/rust/pull/112026#issuecomment-1565686697:

rustc 1.70 (stable next week) added a Mir pass to add pointer alignment checks in debug mode. Adding these checks caused some crates to break, but that was expected, since they contain broken code (https://github.com/rust-lang/rust/issues/111487) for tracking that.

However, the checks added are slightly more aggressive than they should have been. Specifically, they also check the place in an `addr_of!` expression. Whether lack of alignment there is or isn't UB is unclear. This PR modifies the pass to not affect those cases.

I spot checked the crater regressions and the ones I saw were not the case that this PR is modifying. It still seems good to not land anything overaggressive though
2023-05-28 12:33:52 +00:00
..
2023-04-30 00:06:26 +08:00
2023-01-30 20:12:19 +00:00
2023-05-25 17:40:46 +00:00
2023-01-15 19:46:20 +00:00
2023-04-16 23:09:57 +00:00
2023-05-12 00:10:52 +00:00
2023-04-03 09:24:11 +02:00
2023-05-05 20:36:21 +02:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-05-04 18:06:07 +00:00
2023-05-12 00:10:52 +00:00
2023-05-11 12:14:57 -07:00
2023-05-08 17:58:01 -03:00
2023-03-01 13:26:59 +01:00
2023-01-30 20:12:19 +00:00
2023-05-25 17:40:46 +00:00
2023-05-24 21:15:50 -03:00
2023-04-30 14:08:26 +00:00
2023-02-16 11:42:35 -03:00
2023-05-08 03:36:30 +00:00
2023-05-12 00:10:52 +00:00
2023-04-29 13:01:46 +01:00
2023-05-25 18:17:02 +00:00
2023-05-02 10:32:08 +00:00
2023-04-03 09:24:11 +02:00
2023-05-05 14:58:52 -07:00
2023-04-29 13:01:46 +01:00
2023-04-19 19:13:45 +00:00
2023-04-13 22:10:26 -05:00
2023-05-08 03:36:30 +00:00
2023-05-19 20:58:06 +02:00
2023-03-29 18:04:44 -04:00
2023-04-05 15:59:29 +00:00
2023-04-26 21:02:56 +02:00
2023-02-07 19:17:24 +00:00
2023-01-15 19:46:20 +00:00
2023-05-08 03:36:30 +00:00
2023-05-01 16:15:17 +08:00
2023-04-29 13:01:46 +01:00
2023-05-16 20:30:48 +00:00
2023-05-12 00:10:52 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-03-08 00:00:18 +00:00
2023-04-13 22:10:26 -05:00
2023-04-13 22:10:26 -05:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-01-15 19:46:20 +00:00