rust/compiler/rustc_passes/src
Matthias Krüger e2d8f1ac21
Rollup merge of #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
2024-07-31 15:36:32 +02:00
..
liveness Reformat use declarations. 2024-07-29 08:26:52 +10:00
abi_test.rs Instance::resolve -> Instance::try_resolve, and other nits 2024-07-02 17:28:03 -04:00
check_attr.rs Rollup merge of #128402 - oli-obk:checked_attrs, r=compiler-errors 2024-07-31 15:36:32 +02:00
check_const.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
dead.rs Rollup merge of #128104 - mu001999-contrib:fix/128053, r=petrochenkov 2024-07-29 21:26:12 +02:00
debugger_visualizer.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
diagnostic_items.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
entry.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir_id_validator.rs Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
hir_stats.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lang_items.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
layout_test.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib_features.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
liveness.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
loops.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
naked_functions.rs Rollup merge of #127853 - folkertdev:naked-function-error-messages, r=bjorn3 2024-07-28 08:57:16 +02:00
reachable.rs Miri function identity hack: account for possible inlining 2024-07-02 21:05:30 +02:00
stability.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
upvars.rs Make body_owned_by return the body directly. 2024-05-29 10:04:08 +00:00
weak_lang_items.rs Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk" 2024-06-06 10:06:28 +00:00