Skip to content

Commit 05414b0

Browse files
committed
update Rust Unstable Book docs for --extern force
1 parent 905d5a3 commit 05414b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/unstable-book/src/compiler-flags/extern-options.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Tracking issue for `noprelude`: [#98398](https://github.com/rust-lang/rust/issues/98398)
55
* Tracking issue for `priv`: [#98399](https://github.com/rust-lang/rust/issues/98399)
66
* Tracking issue for `nounused`: [#98400](https://github.com/rust-lang/rust/issues/98400)
7+
* Tracking issue for `force`: [#111302](https://github.com/rust-lang/rust/issues/111302)
78

89
The behavior of the `--extern` flag can be modified with `noprelude`, `priv` or `nounused` options.
910

@@ -25,3 +26,4 @@ To use multiple options, separate them with a comma:
2526
This is used by the [build-std project](https://github.com/rust-lang/wg-cargo-std-aware/) to simulate compatibility with sysroot-only crates.
2627
* `priv`: Mark the crate as a private dependency for the [`exported_private_dependencies`](../../rustc/lints/listing/warn-by-default.html#exported-private-dependencies) lint.
2728
* `nounused`: Suppress [`unused-crate-dependencies`](../../rustc/lints/listing/allowed-by-default.html#unused-crate-dependencies) warnings for the crate.
29+
* `force`: Resolve the crate as if it is used, even if it is not used. This can be used to satisfy compilation session requirements like the presence of an allocator or panic handler.

0 commit comments

Comments
 (0)