Auto merge of #27393 - alexcrichton:no-std-changes, r=brson
This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The `#![no_std]` attribute now injects `extern crate core` at the top of the crate as well as the libcore prelude into all modules (in the same manner as the standard library's prelude). The `#![no_core]` attribute disables both std and core injection. [rfc]: https://github.com/rust-lang/rfcs/pull/1184 Closes #27394
Showing
src/libcore/prelude/mod.rs
0 → 100644
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
src/test/run-pass/no-core-1.rs
0 → 100644
此差异已折叠。
src/test/run-pass/no-std-1.rs
0 → 100644
此差异已折叠。
src/test/run-pass/no-std-2.rs
0 → 100644
此差异已折叠。
src/test/run-pass/no-std-3.rs
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录