diff options
| author | bors <bors@rust-lang.org> | 2022-04-20 12:11:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-20 12:11:09 +0000 |
| commit | 3bda70a23229ea946e106720378974ecf73118a7 (patch) | |
| tree | e8a019ceaa6d476cdae3ab59712ea060cb10a309 /src/test/codegen/src-hash-algorithm | |
| parent | 34c3e0b0672f8a2bed571b844f1ace6f83f5fae3 (diff) | |
| parent | dd4a92176ceb35ddc0014bdb452be00b26a1fc9e (diff) | |
| download | rust-3bda70a23229ea946e106720378974ecf73118a7.tar.gz rust-3bda70a23229ea946e106720378974ecf73118a7.zip | |
Auto merge of #12041 - jonas-schievink:prefer-core-cfg-attr-no-std, r=jonas-schievink
feat: prefer core/alloc over std in auto-imports if `#[no_std]` is conditional We already did this if `#![no_std]` was present, this PR makes it work with `#![cfg_attr(not(test), no_std)]` too, which is very common in libraries. Fixes https://github.com/rust-lang/rust-analyzer/issues/12035 cc https://github.com/rust-lang/rust-analyzer/issues/10718
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
