Skip to content

Commit 6fc10e6

Browse files
committed
remove unneeded destruct
1 parent 7088c87 commit 6fc10e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/result.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,8 @@ impl<T, E> Result<T, E> {
819819
#[inline]
820820
#[stable(feature = "rust1", since = "1.0.0")]
821821
#[rustc_const_unstable(feature = "const_trait_impl", issue = "67792")]
822+
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
822823
pub const fn map<U, F: ~const FnOnce(T) -> U + ~const Destruct>(self, op: F) -> Result<U, E>
823-
where
824-
T: ~const Destruct,
825-
E: ~const Destruct,
826824
{
827825
match self {
828826
Ok(t) => Ok(op(t)),

0 commit comments

Comments
 (0)