summary refs log tree commit diff
path: root/compiler/rustc_index_macros/src
AgeCommit message (Collapse)AuthorLines
2024-01-19Restrict access to the private field of newtype indexesOli Scherer-5/+5
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-14Rollup merge of #119960 - cjgillot:inline-dg, r=WaffleLapkinGuillaume Gomez-0/+1
Inline 2 functions that appear in dep-graph profiles. Those functions are small enough not to deserve a dedicated symbol.
2024-01-14`allow_internal_unstable(min_specialization)` on `newtype_index`clubby789-0/+3
2024-01-14Inline 2 functions that appear in dep-graph profiles.Camille GILLOT-0/+1
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-22Replace `no_ord_impl` with `orderable`.Nicholas Nethercote-3/+3
Similar to the previous commit, this replaces `newtype_index`'s opt-out `no_ord_impl` attribute with the opt-in `orderable` attribute.
2023-11-22Replace `custom_encodable` with `encodable`.Nicholas Nethercote-3/+3
By default, `newtype_index!` types get a default `Encodable`/`Decodable` impl. You can opt out of this with `custom_encodable`. Opting out is the opposite to how Rust normally works with autogenerated (derived) impls. This commit inverts the behaviour, replacing `custom_encodable` with `encodable` which opts into the default `Encodable`/`Decodable` impl. Only 23 of the 59 `newtype_index!` occurrences need `encodable`. Even better, there were eight crates with a dependency on `rustc_serialize` just from unused default `Encodable`/`Decodable` impls. This commit removes that dependency from those eight crates.
2023-11-18Begin nightly-ifying rustc_type_irMichael Goulet-0/+354