@@ -121,7 +121,7 @@ impl<'tcx> InstSimplifyContext<'tcx, '_> {
121121 if a. const_ . ty ( ) . is_bool ( ) { a. const_ . try_to_bool ( ) } else { None }
122122 }
123123
124- /// Transform " &(*a)" ==> "a" .
124+ /// Transform ` &(*a)` ==> `a` .
125125 fn simplify_ref_deref ( & self , source_info : & SourceInfo , rvalue : & mut Rvalue < ' tcx > ) {
126126 if let Rvalue :: Ref ( _, _, place) = rvalue {
127127 if let Some ( ( base, ProjectionElem :: Deref ) ) = place. as_ref ( ) . last_projection ( ) {
@@ -141,7 +141,7 @@ impl<'tcx> InstSimplifyContext<'tcx, '_> {
141141 }
142142 }
143143
144- /// Transform " Len([_; N])" ==> "N" .
144+ /// Transform ` Len([_; N])` ==> `N` .
145145 fn simplify_len ( & self , source_info : & SourceInfo , rvalue : & mut Rvalue < ' tcx > ) {
146146 if let Rvalue :: Len ( ref place) = * rvalue {
147147 let place_ty = place. ty ( self . local_decls , self . tcx ) . ty ;
@@ -157,7 +157,7 @@ impl<'tcx> InstSimplifyContext<'tcx, '_> {
157157 }
158158 }
159159
160- /// Transform " Aggregate(RawPtr, \ [p, ()\])" ==> " Cast(PtrToPtr, p)" .
160+ /// Transform ` Aggregate(RawPtr, [p, ()])` ==> ` Cast(PtrToPtr, p)` .
161161 fn simplify_ptr_aggregate ( & self , source_info : & SourceInfo , rvalue : & mut Rvalue < ' tcx > ) {
162162 if let Rvalue :: Aggregate ( box AggregateKind :: RawPtr ( pointee_ty, mutability) , fields) = rvalue
163163 {
0 commit comments