diff options
| author | Michael Goulet <michael@errs.io> | 2023-03-30 00:52:58 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-30 00:53:17 +0000 |
| commit | 321a5dba9ee42e2950bbff14c7dfb38e07d21bc4 (patch) | |
| tree | 53ad5482dc16a0b568636d31f12942824ba1ed19 /compiler | |
| parent | f5c78c4d3a9ab8d7b8726540715cc2abfbea0eba (diff) | |
| download | rust-321a5dba9ee42e2950bbff14c7dfb38e07d21bc4.tar.gz rust-321a5dba9ee42e2950bbff14c7dfb38e07d21bc4.zip | |
Check pointee metadata correctly in ui test
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/project_goals.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/project_goals.rs b/compiler/rustc_trait_selection/src/solve/project_goals.rs index c7ff3a3b0ed..ca9f6055ee0 100644 --- a/compiler/rustc_trait_selection/src/solve/project_goals.rs +++ b/compiler/rustc_trait_selection/src/solve/project_goals.rs @@ -346,10 +346,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> { LangItem::Sized, [ty::GenericArg::from(goal.predicate.self_ty())], )); - ecx.add_goal(goal.with(tcx, sized_predicate)); - ecx.eq(goal.param_env, goal.predicate.term, tcx.types.unit.into())?; - return ecx.evaluate_added_goals_and_make_canonical_response(Certainty::Yes); + tcx.types.unit } ty::Adt(def, substs) if def.is_struct() => { |
