about summary refs log tree commit diff
path: root/compiler/rustc_infer
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-02-01 12:57:04 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-02-15 16:14:24 +1100
commit7eb15509ce758849108e80d8807cde1d6806d74b (patch)
tree095fd402496793fad2b3e31abd4869c33617a5f3 /compiler/rustc_infer
parent7024dc523ac712249bb78833dab80c5087e1de36 (diff)
downloadrust-7eb15509ce758849108e80d8807cde1d6806d74b.tar.gz
rust-7eb15509ce758849108e80d8807cde1d6806d74b.zip
Remove unnecessary `RegionKind::` quals.
The variant names are exported, so we can use them directly (possibly
with a `ty::` qualifier). Lots of places already do this, this commit
just increases consistency.
Diffstat (limited to 'compiler/rustc_infer')
-rw-r--r--compiler/rustc_infer/src/infer/canonical/query_response.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/canonical/query_response.rs b/compiler/rustc_infer/src/infer/canonical/query_response.rs
index 392a1780797..145ac6f4dab 100644
--- a/compiler/rustc_infer/src/infer/canonical/query_response.rs
+++ b/compiler/rustc_infer/src/infer/canonical/query_response.rs
@@ -428,7 +428,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
                 }
                 GenericArgKind::Lifetime(result_value) => {
                     // e.g., here `result_value` might be `'?1` in the example above...
-                    if let ty::RegionKind::ReLateBound(debruijn, br) = *result_value {
+                    if let ty::ReLateBound(debruijn, br) = *result_value {
                         // ... in which case we would set `canonical_vars[0]` to `Some('static)`.
 
                         // We only allow a `ty::INNERMOST` index in substitutions.