Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#![feature(no_core)]和 和有什么不一样#![no_core]?
#![feature(no_core)]
#![no_core]
都需要在没有 libcore 的情况下编译吗?
要使用#![no_core]你必须使用夜间编译器并通过#![feature(no_core)]. 所以是的,如果你想省略 libcore,它们都是必需的。
所谓的“功能门”用于启用 Rust 语言的不稳定行为,因此您需要明确选择加入并承认它在未来可能会发生变化。
功能总是存在跟踪问题,您可以在其中查找功能的状态。在这种情况下no_core是#29539。您还可以从源代码中获取跟踪号,例如在查看Future.
no_core
Future