Skip to content

Commit 35e5c7d

Browse files
committed
Document virality of feature(rustc_private)
Since 9cb1998 this feature is viral.
1 parent 8b3f7ac commit 35e5c7d

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)