Skip to content

Commit

Permalink
Replace missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Sep 22, 2020
1 parent d60e204 commit 08e3822
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_mir/src/transform/check_consts/validation.rs
Expand Up @@ -693,6 +693,8 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
}
};

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

0 comments on commit 08e3822

Please sign in to comment.