1
Fork 0

Fix ICE when doc aliases were put on function params

This commit is contained in:
Ryan Levick 2021-06-15 19:01:11 +02:00
parent 6936ca8c99
commit 5f74ba50bc
3 changed files with 13 additions and 4 deletions

View file

@ -456,6 +456,8 @@ impl CheckAttrVisitor<'tcx> {
_ => None,
}
}
// we check the validity of params elsewhere
Target::Param => return false,
_ => None,
} {
return err_fn(meta.span(), &format!("isn't allowed on {}", err));