diff options
| author | bors <bors@rust-lang.org> | 2021-06-16 10:01:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-16 10:01:20 +0000 |
| commit | 8daad743c4bb941536860b4df20111cb71b8c777 (patch) | |
| tree | 3b540e58196071ac858ba70e5a4708ba7693aee0 /compiler | |
| parent | 2336406b38db20d1bad30d32914e73af1dd62742 (diff) | |
| parent | 5f74ba50bc8b95698343476d22d8037b832324b4 (diff) | |
| download | rust-8daad743c4bb941536860b4df20111cb71b8c777.tar.gz rust-8daad743c4bb941536860b4df20111cb71b8c777.zip | |
Auto merge of #86332 - rylev:fix-ice-docalias, r=GuillaumeGomez
Fix ICE when doc aliases were put on function params Fixes #86239 r? `@GuillaumeGomez`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index b18ef302962..eca84c791fb 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -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)); |
