diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-12 19:03:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-12 19:03:41 +0200 |
| commit | 4428d6f36306b2d17ad7eb11bd0bbc553800578b (patch) | |
| tree | e841add512d801e780fe098147b28555df654b83 /library/std/src | |
| parent | 394c4060d2d971b0ce6b9c86f9f5ef6dff7ae00e (diff) | |
| parent | 7a3a317618885a8949c8b95c9a38f3f9729b1f3c (diff) | |
| download | rust-4428d6f36306b2d17ad7eb11bd0bbc553800578b.tar.gz rust-4428d6f36306b2d17ad7eb11bd0bbc553800578b.zip | |
Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead
some const cleanup: remove unnecessary attributes, add const-hack indications I learned that we use `FIXME(const-hack)` on top of the "const-hack" label. That seems much better since it marks the right place in the code and moves around with the code. So I went through the PRs with that label and added appropriate FIXMEs in the code. IMO this means we can then remove the label -- Cc ``@rust-lang/wg-const-eval.`` I also noticed some const stability attributes that don't do anything useful, and removed them. r? ``@fee1-dead``
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/pal/windows/args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/windows/args.rs b/library/std/src/sys/pal/windows/args.rs index 66e75a83571..77d82678f1d 100644 --- a/library/std/src/sys/pal/windows/args.rs +++ b/library/std/src/sys/pal/windows/args.rs @@ -20,7 +20,7 @@ use crate::{fmt, io, iter, vec}; /// This is the const equivalent to `NonZero::new(n).unwrap()` /// -/// FIXME: This can be removed once `Option::unwrap` is stably const. +/// FIXME(const-hack): This can be removed once `Option::unwrap` is stably const. /// See the `const_option` feature (#67441). const fn non_zero_u16(n: u16) -> NonZero<u16> { match NonZero::new(n) { |
