about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-10-30 23:35:35 +0000
committerMichael Goulet <michael@errs.io>2023-10-30 23:46:27 +0000
commitadd09e66f28c92eef41e730a63191cd2a824598a (patch)
tree2b387339df575dd148726ba09dbe4fff1b3e3766 /compiler/rustc_middle/src
parent31bc7e2c47e82798a392c770611975a6883132c8 (diff)
downloadrust-add09e66f28c92eef41e730a63191cd2a824598a.tar.gz
rust-add09e66f28c92eef41e730a63191cd2a824598a.zip
Some more coroutine renamings
Diffstat (limited to 'compiler/rustc_middle/src')
-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 799ba2c35ec..baf160bcc99 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -1053,7 +1053,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
                         let term = if let Some(ty) = term.skip_binder().ty()
                             && let ty::Alias(ty::Projection, proj) = ty.kind()
                             && let Some(assoc) = tcx.opt_associated_item(proj.def_id)
-                            && assoc.trait_container(tcx) == tcx.lang_items().gen_trait()
+                            && assoc.trait_container(tcx) == tcx.lang_items().coroutine_trait()
                             && assoc.name == rustc_span::sym::Return
                         {
                             if let ty::Coroutine(_, args, _) = args.type_at(0).kind() {