]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #86810 - ojeda:alloc-gate, r=dtolnay
authorbors <bors@rust-lang.org>
Sat, 3 Jul 2021 13:23:28 +0000 (13:23 +0000)
committerbors <bors@rust-lang.org>
Sat, 3 Jul 2021 13:23:28 +0000 (13:23 +0000)
alloc: `no_global_oom_handling`: disable `new()`s, `pin()`s, etc.

They are infallible, and could not be actually used because
they will trigger an error when monomorphized, but it is better
to just remove them.

Link: https://github.com/Rust-for-Linux/linux/pull/402
Suggested-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

Trivial merge