@@ -34,9 +34,9 @@ use crate::MirLint;
3434/// Severely regress performance.
3535const MAX_ALLOC_LIMIT : u64 = 1024 ;
3636
37- pub struct ConstProp ;
37+ pub struct ConstPropLint ;
3838
39- impl < ' tcx > MirLint < ' tcx > for ConstProp {
39+ impl < ' tcx > MirLint < ' tcx > for ConstPropLint {
4040 fn run_lint ( & self , tcx : TyCtxt < ' tcx > , body : & Body < ' tcx > ) {
4141 if body. tainted_by_errors . is_some ( ) {
4242 return ;
@@ -55,18 +55,18 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
5555 // Only run const prop on functions, methods, closures and associated constants
5656 if !is_fn_like && !is_assoc_const {
5757 // skip anon_const/statics/consts because they'll be evaluated by miri anyway
58- trace ! ( "ConstProp skipped for {:?}" , def_id) ;
58+ trace ! ( "ConstPropLint skipped for {:?}" , def_id) ;
5959 return ;
6060 }
6161
6262 // FIXME(welseywiser) const prop doesn't work on generators because of query cycles
6363 // computing their layout.
6464 if let DefKind :: Generator = def_kind {
65- trace ! ( "ConstProp skipped for generator {:?}" , def_id) ;
65+ trace ! ( "ConstPropLint skipped for generator {:?}" , def_id) ;
6666 return ;
6767 }
6868
69- trace ! ( "ConstProp starting for {:?}" , def_id) ;
69+ trace ! ( "ConstPropLint starting for {:?}" , def_id) ;
7070
7171 // FIXME(oli-obk, eddyb) Optimize locals (or even local paths) to hold
7272 // constants, instead of just checking for const-folding succeeding.
@@ -75,7 +75,7 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
7575 let mut linter = ConstPropagator :: new ( body, tcx) ;
7676 linter. visit_body ( body) ;
7777
78- trace ! ( "ConstProp done for {:?}" , def_id) ;
78+ trace ! ( "ConstPropLint done for {:?}" , def_id) ;
7979 }
8080}
8181
0 commit comments