diff options
| author | Ralf Jung <post@ralfj.de> | 2024-09-08 08:30:28 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-08 08:30:28 +0200 |
| commit | 3de6838238dd72004acf0e6b3f158837952c1dc3 (patch) | |
| tree | b1196d899b5a9a61c289ea5c0e1999ca840e05bd | |
| parent | 03e0c8edb2114aaf92fb8d93a18dfb0028690765 (diff) | |
| download | rust-3de6838238dd72004acf0e6b3f158837952c1dc3.tar.gz rust-3de6838238dd72004acf0e6b3f158837952c1dc3.zip | |
add some FIXME(const-hack)
| -rw-r--r-- | library/core/src/option.rs | 2 | ||||
| -rw-r--r-- | library/core/src/result.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 50cb22b7eb3..b62eec1897b 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1894,7 +1894,7 @@ impl<T> Option<&T> { where T: Copy, { - // FIXME: this implementation, which sidesteps using `Option::map` since it's not const + // FIXME(const-hack): this implementation, which sidesteps using `Option::map` since it's not const // ready yet, should be reverted when possible to avoid code repetition match self { Some(&v) => Some(v), diff --git a/library/core/src/result.rs b/library/core/src/result.rs index a7fd95e0079..5b6a81c8dae 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -1540,7 +1540,7 @@ impl<T, E> Result<&T, E> { where T: Copy, { - // FIXME: this implementation, which sidesteps using `Result::map` since it's not const + // FIXME(const-hack): this implementation, which sidesteps using `Result::map` since it's not const // ready yet, should be reverted when possible to avoid code repetition match self { Ok(&v) => Ok(v), |
