765 Commits

Author SHA1 Message Date
Jonathan Brouwer 97dd613234 Rollup merge of #155696 - scrabsha:push-kxqstpltlwzn, r=JonathanBrouwer
Add a higher-level API for parsing attributes
2026-04-25 23:07:52 +02:00
Folkert de Vries a4f5c6e971 error on invalid macho section specifier 2026-04-25 20:06:30 +02:00
mejrs c2916be8d7 Permit {This} in diagnostic attribute format literals 2026-04-24 19:59:32 +02:00
Sasha Pourcelot 067ef3df9c Add documentation for higher-level attribute parsing API 2026-04-24 15:33:15 +00:00
Sasha Pourcelot 9aa431c046 Add a simpler, harder to misuse, attribute parsing API 2026-04-24 15:33:15 +00:00
Guillaume Gomez 7a07b79573 Remove AttributeLintKind::NonMetaItemDiagnosticAttribute variant 2026-04-23 23:08:40 +02:00
Guillaume Gomez 87b0ce595c Remove AttributeLintKind::MissingOptionsForDiagnosticAttribute variant 2026-04-23 23:00:38 +02:00
Guillaume Gomez b716ebc7d1 Remove AttributeLintKind::IgnoredDiagnosticOption variant 2026-04-23 14:38:34 +02:00
Guillaume Gomez f9cb684215 Remove AttributeLintKind::DiagnosticWrappedParserError variant 2026-04-23 14:38:34 +02:00
Guillaume Gomez eb8be4f991 Remove AttributeLintKind::MalformedDiagnosticFormat variant 2026-04-23 14:38:34 +02:00
Guillaume Gomez 9bf2522cf0 Remove AttributeLintKind::MalFormedDiagnosticAttribute variant 2026-04-23 14:38:33 +02:00
Guillaume Gomez ad11f2efec Remove AttributeLintKind::ExpectedNameValue variant 2026-04-23 14:33:25 +02:00
Guillaume Gomez af3652c1dc Remove AttributeLintKind::ExpectedNoArgs variant 2026-04-23 14:33:25 +02:00
Guillaume Gomez 359910e21e Remove AttributeLintKind::MalformedDoc variant 2026-04-23 14:33:25 +02:00
yukang 8d75f0cbfc add on_unmatch_args 2026-04-22 19:28:44 +08:00
Guillaume Gomez 940d0f8245 Remove AttributeLintKind::UnknownCrateTypesSuggestion variant 2026-04-21 19:28:53 +02:00
Guillaume Gomez 6b782884e7 Remove AttributeLintKind::DoNotRecommendDoesNotExpectArgs variant 2026-04-21 19:28:46 +02:00
Guillaume Gomez a9f16fa646 Remove AttributeLintKind::AttrCrateLevelOnly variant 2026-04-21 19:28:34 +02:00
Guillaume Gomez 33b896a067 Remove AttributeLintKind::DocTestLiteral variant 2026-04-21 19:28:27 +02:00
Guillaume Gomez b1cc9a60d8 Remove AttributeLintKind::DocTestUnknown variant 2026-04-21 19:28:16 +02:00
Guillaume Gomez 2ccad45f29 Remove AttributeLintKind::DocTestTakesList variant 2026-04-21 19:27:21 +02:00
mejrs 3990dda860 say "implementation(s) in "not on trait impl" lints 2026-04-21 11:30:14 +02:00
mejrs 80fb0aa44e Move diagnostic::do_not_recommend target checking 2026-04-21 11:30:00 +02:00
mejrs c62be6e992 Move diagnostic::on_unknown target check 2026-04-21 11:30:00 +02:00
mejrs 59503ecb5e Move diagnostic::on_unimplemented target check 2026-04-21 11:30:00 +02:00
mejrs 26d2c30682 Move diagnostic::on_move target check 2026-04-21 11:29:59 +02:00
mejrs 5ba06cccd0 Always refer to non-const trait impls 2026-04-21 11:29:58 +02:00
mejrs 39f517fd18 Move diagnostic::on_const target check 2026-04-21 11:29:41 +02:00
Guillaume Gomez ea690c3d7b Remove AttributeLintKind::DocAutoCfgWrongLiteral variant 2026-04-20 16:59:14 +02:00
Guillaume Gomez 1aee0e07b4 Remove AttributeLintKind::DocUnknownAny variant 2026-04-20 16:54:15 +02:00
Guillaume Gomez 0ad35a24fd Remove AttributeLintKind::DocUnknownPlugins variant 2026-04-20 16:49:55 +02:00
Guillaume Gomez 7007737f11 Remove AttributeLintKind::DocUnknownPasses variant 2026-04-20 16:46:06 +02:00
Guillaume Gomez 1e57ed26db Remove AttributeLintKind::DocUnknownSpotlight variant 2026-04-20 16:46:06 +02:00
Guillaume Gomez 6d23cf97da Remove AttributeLintKind::DocUnknownInclude variant 2026-04-20 02:23:56 +02:00
Guillaume Gomez dacc42fb1b Remove AttributeLintKind::DocAutoCfgHideShowExpectsList variant 2026-04-20 02:08:18 +02:00
Guillaume Gomez d7d9cf9153 Remove AttributeLintKind::DocAutoCfgHideShowUnexpectedItem variant 2026-04-20 01:59:03 +02:00
Guillaume Gomez ace320fba3 Remove AttributeLintKind::AmbiguousDeriveHelpers variant 2026-04-20 00:50:55 +02:00
Jonathan Brouwer 5503f576bf Rollup merge of #155504 - GuillaumeGomez:rm-attributelintkind, r=JonathanBrouwer
Remove `AttributeLintKind` variants - part 2

