Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/next_solver/infer/outlives/obligations.rs')
-rw-r--r--crates/hir-ty/src/next_solver/infer/outlives/obligations.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/hir-ty/src/next_solver/infer/outlives/obligations.rs b/crates/hir-ty/src/next_solver/infer/outlives/obligations.rs
index befb2001b1..617dbda133 100644
--- a/crates/hir-ty/src/next_solver/infer/outlives/obligations.rs
+++ b/crates/hir-ty/src/next_solver/infer/outlives/obligations.rs
@@ -3,7 +3,7 @@ use rustc_type_ir::{OutlivesPredicate, TypeVisitableExt};
use tracing::{debug, instrument};
use crate::next_solver::{
- ArgOutlivesPredicate, GenericArg, Region, RegionOutlivesPredicate, Ty,
+ ArgOutlivesPredicate, GenericArgKind, Region, RegionOutlivesPredicate, Ty,
infer::{InferCtxt, TypeOutlivesConstraint, snapshot::undo_log::UndoLog},
};
@@ -12,14 +12,14 @@ impl<'db> InferCtxt<'db> {
&self,
OutlivesPredicate(arg, r2): ArgOutlivesPredicate<'db>,
) {
- match arg {
- GenericArg::Lifetime(r1) => {
+ match arg.kind() {
+ GenericArgKind::Lifetime(r1) => {
self.register_region_outlives_constraint(OutlivesPredicate(r1, r2));
}
- GenericArg::Ty(ty1) => {
+ GenericArgKind::Type(ty1) => {
self.register_type_outlives_constraint(ty1, r2);
}
- GenericArg::Const(_) => unreachable!(),
+ GenericArgKind::Const(_) => unreachable!(),
}
}