about summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/default-annotation.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-17/+0
2021-12-10update testsEllen-1/+0
2021-10-20add fixmeEllen-1/+1
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-4/+3
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-1/+0
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-03-29Prefer 4 spacesJohnTitor-2/+2
2021-03-23Update with commentskadmin-0/+20
A bunch of nits fixed, and a new test for pretty printing the AST.