about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
AgeCommit message (Expand)AuthorLines
2025-05-04Make attribute safety validation logic more obviousJieyou Xu-14/+47
2025-05-03Report the `unsafe_attr_outside_unsafe` lint at the closest nodeUrgau-5/+11
2025-04-19Make `#[naked]` an unsafe attributeFolkert de Vries-6/+0
2025-04-14Allow (but don't require) `#[unsafe(naked)]` so that `compiler-builtins` can ...Folkert de Vries-0/+6
2025-04-13error on unsafe attributes in pre-2024 editionsFolkert de Vries-2/+8
2025-03-26expand: Leave traces when expanding `cfg` attributesVadim Petrochenkov-6/+3
2025-03-17expand: Leave traces when expanding `cfg_attr` attributesVadim Petrochenkov-1/+1
2024-12-21Properly record metavar spans for other expansions other than TTMichael Goulet-6/+2
2024-12-15Add hir::AttributeJonathan Dönszelmann-4/+2
2024-12-15Rename `value` field to `expr` to simplify later commits' diffsOli Scherer-4/+2
2024-12-02Change `AttrArgs::Eq` into a struct variantOli Scherer-3/+5
2024-10-06Rename NestedMetaItem to MetaItemInnercodemountains-3/+3
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-09-11Also fix if in elseMichael Goulet-7/+5
2024-08-07Stabilize `unsafe_attributes`carbotaniuman-27/+13
2024-07-30Add toggle for `parse_meta_item` unsafe parsingcarbotaniuman-41/+41
2024-07-29Deny unsafe on more builtin attributescarbotaniuman-56/+92
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+2
2024-06-24coverage: Tighten validation of `#[coverage(off)]` and `#[coverage(on)]`Zalathar-3/+10
2024-06-23Add hard error and migration lint for unsafe attrscarbotaniuman-6/+58
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-5/+5
2024-06-07Rollup merge of #126052 - nnethercote:rustc_parse-more-cleanups, r=spastorinoMatthias Krüger-21/+13
2024-06-06Parse unsafe attributescarbotaniuman-0/+1
2024-06-06Inline and remove `check_builtin_attribute`.Nicholas Nethercote-19/+11
2024-06-06Reduce `pub` exposure.Nicholas Nethercote-3/+3
2024-05-21Rename buffer_lint_with_diagnostic to buffer_lintXiretza-1/+1
2024-05-21Convert uses of BuiltinLintDiag::Normal to custom variantsXiretza-21/+11
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-23/+25
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-1/+1
2024-02-23compiler: clippy::complexity fixesMatthias Krüger-1/+1
2024-02-15Add `ErrorGuaranteed` to `ast::LitKind::Err`, `token::LitKind::Err`.Nicholas Nethercote-2/+2
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-1/+1
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-3/+3
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-2/+2
2023-12-18Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.Nicholas Nethercote-3/+3
2023-12-15NFC don't convert types to identical typesMatthias Krüger-1/+1
2023-12-12Improve an error involving attribute values.Nicholas Nethercote-22/+38
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-1/+1
2023-11-19Don't sort `span_suggestions`, leave that to callerEsteban Küber-0/+1
2023-08-03Remove `MacDelimiter`.Nicholas Nethercote-5/+6
2023-07-24Optimize format usageYuri Astrakhan-7/+7
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-1/+1
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-1/+1
2023-04-27Migrate trivially translatable `rustc_parse` diagnosticsclubby789-11/+16
2023-04-17Spelling - compilerJosh Soref-1/+1
2022-11-29Avoid unnecessary `MetaItem`/`Attribute` conversions.Nicholas Nethercote-17/+26
2022-11-28Rename `ast::Lit` as `ast::MetaItemLit`.Nicholas Nethercote-1/+1
2022-11-22Split `MacArgs` in two.Nicholas Nethercote-7/+8
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-4/+6
2022-05-05Overhaul `MacArgs::Eq`.Nicholas Nethercote-7/+32