mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-17 18:23:16 +00:00
Run fmt
This commit is contained in:
parent
01bba2c532
commit
fd87cdb357
@ -294,7 +294,8 @@ impl<'tcx> LateLintPass<'tcx> for Functions {
|
|||||||
let body = cx.tcx.hir().body(eid);
|
let body = cx.tcx.hir().body(eid);
|
||||||
Self::check_raw_ptr(cx, sig.header.unsafety, &sig.decl, body, item.hir_id);
|
Self::check_raw_ptr(cx, sig.header.unsafety, &sig.decl, body, item.hir_id);
|
||||||
|
|
||||||
if attr.is_none() && cx.access_levels.is_exported(item.hir_id) && !is_proc_macro(cx.sess(), &item.attrs) {
|
if attr.is_none() && cx.access_levels.is_exported(item.hir_id) && !is_proc_macro(cx.sess(), &item.attrs)
|
||||||
|
{
|
||||||
check_must_use_candidate(
|
check_must_use_candidate(
|
||||||
cx,
|
cx,
|
||||||
&sig.decl,
|
&sig.decl,
|
||||||
|
Loading…
Reference in New Issue
Block a user