about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-04 10:42:19 +0100
committerGitHub <noreply@github.com>2021-12-04 10:42:19 +0100
commit9f8e822364e23b500a20fbebc439817c6c59d355 (patch)
tree8c3f1bca75fe2892839c8dd52fa99b39048acae5 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
parentc223a1c10909d7b93fb900fe35fe4bcdc8220246 (diff)
parent3827b6451c8cfbab9ec1f21bb385eabfede74022 (diff)
downloadrust-9f8e822364e23b500a20fbebc439817c6c59d355.tar.gz
rust-9f8e822364e23b500a20fbebc439817c6c59d355.zip
Rollup merge of #89701 - tom7980:issue-89566-fix, r=petrochenkov
Updated error message for accidental uses of derive attribute as a crate attribute

This partially fixes the original issue #89566 by adding derive to the list of invalid crate attributes and then providing an updated error message however I'm not sure how to prevent the resolution error message from emitting without causing the compiler to just abort when it finds an invalid crate attribute (which I'd prefer not to do so we can find and emit other errors).

`@petrochenkov` I have been told you may have some insight on why it's emitting the resolution error though honestly I'm not sure if we need to worry about fixing it as long as we can provide the invalid crate attribute error also (which happens first anyway)
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions