Fix ICE when doc aliases were put on function params
This commit is contained in:
parent
6936ca8c99
commit
5f74ba50bc
3 changed files with 13 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue