mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 03:44:24 +00:00
add some FIXME(const-hack)
This commit is contained in:
parent
03e0c8edb2
commit
3de6838238
@ -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),
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user