about summary refs log tree commit diff
path: root/compiler/rustc_attr_data_structures/src
AgeCommit message (Collapse)AuthorLines
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