Follow-up of https://github.com/rust-lang/rust/pull/154432.
Part of https://github.com/rust-lang/rust/issues/153099.

r? @JonathanBrouwer
2026-04-19 16:04:34 +02:00
Guillaume Gomez f658d2613c Remove AttributeLintKind::DocAutoCfgExpectsHideOrShow variant 2026-04-19 02:31:23 +02:00
Guillaume Gomez 0c93197a28 Remove AttributeLintKind::DuplicateDocAlias variant 2026-04-19 02:19:30 +02:00
Guillaume Gomez ef3b800411 Remove AttributeLintKind::InvalidStyle variant 2026-04-19 02:11:28 +02:00
Guillaume Gomez 52653ef1c6 Remove AttributeLintKind::InvalidTarget variant 2026-04-19 01:53:25 +02:00
Guillaume Gomez b4d02996f9 Remove AttributeLintKind::EmptyAttribute variant 2026-04-19 00:48:32 +02:00
Guillaume Gomez 5f0ccfba88 Remove AttributeLintKind::IllFormedAttributeInput variant 2026-04-19 00:36:20 +02:00
Jonathan Brouwer 5fe1e44dbb Clarify and make consistent the feature gating of on_unknown_attr 2026-04-18 19:13:34 +02:00
Jonathan Brouwer c5f6afc3e8 Remove target arguments & features from parse_limited 2026-04-18 19:13:30 +02:00
Jonathan Brouwer d12af208b9 Rollup merge of #154432 - GuillaumeGomez:try-rm-AttributeLint, r=JonathanBrouwer
Set up API to make it possible to pass closures instead of `AttributeLint`

Part of https://github.com/rust-lang/rust/issues/153099.

This PR sets up the base implementations needed to remove `AttributeLintKind` entirely and migrate two variants as examples.

r? @JonathanBrouwer
2026-04-18 11:41:30 +02:00
Jonathan Brouwer 0ff3fecf6f Make OnDuplicate::Error the default 2026-04-18 10:20:32 +02:00
Jonathan Brouwer ae4cf84814 Mark all unstable attributes as OnDuplicate::Error 2026-04-18 10:20:32 +02:00
Guillaume Gomez ded2eea3b2 Remove AttributeLintKind::UnusedDuplicate 2026-04-17 23:43:08 +02:00