about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-03 22:06:03 +0000
committerMichael Goulet <michael@errs.io>2024-11-04 04:45:52 +0000
commitd458f850aad26480df913ddddfdeec9065f9e985 (patch)
treef199f1d61357441bf748ced2fe7041a22e6ad6f7 /compiler/rustc_trait_selection/src/errors
parent883f8705d490a3d1f8f83610663958d1f3ac5f1c (diff)
downloadrust-d458f850aad26480df913ddddfdeec9065f9e985.tar.gz
rust-d458f850aad26480df913ddddfdeec9065f9e985.zip
ty::BrK -> ty::BoundRegionKind::K
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors')
-rw-r--r--compiler/rustc_trait_selection/src/errors/note_and_explain.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/errors/note_and_explain.rs b/compiler/rustc_trait_selection/src/errors/note_and_explain.rs
index 67463b9884c..cc0a637a78e 100644
--- a/compiler/rustc_trait_selection/src/errors/note_and_explain.rs
+++ b/compiler/rustc_trait_selection/src/errors/note_and_explain.rs
@@ -48,7 +48,7 @@ impl<'a> DescriptionCtx<'a> {
                 } else {
                     let scope = fr.scope.expect_local();
                     match fr.bound_region {
-                        ty::BoundRegionKind::BrNamed(_, name) => {
+                        ty::BoundRegionKind::Named(_, name) => {
                             let span = if let Some(param) = tcx
                                 .hir()
                                 .get_generics(scope)
@@ -64,7 +64,7 @@ impl<'a> DescriptionCtx<'a> {
                                 (Some(span), "as_defined", name.to_string())
                             }
                         }
-                        ty::BrAnon => {
+                        ty::BoundRegionKind::Anon => {
                             let span = Some(tcx.def_span(scope));
                             (span, "defined_here", String::new())
                         }