add some FIXME(const-hack) · qinheping/verify-rust-std@0dc4621 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1894,7 +1894,7 @@ impl Option<&T> {
1894 1894 where
1895 1895 T: Copy,
1896 1896 {
1897 -// FIXME: this implementation, which sidesteps using `Option::map` since it's not const
1897 +// FIXME(const-hack): this implementation, which sidesteps using `Option::map` since it's not const
1898 1898 // ready yet, should be reverted when possible to avoid code repetition
1899 1899 match self {
1900 1900 Some(&v) => Some(v),
Original file line number Diff line number Diff line change
@@ -1540,7 +1540,7 @@ impl<T, E> Result<&T, E> {
1540 1540 where
1541 1541 T: Copy,
1542 1542 {
1543 -// FIXME: this implementation, which sidesteps using `Result::map` since it's not const
1543 +// FIXME(const-hack): this implementation, which sidesteps using `Result::map` since it's not const
1544 1544 // ready yet, should be reverted when possible to avoid code repetition
1545 1545 match self {
1546 1546 Ok(&v) => Ok(v),