Do not store attrs in FnKind.
This commit is contained in:
parent
f5dc5dcca3
commit
8e816056a5
16 changed files with 51 additions and 70 deletions
|
@ -354,7 +354,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RegionCtxt<'a, 'tcx> {
|
|||
hir_id: hir::HirId,
|
||||
) {
|
||||
assert!(
|
||||
matches!(fk, intravisit::FnKind::Closure(..)),
|
||||
matches!(fk, intravisit::FnKind::Closure),
|
||||
"visit_fn invoked for something other than a closure"
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue