about summary refs log tree commit diff
path: root/compiler/rustc_attr_data_structures/src
AgeCommit message (Collapse)AuthorLines
2025-03-09Rollup merge of #138160 - jdonszelmann:move-find-attr2, r=oli-obkMatthias Krüger-0/+44
depend more on attr_data_structures and move find_attr! there r? ``@oli-obk`` This should be an easy one. It just moves some imports around. This is necessary for other changes that I'm working on not to have import cycles. However, it's an easy one to just merge on its own.
2025-03-08Remove `#![warn(unreachable_pub)]` from all `compiler/` crates.Nicholas Nethercote-1/+0
(Except for `rustc_codegen_cranelift`.) It's no longer necessary now that `unreachable_pub` is in the workspace lints.
2025-03-07depend more on attr_data_structures and move find_attr! thereJana Dönszelmann-0/+44
2025-02-26Spruce up `AttributeKind` docsAlona Enraght-Moony-5/+8
- Remove dead link to `rustc_attr` crate. - Add link to `rustc_attr_parsing` crate. - Split up first paragraph so it looks better at crate-level summary
2025-02-24pretty print hir attributesJana Dönszelmann-19/+154
2025-02-24Introduce new-style attribute parsers for several attributesJana Dönszelmann-3/+41
note: compiler compiles but librustdoc and clippy don't
2025-02-24Introduce new parsing infrastructure and types for parsed attributesJana Dönszelmann-5/+34
fixup docs in parser
2025-02-02rustc_allowed_through_unstable_modules: require deprecation messageRalf Jung-12/+3
2025-01-24Rename `OptimizeAttr::None` to `Default`clubby789-2/+4
2025-01-23Disable non-required MIR opts with `optimize(none)`clubby789-0/+6
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2025-01-23Implement `optimize(none)` attributeclubby789-0/+4
2025-01-15allowed_through_unstable_modules: support showing a deprecation message when ↵Ralf Jung-3/+12
the unstable module name is used
2025-01-10mir_transform: implement forced inliningDavid Wood-0/+16
Adds `#[rustc_force_inline]` which is similar to always inlining but reports an error if the inlining was not possible, and which always attempts to inline annotated items, regardless of optimisation levels. It can only be applied to free functions to guarantee that the MIR inliner will be able to resolve calls.
2025-01-06avoid replacing the definition of CURRENT_RUSTC_VERSIONPietro Albini-1/+6
Before this commit, replace-version-placeholder hardcoded the path defining CURRENT_RUSTC_VERSION (to avoid replacing it). After a refactor moved the file defining it without changing the hardcoded path, the tool started replacing the constant itself with the version number. To avoid this from happening in the future, this changes the definition of the constant to avoid the tool from ever matching it.
2024-12-16rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structuresJonathan Dönszelmann-0/+343