Skip to content

Commit 46d8ade

Browse files
committed
Use TypingEnv::fully_monomorphized for evaluating const without generic param path
1 parent 2c0f486 commit 46d8ade

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ pub fn try_evaluate_const<'tcx>(
637637

638638
// Since there is no generic parameter, we can just drop the environment
639639
// to prevent query cycle.
640-
let typing_env = infcx.typing_env(ty::ParamEnv::empty());
640+
let typing_env = ty::TypingEnv::fully_monomorphized();
641641

642642
(uv.args, typing_env)
643643
}

0 commit comments

Comments
 (0)