Skip to content

Commit 9cdb19a

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

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

Lines changed: 5 additions & 2 deletions
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"; its use in a particular crate makes its use required in all
14+
dependent crates (including integration tests, which are built as separate crates).

0 commit comments

Comments
 (0)