From 34ea6bfa961df73ca8a8777dca1d117fec61b22b Mon Sep 17 00:00:00 2001 From: tek Date: Thu, 19 Nov 2026 15:36:46 +0900 Subject: [PATCH] remove outdated rustc note from undefined.validity.valid-range --- src/behavior-considered-undefined.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/behavior-considered-undefined.md b/src/behavior-considered-undefined.md index cc76bdfe84..4c5d65081b 100644 --- a/src/behavior-considered-undefined.md +++ b/src/behavior-considered-undefined.md @@ -164,9 +164,6 @@ r[undefined.validity.wide] r[undefined.validity.valid-range] * If a type has a custom range of valid values, then a valid value must be in that range. In the standard library, this affects [`NonNull`] and [`NonZero`]. - > [!NOTE] - > `rustc` achieves this with the unstable `rustc_layout_scalar_valid_range_*` attributes. - r[undefined.validity.const-provenance] * **In [const contexts]**: In addition to what is described above, further provenance-related requirements apply during const evaluation. Any value that holds pure integer data (the `i*`/`u*`/`f*` types as well as `bool` and `char`, enum discriminants, and slice [metadata]) must not carry any provenance. Any value that holds pointer data (references, raw pointers, function pointers, and `dyn Trait` metadata) must either carry no provenance, or all bytes must be fragments of the same original pointer value in the correct order.