Skip to content

Commit 46ba154

Browse files
committed
Update documentation
1 parent 147b854 commit 46ba154

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

compiler/rustc_lint/src/pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare_tool_lint! {
1010
/// The `rustc_pass_by_value` lint marks a type with `#[rustc_pass_by_value]` requiring it to
1111
/// always be passed by value. This is usually used for types that are thin wrappers around
1212
/// references, so there is no benefit to an extra layer of indirection. (Example: `Ty` which
13-
/// is a reference to an `Interned<TyS>`)
13+
/// is a reference to an `Interned<TyKind>`)
1414
pub rustc::PASS_BY_VALUE,
1515
Warn,
1616
"pass by reference of a type flagged as `#[rustc_pass_by_value]`",

compiler/rustc_middle/src/mir/interpret/allocation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl hash::Hash for Allocation {
103103
/// Interned types generally have an `Outer` type and an `Inner` type, where
104104
/// `Outer` is a newtype around `Interned<Inner>`, and all the operations are
105105
/// done on `Outer`, because all occurrences are interned. E.g. `Ty` is an
106-
/// outer type and `TyS` is its inner type.
106+
/// outer type and `TyKind` is its inner type.
107107
///
108108
/// Here things are different because only const allocations are interned. This
109109
/// means that both the inner type (`Allocation`) and the outer type

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ pub struct CReaderCacheKey {
448448
pub pos: usize,
449449
}
450450

451-
/// Use this rather than `TyS`, whenever possible.
451+
/// Use this rather than `TyKind`, whenever possible.
452452
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, HashStable)]
453453
#[rustc_diagnostic_item = "Ty"]
454454
#[rustc_pass_by_value]
@@ -476,13 +476,13 @@ impl ty::EarlyBoundRegion {
476476

477477
/// Represents a predicate.
478478
///
479-
/// See comments on `TyS`, which apply here too (albeit for
480-
/// `PredicateS`/`Predicate` rather than `TyS`/`Ty`).
479+
/// See comments on `WithCachedTypeInfo`, which apply here too (albeit for
480+
/// `PredicateS`/`Predicate` rather than `TyKind`/`Ty`).
481481
#[derive(Debug)]
482482
pub(crate) struct PredicateS<'tcx> {
483483
kind: Binder<'tcx, PredicateKind<'tcx>>,
484484
flags: TypeFlags,
485-
/// See the comment for the corresponding field of [TyS].
485+
/// See the comment for the corresponding field of [WithCachedTypeInfo].
486486
outer_exclusive_binder: ty::DebruijnIndex,
487487
}
488488

0 commit comments

Comments
 (0)