1
Fork 0
This commit is contained in:
HMPerson1 2019-11-08 15:12:08 -05:00
parent 4192dbedcb
commit d4758420e6
No known key found for this signature in database
GPG key ID: 1FB477DDD27821CE
9 changed files with 22 additions and 22 deletions

View file

@ -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,