summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>2022-12-12 03:07:44 -0800
committerinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>2022-12-13 22:52:13 -0800
commit9b312737c063a679c38c97ceb484a3a13a96ee75 (patch)
treed65b231dfd76b0ac7a12bc1fea9284f61e7e9568 /tests/rustdoc-js-std/parser-errors.js
parent918d0ac38e8c3bcf4fb5ee2241fb14979c73c312 (diff)
downloadrust-9b312737c063a679c38c97ceb484a3a13a96ee75.tar.gz
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