@@ -34,9 +34,9 @@ use crate::MirLint;
34
34
/// Severely regress performance.
35
35
const MAX_ALLOC_LIMIT : u64 = 1024 ;
36
36
37
- pub struct ConstProp ;
37
+ pub struct ConstPropLint ;
38
38
39
- impl < ' tcx > MirLint < ' tcx > for ConstProp {
39
+ impl < ' tcx > MirLint < ' tcx > for ConstPropLint {
40
40
fn run_lint ( & self , tcx : TyCtxt < ' tcx > , body : & Body < ' tcx > ) {
41
41
if body. tainted_by_errors . is_some ( ) {
42
42
return ;
@@ -55,18 +55,18 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
55
55
// Only run const prop on functions, methods, closures and associated constants
56
56
if !is_fn_like && !is_assoc_const {
57
57
// 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) ;
59
59
return ;
60
60
}
61
61
62
62
// FIXME(welseywiser) const prop doesn't work on generators because of query cycles
63
63
// computing their layout.
64
64
if let DefKind :: Generator = def_kind {
65
- trace ! ( "ConstProp skipped for generator {:?}" , def_id) ;
65
+ trace ! ( "ConstPropLint skipped for generator {:?}" , def_id) ;
66
66
return ;
67
67
}
68
68
69
- trace ! ( "ConstProp starting for {:?}" , def_id) ;
69
+ trace ! ( "ConstPropLint starting for {:?}" , def_id) ;
70
70
71
71
// FIXME(oli-obk, eddyb) Optimize locals (or even local paths) to hold
72
72
// constants, instead of just checking for const-folding succeeding.
@@ -75,7 +75,7 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
75
75
let mut linter = ConstPropagator :: new ( body, tcx) ;
76
76
linter. visit_body ( body) ;
77
77
78
- trace ! ( "ConstProp done for {:?}" , def_id) ;
78
+ trace ! ( "ConstPropLint done for {:?}" , def_id) ;
79
79
}
80
80
}
81
81
0 commit comments