]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #89036 - nbdd0121:alloc, r=yaahc
authorthe8472 <the8472@users.noreply.github.com>
Wed, 22 Sep 2021 17:03:20 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Sep 2021 17:03:20 +0000 (19:03 +0200)
Fix missing `no_global_oom_handling` cfg-gating

Cfg-gate these trait impls that are neglected.

These functions compile now because they use `box` syntax which depends on `exchange_malloc` during codegen only; as a result they compiles with cfg `no_global_oom_handling` but shouldn't.

Discovered in #89030 because that PR makes `box` syntax depend on `exchange_malloc` lang item during MIR construction.


Trivial merge