about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-02-02 15:02:21 -0800
committerGitHub <noreply@github.com>2023-02-02 15:02:21 -0800
commit745d60c239d7cf66f1bebca921cf0df0c052ade0 (patch)
treeff699915859b64fa10baeedc31d24abd3ce9210d
parent64f5293956de9dc4e336906f1c7fef8415c292de (diff)
downloadrust-745d60c239d7cf66f1bebca921cf0df0c052ade0.tar.gz
rust-745d60c239d7cf66f1bebca921cf0df0c052ade0.zip
Tweak misleading comment
-rw-r--r--compiler/rustc_middle/src/ty/print/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs
index cb47522877c..4ed58e221e6 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -751,7 +751,7 @@ pub trait PrettyPrinter<'tcx>:
                 match self.tcx().def_kind(parent) {
                     DefKind::TyAlias | DefKind::AssocTy => {
                         // NOTE: I know we should check for NO_QUERIES here, but it's alright.
-                        // `type_of` on a TAIT should never cause a cycle.
+                        // `type_of` on a type alias or assoc type should never cause a cycle.
                         if let ty::Alias(ty::Opaque, ty::AliasTy { def_id: d, .. }) =
                             *self.tcx().type_of(parent).kind()
                         {