diff options
| author | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2022-12-12 03:07:44 -0800 |
|---|---|---|
| committer | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2022-12-13 22:52:13 -0800 |
| commit | 9b312737c063a679c38c97ceb484a3a13a96ee75 (patch) | |
| tree | d65b231dfd76b0ac7a12bc1fea9284f61e7e9568 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 918d0ac38e8c3bcf4fb5ee2241fb14979c73c312 (diff) | |
| download | rust-9b312737c063a679c38c97ceb484a3a13a96ee75.tar.gz rust-9b312737c063a679c38c97ceb484a3a13a96ee75.zip | |
Don't perform invalid checks in `codegen_attrs`
Some attributes are only valid on function items. When checking these attributes, codegen_attrs previously sometimes called `fn_sig` on the item they were attached to without first ensuring that the item was a function. This led to an ICE (#105594), since `fn_sig` can only be called on functions. After this change, we skip calling `fn_sig` if the item the attribute is attached to must be a function but invalidly isn't, because `check_attr` will reject such cases without codegen_attrs's intervention.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
