Rollup merge of #136164 - celinval:chores-fnkind, r=oli-obk
Refactor FnKind variant to hold &Fn Pulling the change suggested in #128045 to reduce the impact of changing `Fn` item. r? `@oli-obk`
This commit is contained in:
commit
28393070ab
12 changed files with 93 additions and 91 deletions
|
@ -330,10 +330,12 @@ impl EarlyLintPass for UnsafeCode {
|
|||
if let FnKind::Fn(
|
||||
ctxt,
|
||||
_,
|
||||
ast::FnSig { header: ast::FnHeader { safety: ast::Safety::Unsafe(_), .. }, .. },
|
||||
_,
|
||||
_,
|
||||
body,
|
||||
ast::Fn {
|
||||
sig: ast::FnSig { header: ast::FnHeader { safety: ast::Safety::Unsafe(_), .. }, .. },
|
||||
body,
|
||||
..
|
||||
},
|
||||
) = fk
|
||||
{
|
||||
let decorator = match ctxt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue