use signature name for arg
This commit is contained in:
parent
db5a616405
commit
f8433a82b4
@ -195,12 +195,12 @@ fn parse_item_kind(
|
||||
fn_parse_mode: FnParseMode,
|
||||
case: Case,
|
||||
) -> PResult<'a, Option<ItemInfo>> {
|
||||
let def_final = def == &Defaultness::Final;
|
||||
let check_pub = def == &Defaultness::Final;
|
||||
let mut def_ = || mem::replace(def, Defaultness::Final);
|
||||
|
||||
let info = if self.eat_keyword_case(kw::Use, case) {
|
||||
self.parse_use_item()?
|
||||
} else if self.check_fn_front_matter(def_final, case) {
|
||||
} else if self.check_fn_front_matter(check_pub, case) {
|
||||
// FUNCTION ITEM
|
||||
let (ident, sig, generics, body) =
|
||||
self.parse_fn(attrs, fn_parse_mode, lo, vis, case)?;
|
||||
|
Loading…
Reference in New Issue
Block a user