Add #[rustc_never_returns_null_ptr]
And look for it in the useless_ptr_null_checks lint
This commit is contained in:
parent
e173a8e663
commit
8cfa4fe6b2
4 changed files with 9 additions and 1 deletions
|
@ -139,6 +139,9 @@ impl CheckAttrVisitor<'_> {
|
|||
self.check_rustc_std_internal_symbol(&attr, span, target)
|
||||
}
|
||||
sym::naked => self.check_naked(hir_id, attr, span, target),
|
||||
sym::rustc_never_returns_null_ptr => {
|
||||
self.check_applied_to_fn_or_method(hir_id, attr, span, target)
|
||||
}
|
||||
sym::rustc_legacy_const_generics => {
|
||||
self.check_rustc_legacy_const_generics(hir_id, &attr, span, target, item)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue