about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-02 21:52:44 -0400
committerMichael Goulet <michael@errs.io>2024-10-02 21:59:55 -0400
commitf95bdf453e4f4c0a5ac244ff5878264b61ccaa8e (patch)
treea2a7856b0e385f6b7189c06185254e1798abb9cc /compiler/rustc_borrowck/src
parent360f7d7b731c508c88b7b56921a92d281c05dbf7 (diff)
downloadrust-f95bdf453e4f4c0a5ac244ff5878264b61ccaa8e.tar.gz
rust-f95bdf453e4f4c0a5ac244ff5878264b61ccaa8e.zip
Remove redundant in_trait from hir::TyKind::OpaqueDef
Diffstat (limited to 'compiler/rustc_borrowck/src')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/region_name.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs
index 2f22e1532c1..d4598a1f582 100644
--- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs
+++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs
@@ -832,7 +832,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
     fn get_future_inner_return_ty(&self, hir_ty: &'tcx hir::Ty<'tcx>) -> &'tcx hir::Ty<'tcx> {
         let hir = self.infcx.tcx.hir();
 
-        let hir::TyKind::OpaqueDef(id, _, _) = hir_ty.kind else {
+        let hir::TyKind::OpaqueDef(id, _) = hir_ty.kind else {
             span_bug!(
                 hir_ty.span,
                 "lowered return type of async fn is not OpaqueDef: {:?}",