]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #73461 - calebzulawski:validate-attribute-placement, r=matthewjasper
authorbors <bors@rust-lang.org>
Sat, 12 Sep 2020 22:04:37 +0000 (22:04 +0000)
committerbors <bors@rust-lang.org>
Sat, 12 Sep 2020 22:04:37 +0000 (22:04 +0000)
commitdbb73f8f79ab176a897d5a95e696adb71b957cbe
tree4c73e2b5da6f978072701bb4563c21ba67ad17bd
parent989190874fe2a0e9877ce4f02a6c60641e3d42a3
parent82cb37911124a608986961f819b60291965ead3f
Auto merge of #73461 - calebzulawski:validate-attribute-placement, r=matthewjasper

Validate built-in attribute placement

Closes #54584, closes #47725, closes #54044.

I've changed silently ignoring some incorrectly placed attributes to errors.  I'm not sure what the policy is since this can theoretically break code (should they be warnings instead? does it warrant a crater run?).
compiler/rustc_typeck/src/collect.rs