Skip to content

Commit 08e3822

Browse files
Replace missing comment
1 parent d60e204 commit 08e3822

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir/src/transform/check_consts/validation.rs

+2
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
693693
}
694694
};
695695

696+
// Resolve a trait method call to its concrete implementation, which may be in a
697+
// `const` trait impl.
696698
if self.tcx.features().const_trait_impl {
697699
let instance = Instance::resolve(tcx, param_env, callee, substs);
698700
debug!("Resolving ({:?}) -> {:?}", callee, instance);

0 commit comments

Comments
 (0)