rust/tests/ui/attributes
bors 8f08b3a324 Auto merge of #143845 - cjgillot:stability-query, r=jieyouxu
Split-up stability_index query

This PR aims to move deprecation and stability processing away from the monolithic `stability_index` query, and directly implement `lookup_{deprecation,stability,body_stability,const_stability}` queries.

The basic idea is to:
- move per-attribute sanity checks into `check_attr.rs`;
- move attribute compatibility checks into the `MissingStabilityAnnotations` visitor;
- progressively dismantle the `Annotator` visitor and the `stability_index` query.

The first commit contains functional change, and now warns when `#[automatically_derived]` is applied on a non-trait impl block. The other commits should not change visible behaviour.

Perf in https://github.com/rust-lang/rust/pull/143845#issuecomment-3066308630 shows small but consistent improvement, except for unused-warnings case. That case being a stress test, I'm leaning towards accepting the regression.

This PR changes `check_attr`, so has a high conflict rate on that file. This should not cause issues for review.
2025-07-18 16:27:59 +00:00
..
2025-05-03 17:22:52 +02:00
2025-05-12 16:35:09 +02:00
2025-06-08 11:25:09 +05:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-06-20 15:06:29 +02:00
2025-07-06 18:10:52 -04:00
2025-06-28 16:24:17 +05:00
2025-06-29 15:37:33 +05:00
2025-06-18 12:37:08 +02:00
2025-06-18 12:37:08 +02:00
2025-06-23 12:20:02 +02:00
2025-06-23 12:20:02 +02:00
2025-07-15 09:21:27 +02:00