@@ -14,21 +14,21 @@ range of tests.
1414
1515</div >
1616
17- A test can use [ ` minicore ` ] by specifying the ` //@ add-core-stubs ` directive.
18- Then, mark the test with ` #![feature(no_core)] ` + ` #![no_std] ` + ` #![no_core] ` .
19- Due to Edition 2015 extern prelude rules, you will probably need to declare
20- ` minicore ` as an extern crate .
17+ A test can use [ ` minicore ` ] by specifying the ` //@ add-minicore ` directive.
18+ Then, mark the test with ` #![feature(no_core)] ` + ` #![no_std] ` + ` #![no_core] ` ,
19+ and import the crate into the test with ` extern crate minicore ` (edition 2015)
20+ or ` use minicore` (edition 2018+) .
2121
2222## Implied compiler flags
2323
24- Due to the ` no_std ` + ` no_core ` nature of these tests, ` //@ add-core-stubs `
24+ Due to the ` no_std ` + ` no_core ` nature of these tests, ` //@ add-minicore `
2525implies and requires that the test will be built with ` -C panic=abort ` .
2626** Unwinding panics are not supported.**
2727
2828Tests will also be built with ` -C force-unwind-tables=yes ` to preserve CFI
2929directives in assembly tests.
3030
31- TL;DR: ` //@ add-core-stubs ` implies two compiler flags:
31+ TL;DR: ` //@ add-minicore ` implies two compiler flags:
3232
33331 . ` -C panic=abort `
34342 . ` -C force-unwind-tables=yes `
@@ -48,7 +48,7 @@ attributes (e.g. `on_unimplemented`) should be replicated exactly in `minicore`.
4848## Example codegen test that uses ` minicore `
4949
5050``` rust,no_run
51- //@ add-core-stubs
51+ //@ add-minicore
5252//@ revisions: meow bark
5353//@[meow] compile-flags: --target=x86_64-unknown-linux-gnu
5454//@[meow] needs-llvm-components: x86
0 commit comments