Reflect the "do not call this query directly" mentality in its name
This commit is contained in:
parent
c5889e4dab
commit
b8e6883a2f
6 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue