From 680c4022ae744e30e6344882919b444f1353baba Mon Sep 17 00:00:00 2001 From: oli Date: Mon, 7 Dec 2020 12:39:10 +0000 Subject: [PATCH] Comment nit --- compiler/rustc_middle/src/ty/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index ccdec2bf89f..a2c8fdb1950 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -3016,8 +3016,8 @@ impl<'tcx> TyCtxt<'tcx> { | DefKind::AssocConst | DefKind::Ctor(..) | DefKind::AnonConst => self.mir_for_ctfe_opt_const_arg(def), - // If the caller wants `mir_for_ctfe` they should not be using `instance_mir`, so - // we'll assume const fn also wants the optimized version. + // If the caller wants `mir_for_ctfe` of a function they should not be using + // `instance_mir`, so we'll assume const fn also wants the optimized version. _ => self.optimized_mir_or_const_arg_mir(def), }, ty::InstanceDef::VtableShim(..)