about summary refs log tree commit diff
path: root/compiler/rustc_attr/src
AgeCommit message (Collapse)AuthorLines
2020-11-20Never inline naked functionsTomasz Miąsko-1/+1
The `#[naked]` attribute disabled prologue / epilogue emission for the function and it is responsibility of a developer to provide them. The compiler is no position to inline such functions correctly. Disable inlining of naked functions at LLVM and MIR level.
2020-11-02Improve deprecation attribute diagnostic messages.Mara Bos-1/+2
(From the PR feedback.) Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
2020-11-01Use the right span for errors about #[deprecated] attributes.Mara Bos-11/+9
2020-10-30Fix even more clippy warningsJoshua Nelson-30/+28
2020-10-21switch allow_internal_unstable const fns to rustc_allow_const_fn_unstableFlorian Warzecha-4/+21
2020-10-11Move `PartialOrd` impl out of rustcJoshua Nelson-14/+0
Rustdoc's ordering requirements are probably not relevant to the rest of the compiler.
2020-10-11Switch rustdoc from `clean::Stability` to `rustc_attr::Stability`Joshua Nelson-1/+15
This gives greater type safety and is less work to maintain on the rustdoc end.
2020-10-08Implement the instruction_set attributexd009642-0/+6
2020-09-27Remove `rustc_allow_const_fn_ptr`Dylan MacKenzie-24/+7
This was a hack to work around the lack of an escape hatch for the "min `const fn`" checks in const-stable functions. Now that we have co-opted `allow_internal_unstable` for this purpose, we no longer need the bespoke attribute.
2020-09-25Allow multiple allow_internal_unstable attributesDániel Buga-7/+14
Co-authored-by: varkor <github@varkor.com>
2020-09-23Don't use an if guard to check equality with a constantLingMan-1/+1
Match on it directly instead
2020-09-18use matches!() macro for simple if let conditionsMatthias Krüger-2/+2
2020-08-30mv compiler to compiler/mark-0/+1062