-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Description
We now have a "minicore" at tests/auxiliary/minicore.rs with some lang items to be shared among no_core tests. However, there's a lot more that could reasonably be added there, and this does not require a lot of experience with how rustc works so it could be a good first issue as well.
To find a candidate test, grep the test suite for #[rustc_intrinsic]. If this test also uses #![no_core], changes are high that this is a good candidate. If the test does not yet use minicore, first port it to minicore by adding //@ add-core-stubs and:
extern crate minicore;
use minicore::*;See e.g. tests/assembly/simd-intrinsic-mask-reduce.rs for an example.
All of the existing lang items (things with #[lang] attributes) in the test should be removed now; if they don't yet exist in minicore, they should be added there. Then also remove the #[rustc_intrinsic] declarations from the test and add them to minicore if they do not yet exist there.
Cc @jieyouxu