]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/misc.rs
Rollup merge of #105174 - chenyukang:yukang/fix-105028-unused, r=eholk
[rust.git] / compiler / rustc_mir_build / src / build / misc.rs
index 86f466ff7672e8def0b7787494bdda78372c10e3..baeb2718cae46414636eeafabd1bd414b639b5bd 100644 (file)
@@ -34,8 +34,8 @@ pub(crate) fn literal_operand(
         Operand::Constant(constant)
     }
 
-    // Returns a zero literal operand for the appropriate type, works for
-    // bool, char and integers.
+    /// Returns a zero literal operand for the appropriate type, works for
+    /// bool, char and integers.
     pub(crate) fn zero_literal(&mut self, span: Span, ty: Ty<'tcx>) -> Operand<'tcx> {
         let literal = ConstantKind::from_bits(self.tcx, 0, ty::ParamEnv::empty().and(ty));