]> git.lizzy.rs Git - rust.git/commitdiff
Tweak misleading comment
authorMichael Goulet <michael@errs.io>
Thu, 2 Feb 2023 23:02:21 +0000 (15:02 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 23:02:21 +0000 (15:02 -0800)
compiler/rustc_middle/src/ty/print/pretty.rs

index cb47522877c2996db4449929401632c6bee3280a..4ed58e221e6138a23c2631c1227899b862305677 100644 (file)
@@ -751,7 +751,7 @@ fn pretty_print_type(mut self, ty: Ty<'tcx>) -> Result<Self::Type, Self::Error>
                 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()
                         {