]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #92701 - ehuss:even-more-attr-validation, r=matthewjasper
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 18 Jan 2022 03:41:59 +0000 (04:41 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Jan 2022 03:41:59 +0000 (04:41 +0100)
commit804072fdfc4db19b4f3deac52fe8318a52ce19b5
treefb466381c46f3ad7685d07f5772b6c4d83d2bd85
parentcb5ecff8b2c4cd083cb1429d4e14e083812dd0a7
parentb59e743666adba7ad0eb1a8eaea5c5ffb7086e01
Rollup merge of #92701 - ehuss:even-more-attr-validation, r=matthewjasper

Add some more attribute validation

This adds some more validation for the position of attributes:

* `link` is only valid on an `extern` block
* `windows_subsystem` and `no_builtins` are only valid at the crate level
compiler/rustc_feature/src/builtin_attrs.rs
compiler/rustc_passes/src/check_attr.rs