add some FIXME(const-hack)

This commit is contained in:
Ralf Jung 2024-09-08 08:30:28 +02:00
parent 03e0c8edb2
commit 3de6838238
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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),