From 08e3822d9a5ce2f403c67c2d0e374f601fbf1aaf Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Fri, 18 Sep 2020 09:19:36 -0700 Subject: [PATCH] Replace missing comment --- compiler/rustc_mir/src/transform/check_consts/validation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_mir/src/transform/check_consts/validation.rs b/compiler/rustc_mir/src/transform/check_consts/validation.rs index 55f49ab2be16b..7ea3c1d5a6f85 100644 --- a/compiler/rustc_mir/src/transform/check_consts/validation.rs +++ b/compiler/rustc_mir/src/transform/check_consts/validation.rs @@ -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);