Skip to content

Commit 8060f58

Browse files
authored
Rollup merge of rust-lang#134850 - tamird:rustc-private-book-update, r=bjorn3
Document virality of `feature(rustc_private)` Closes rust-lang#134825. r? `@bjorn3`
2 parents a8a1011 + 35e5c7d commit 8060f58

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/doc/unstable-book/src/language-features/rustc-private.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The tracking issue for this feature is: [#27812]
66

77
------------------------
88

9-
This feature allows access to unstable internal compiler crates.
9+
This feature allows access to unstable internal compiler crates such as `rustc_driver`.
1010

11-
Additionally it changes the linking behavior of crates which have this feature enabled. It will prevent linking to a dylib if there's a static variant of it already statically linked into another dylib dependency. This is required to successfully link to `rustc_driver`.
11+
The presence of this feature changes the way the linkage format for dylibs is calculated in a way
12+
that is necessary for linking against dylibs that statically link `std` (such as `rustc_driver`).
13+
This makes this feature "viral" in linkage; its use in a given crate makes its use required in
14+
dependent crates which link to it (including integration tests, which are built as separate crates).

0 commit comments

Comments
 (0)