diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-19 11:37:56 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-28 10:45:51 -0400 |
| commit | 50a5da16b815d7ff6f145cb86ea5c146b1c95329 (patch) | |
| tree | f2fe1f56996eb05f40ebf9cb5b3e8aa95e82a1ec /compiler/rustc_trait_selection/src/solve/mod.rs | |
| parent | f989d2f62500df1696eb797d8800a705293b43b9 (diff) | |
| download | rust-50a5da16b815d7ff6f145cb86ea5c146b1c95329.tar.gz rust-50a5da16b815d7ff6f145cb86ea5c146b1c95329.zip | |
EvalCtxt::tcx() -> EvalCtxt::interner()
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve/mod.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/mod.rs b/compiler/rustc_trait_selection/src/solve/mod.rs index 60722d3618f..a432090f78c 100644 --- a/compiler/rustc_trait_selection/src/solve/mod.rs +++ b/compiler/rustc_trait_selection/src/solve/mod.rs @@ -133,7 +133,7 @@ impl<'a, 'tcx> EvalCtxt<'a, InferCtxt<'tcx>> { } fn compute_object_safe_goal(&mut self, trait_def_id: DefId) -> QueryResult<'tcx> { - if self.tcx().check_is_object_safe(trait_def_id) { + if self.interner().check_is_object_safe(trait_def_id) { self.evaluate_added_goals_and_make_canonical_response(Certainty::Yes) } else { Err(NoSolution) @@ -274,7 +274,7 @@ impl<'tcx> EvalCtxt<'_, InferCtxt<'tcx>> { if let ty::Alias(..) = ty.kind() { let normalized_ty = self.next_ty_infer(); let alias_relate_goal = Goal::new( - self.tcx(), + self.interner(), param_env, ty::PredicateKind::AliasRelate( ty.into(), |
