1
Fork 0

Reflect the "do not call this query directly" mentality in its name

This commit is contained in:
Oliver Scherer 2020-09-19 10:57:14 +02:00
parent c5889e4dab
commit b8e6883a2f
6 changed files with 10 additions and 9 deletions

View file

@ -1484,6 +1484,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedBrokenConst {
}
hir::ItemKind::Static(_, _, body_id) => {
let def_id = cx.tcx.hir().body_owner_def_id(body_id).to_def_id();
// FIXME: Use ensure here
let _ = cx.tcx.eval_static_initializer(def_id);
}
_ => {}