Handle 'implementation safety' headers as well
This commit is contained in:
parent
91496c2ac6
commit
1e8d9fb18c
@ -579,6 +579,8 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize
|
||||
continue;
|
||||
}
|
||||
headers.safety |= in_heading && text.trim() == "Safety";
|
||||
headers.safety |= in_heading && text.trim() == "Implementation safety";
|
||||
headers.safety |= in_heading && text.trim() == "Implementation Safety";
|
||||
headers.errors |= in_heading && text.trim() == "Errors";
|
||||
headers.panics |= in_heading && text.trim() == "Panics";
|
||||
if in_code {
|
||||
|
@ -125,3 +125,8 @@ pub mod __macro {
|
||||
pub unsafe fn f() {}
|
||||
}
|
||||
}
|
||||
|
||||
/// # Implementation safety
|
||||
pub unsafe trait DocumentedUnsafeTraitWithImplementationHeader {
|
||||
fn method();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user