Skip to content

Commit 7e04ffc

Browse files
committed
compiletest: rename add-core-stubs to add-minicore
1 parent a3c4843 commit 7e04ffc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tests/minicore.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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`
2525
implies and requires that the test will be built with `-C panic=abort`.
2626
**Unwinding panics are not supported.**
2727

2828
Tests will also be built with `-C force-unwind-tables=yes` to preserve CFI
2929
directives in assembly tests.
3030

31-
TL;DR: `//@ add-core-stubs` implies two compiler flags:
31+
TL;DR: `//@ add-minicore` implies two compiler flags:
3232

3333
1. `-C panic=abort`
3434
2. `-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

Comments
 (0)