Rustup rust-lang/rust#66188
This commit is contained in:
parent
4192dbedcb
commit
d4758420e6
9 changed files with 22 additions and 22 deletions
|
@ -126,8 +126,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DocMarkdown {
|
|||
}
|
||||
// no safety header
|
||||
match item.kind {
|
||||
hir::ItemKind::Fn(_, ref header, ..) => {
|
||||
if cx.access_levels.is_exported(item.hir_id) && header.unsafety == hir::Unsafety::Unsafe {
|
||||
hir::ItemKind::Fn(ref sig, ..) => {
|
||||
if cx.access_levels.is_exported(item.hir_id) && sig.header.unsafety == hir::Unsafety::Unsafe {
|
||||
span_lint(
|
||||
cx,
|
||||
MISSING_SAFETY_DOC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue