Matthias Krüger
67fcb58347
Rollup merge of #128453 - RalfJung:raw_eq, r=saethlin
...
raw_eq: using it on bytes with provenance is not UB (outside const-eval)
The current behavior of raw_eq violates provenance monotonicity. See https://github.com/rust-lang/rust/pull/124921 for an explanation of provenance monotonicity. It is violated in raw_eq because comparing bytes without provenance is well-defined, but adding provenance makes the operation UB.
So remove the no-provenance requirement from raw_eq. However, the requirement stays in-place for compile-time invocations of raw_eq, that indeed cannot deal with provenance.
Cc `@rust-lang/opsem`
2024-08-02 06:43:43 +02:00
..
2024-07-15 13:01:20 -04:00
2024-08-01 14:25:19 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-15 12:40:10 -04:00
2024-07-29 20:04:55 +03:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 17:46:44 +02:00
2024-06-12 15:49:10 +10:00
2024-07-31 23:20:11 +02:00
2024-08-01 10:40:45 +00:00
2024-07-29 07:41:33 +00:00
2024-07-29 07:41:33 +00:00
2024-07-31 15:36:30 +02:00
2024-08-01 08:33:28 +02:00
2024-08-02 06:43:43 +02:00
2024-07-30 17:49:08 +00:00
2024-06-12 15:49:10 +10:00
2024-07-30 14:08:02 +00:00
2024-07-29 17:50:12 +01:00
2024-07-29 08:26:52 +10:00
2024-08-01 18:53:42 +00:00
2024-07-30 18:28:43 -05:00
2024-07-30 17:49:08 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 10:39:33 +00:00
2024-07-29 08:26:52 +10:00
2024-07-31 12:24:26 -04:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-06-30 16:42:53 +00:00
2024-07-29 14:38:33 +03:00
2024-08-01 10:40:45 +00:00
2024-07-29 08:26:52 +10:00
2024-08-01 14:25:19 +02:00
2024-07-31 23:20:09 +02:00
2024-07-30 10:22:48 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-08-01 14:25:19 +02:00
2024-07-31 23:20:10 +02:00
2024-07-29 11:59:47 -04:00
2024-07-31 00:59:13 +00:00
2024-07-29 08:26:52 +10:00
2024-07-30 04:31:54 +02:00
2024-08-01 18:43:41 +02:00
2024-07-29 08:26:52 +10:00
2024-07-31 20:28:00 +00:00
2024-07-31 16:03:27 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-31 23:20:09 +02:00
2024-07-29 17:46:42 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 03:22:27 +00:00
2024-07-29 08:26:52 +10:00
2024-08-01 00:50:11 +02:00
2024-07-31 23:20:12 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 17:49:08 +00:00
2024-07-30 04:31:54 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00