Consider #[allow(dead_code)]
before lang items
This commit is contained in:
parent
d4585408dc
commit
48af3a96e6
1 changed files with 2 additions and 2 deletions
|
@ -482,9 +482,9 @@ fn has_allow_dead_code_or_lang_attr(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool
|
|||
}
|
||||
}
|
||||
|
||||
has_lang_attr(tcx, def_id)
|
||||
has_allow_dead_code(tcx, def_id)
|
||||
|| has_used_like_attr(tcx, def_id)
|
||||
|| has_allow_dead_code(tcx, def_id)
|
||||
|| has_lang_attr(tcx, def_id)
|
||||
}
|
||||
|
||||
// These check_* functions seeds items that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue