You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#111311 - JohnTitor:rollup-vfpjm0d, r=JohnTitor
Rollup of 7 pull requests
Successful merges:
- rust-lang#105583 (Operand::extract_field: only cast llval if it's a pointer and replace bitcast w/ pointercast.)
- rust-lang#110094 (clean up `transmute`s in `core`)
- rust-lang#111150 (added TraitAlias to check_item() for missing_docs)
- rust-lang#111293 (rustc --explain E0726 - grammar fixing (it's => its + add a `the` where it felt right to do so))
- rust-lang#111300 (Emit while_true lint spanning the entire loop condition)
- rust-lang#111301 (Remove calls to `mem::forget` and `mem::replace` in `Option::get_or_insert_with`.)
- rust-lang#111303 (update Rust Unstable Book docs for `--extern force`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
Copy file name to clipboardExpand all lines: src/doc/unstable-book/src/compiler-flags/extern-options.md
+2
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
* Tracking issue for `noprelude`: [#98398](https://github.com/rust-lang/rust/issues/98398)
5
5
* Tracking issue for `priv`: [#98399](https://github.com/rust-lang/rust/issues/98399)
6
6
* 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)
7
8
8
9
The behavior of the `--extern` flag can be modified with `noprelude`, `priv` or `nounused` options.
9
10
@@ -25,3 +26,4 @@ To use multiple options, separate them with a comma:
25
26
This is used by the [build-std project](https://github.com/rust-lang/wg-cargo-std-aware/) to simulate compatibility with sysroot-only crates.
26
27
*`priv`: Mark the crate as a private dependency for the [`exported_private_dependencies`](../../rustc/lints/listing/warn-by-default.html#exported-private-dependencies) lint.
27
28
*`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