Rollup merge of #135285 - tbu-:pr_fix_typo4, r=GuillaumeGomez

it-self → itself, build-system → build system, type-alias → type alias
This commit is contained in:
Matthias Krüger 2025-02-11 18:04:22 +01:00 committed by GitHub
commit d719afdbd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
//!
//! ## Adding a new cfg
//!
//! Adding a new feature requires two new symbols one for the cfg it-self
//! Adding a new feature requires two new symbols one for the cfg itself
//! and the second one for the unstable feature gate, those are defined in
//! `rustc_span::symbol`.
//!

View file

@ -135,7 +135,7 @@ As of `2025-01-02T`, the list of known names is as follows:
- `windows`
> Starting with 1.85.0, the `test` cfg is consider to be a "userspace" config
> despite being also set by `rustc` and should be managed by the build-system it-self.
> despite being also set by `rustc` and should be managed by the build system itself.
Like with `values(any())`, well known names checking can be disabled by passing `cfg(any())`
as argument to `--check-cfg`.

View file

@ -26,7 +26,7 @@ impl DocFolder for AliasedNonLocalStripper<'_> {
Some(match i.kind {
clean::TypeAliasItem(..) => {
let mut stripper = NonLocalStripper { tcx: self.tcx };
// don't call `fold_item` as that could strip the type-alias it-self
// don't call `fold_item` as that could strip the type alias itself
// which we don't want to strip out
stripper.fold_item_recur(i)
}