about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-21 21:23:02 +0200
committerGitHub <noreply@github.com>2023-10-21 21:23:02 +0200
commitddb59dc936b4039bde45c26713a13362ee826fa9 (patch)
tree07827cad52792750e0e6652270f2ab11c8773e52
parent4ebc81a521ae12c4bf625b827b603cdae44dfe79 (diff)
parent695beca219e795cae47dfeddb836c234ebadd551 (diff)
downloadrust-ddb59dc936b4039bde45c26713a13362ee826fa9.tar.gz
rust-ddb59dc936b4039bde45c26713a13362ee826fa9.zip
Rollup merge of #117028 - gimbles:patch-1, r=Dylan-DPC
Remove unnecessary `all` in Box
-rw-r--r--library/alloc/src/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 8ab851a0ea6..4a62013c685 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -207,7 +207,7 @@ impl<T> Box<T> {
     /// ```
     /// let five = Box::new(5);
     /// ```
-    #[cfg(all(not(no_global_oom_handling)))]
+    #[cfg(not(no_global_oom_handling))]
     #[inline(always)]
     #[stable(feature = "rust1", since = "1.0.0")]
     #[must_use]