Skip to content

Commit

Permalink
Unrolled build for rust-lang#128402
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#128402 - oli-obk:checked_attrs, r=compiler-errors

Attribute checking simplifications

remove an unused boolean and then merge two big matches into one

I was reviewing some attributes and realized we don't really check this list against the list of builtin attributes, so we "may" totally be missing some attributes that we should be checking (like the `coroutine` attribute, which you can just apply to random stuff)

```rust
#![feature(coroutines)]
#[coroutine]
struct Foo;
```

just compiles for example. Unless we check that the fallthrough match arm is never reached for builtin attributes, we're just going to keep forgetting to add them here, too. I can do that without the changes in this PR, but it seemed like a nice cleanup
  • Loading branch information
rust-timer committed Jul 31, 2024
2 parents 0b5eb7b + 67a08b5 commit 2af7f33
Showing 1 changed file with 179 additions and 367 deletions.
Loading

0 comments on commit 2af7f33

Please sign in to comment.