rust/src/test
Aaron Hill af46699f81
Remove Session.used_attrs and move logic to CheckAttrVisitor
Instead of updating global state to mark attributes as used,
we now explicitly emit a warning when an attribute is used in
an unsupported position. As a side effect, we are to emit more
detailed warning messages (instead of just a generic "unused" message).

`Session.check_name` is removed, since its only purpose was to mark
the attribute as used. All of the callers are modified to use
`Attribute.has_name`

Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed
used' attribute is implemented by simply not performing any checks
in `CheckAttrVisitor` for a particular attribute.

We no longer emit unused attribute warnings for the `#[rustc_dummy]`
attribute - it's an internal attribute used for tests, so it doesn't
mark sense to treat it as 'unused'.

With this commit, a large source of global untracked state is removed.
2021-08-21 13:27:27 -05:00
..
assembly Re-Annotate the tests with needs-llvm-components 2021-06-24 23:13:08 +03:00
auxiliary
codegen Auto merge of #88128 - cuviper:needs-asm-support, r=Mark-Simulacrum 2021-08-21 12:57:00 +00:00
codegen-units
debuginfo Auto merge of #85020 - lrh2000:named-upvars, r=tmandry 2021-08-14 07:01:36 +00:00
incremental Revert "Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk"" 2021-08-19 22:28:32 -04:00
mir-opt Revert "Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk"" 2021-08-19 22:28:32 -04:00
pretty Auto merge of #83491 - jyn514:remove-pretty, r=pnkfelix 2021-07-27 03:12:40 +00:00
run-make Revert "Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk"" 2021-08-19 22:28:32 -04:00
run-make-fulldeps Auto merge of #87570 - nikic:llvm-13, r=nagisa 2021-08-21 09:25:28 +00:00
run-pass-valgrind
rustdoc Fix URL conflict for std type 2021-08-05 23:33:43 +02:00
rustdoc-gui Rollup merge of #88093 - Kobzol:rustdoc-wrap-code-in-code-tag, r=GuillaumeGomez 2021-08-19 19:30:09 +02:00
rustdoc-js fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-js-std fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-json
rustdoc-ui Move working checks into separate test files 2021-08-16 23:17:27 +02:00
rustfix
ui Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
ui-fulldeps Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
COMPILER_TESTS.md