about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2023-01-24 23:32:47 +0000
committerBoxy <supbscripter@gmail.com>2023-01-24 23:32:47 +0000
commita418e39b75a8b3628cfea0b233de2f8985331f6d (patch)
tree454c807b95a81fd62cbbba73690b670d1e5cebe4
parent2f924b0e3cdebc341c88056af8fa0bacaed5acde (diff)
downloadrust-a418e39b75a8b3628cfea0b233de2f8985331f6d.tar.gz
rust-a418e39b75a8b3628cfea0b233de2f8985331f6d.zip
no without_constness
-rw-r--r--compiler/rustc_trait_selection/src/solve/project_goals.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/project_goals.rs b/compiler/rustc_trait_selection/src/solve/project_goals.rs
index d33dfba6247..e5072d8e2d1 100644
--- a/compiler/rustc_trait_selection/src/solve/project_goals.rs
+++ b/compiler/rustc_trait_selection/src/solve/project_goals.rs
@@ -432,8 +432,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
                     let sized_predicate = ty::Binder::dummy(tcx.at(DUMMY_SP).mk_trait_ref(
                         LangItem::Sized,
                         [ty::GenericArg::from(goal.predicate.self_ty())],
-                    ))
-                    .without_const();
+                    ));
 
                     let mut nested_goals = ecx.infcx.eq(
                         goal.param_env,