Skip to content

Commit 2d5e1de

Browse files
committed
rust: alloc: skip vec! for no_global_oom_handling
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 7aaec26 commit 2d5e1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/alloc/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/// be mindful of side effects.
3737
///
3838
/// [`Vec`]: crate::vec::Vec
39-
#[cfg(not(test))]
39+
#[cfg(all(not(no_global_oom_handling), not(test)))]
4040
#[macro_export]
4141
#[stable(feature = "rust1", since = "1.0.0")]
4242
#[allow_internal_unstable(box_syntax, liballoc_internals)]

0 commit comments

Comments
 (0)