Skip to content

Commit 4db8160

Browse files
giraffatemark-i-m
authored andcommitted
Avoid "whitelist"
Fixed according to rust-lang/rust@62cf767
1 parent f75a2fb commit 4db8160

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/crates-io.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ reasons:
1414

1515
TODO: what is the vetting process?
1616

17-
## Whitelist
17+
## Pemitted dependencies
1818

19-
The `tidy` tool has a [whitelist] of crates that are allowed. To add a
20-
dependency that is not already in the compiler, you will need to add it to this
21-
whitelist.
19+
The `tidy` tool has [crates that are allowed]. To add a
20+
dependency that is not already in the compiler, you will need to add it to these
21+
crates.
2222

23-
[whitelist]: https://github.com/rust-lang/rust/blob/659994627234ce7d95a1a52ad8756ce661059adf/src/tools/tidy/src/deps.rs#L56
23+
[crates that are allowed]: https://github.com/rust-lang/rust/blob/19ecce332e56941ea0dd2a805270faa102acdb14/src/tools/tidy/src/deps.rs#L59

src/stability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Furthermore this attribute is needed to mark an intrinsic as callable from
7676
Macros, compiler desugarings and `const fn`s expose their bodies to the call
7777
site. To work around not being able to use unstable things in the standard
7878
library's macros, there's the `#[allow_internal_unstable(feature1, feature2)]`
79-
attribute that whitelists the given features for usage in stable macros or
79+
attribute that allows the given features for usage in stable macros or
8080
`const fn`s.
8181

8282
Note that `const fn`s are even more special in this regard. You can't just
83-
whitelist any feature, the features need an implementation in
83+
allow any feature, the features need an implementation in
8484
`qualify_min_const_fn.rs`. For example the `const_fn_union` feature gate allows
8585
accessing fields of unions inside stable `const fn`s. The rules for when it's
8686
ok to use such a feature gate are that behavior matches the runtime behavior of

0 commit comments

Comments
 (0)