about summary refs log tree commit diff
path: root/compiler/rustc_index_macros/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2024-06-30Remove usage of specialization from newtype_index!bjorn3-4/+1
2024-06-12Use `tidy` to sort crate attributes for all compiler crates.Nicholas Nethercote-1/+3
We already do this for a number of crates, e.g. `rustc_middle`, `rustc_span`, `rustc_metadata`, `rustc_span`, `rustc_errors`. For the ones we don't, in many cases the attributes are a mess. - There is no consistency about order of attribute kinds (e.g. `allow`/`deny`/`feature`). - Within attribute kind groups (e.g. the `feature` attributes), sometimes the order is alphabetical, and sometimes there is no particular order. - Sometimes the attributes of a particular kind aren't even grouped all together, e.g. there might be a `feature`, then an `allow`, then another `feature`. This commit extends the existing sorting to all compiler crates, increasing consistency. If any new attribute line is added there is now only one place it can go -- no need for arbitrary decisions. Exceptions: - `rustc_log`, `rustc_next_trait_solver` and `rustc_type_ir_macros`, because they have no crate attributes. - `rustc_codegen_gcc`, because it's quasi-external to rustc (e.g. it's ignored in `rustfmt.toml`).
2024-03-19Remove `SpecOptionPartialEq`clubby789-7/+1
2024-02-08Step all bootstrap cfgs forwardMark Rousskov-7/+7
This also takes care of other bootstrap-related changes.
2024-01-15Rollup merge of #119963 - clubby789:spec-allow-internal-unstable, ↵Matthias Krüger-0/+3
r=compiler-errors Fix `allow_internal_unstable` for `(min_)specialization` Fixes #119950 Blocked on #119949 (comment doesn't make sense until that merges) I'd like to follow this up and look for more instances of not properly checking spans for features but I wanted to fix the motivating issue.
2024-01-14`allow_internal_unstable(min_specialization)` on `newtype_index`clubby789-0/+3
2024-01-14Add note on SpecOptionPartialEq to `newtype_index`clubby789-0/+3
2023-11-27Put backticks around some attributes in doc comments.Nicholas Nethercote-6/+6
Without backticks they cause some "unresolved link to `foo`" warnings.
2023-11-22Document `newtype_index` attributes.Nicholas Nethercote-2/+13
2023-11-18Begin nightly-ifying rustc_type_irMichael Goulet-0/+30