Rollup merge of #155736 - makai410:rm-ra-workaround, r=petrochenkov

Remove `AllVariants` workaround for rust-analyzer

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

Removes the `ALL_VARIANTS` alias added to work around rust-analyzer not supporting `#![feature(macro_derive)]`, which has since been fixed (rust-lang/rust-analyzer/issues/21043).
This commit is contained in:
Jonathan Brouwer
2026-04-24 18:19:21 +02:00
committed by GitHub
@@ -50,11 +50,6 @@ pub enum PrintKind {
}
impl PrintKind {
/// FIXME: rust-analyzer doesn't support `#![feature(macro_derive)]` yet
/// (<https://github.com/rust-lang/rust-analyzer/issues/21043>), which breaks autocomplete.
/// Work around that by aliasing the trait constant to a regular constant.
const ALL_VARIANTS: &[Self] = <Self as AllVariants>::ALL_VARIANTS;
fn name(self) -> &'static str {
use PrintKind::*;
match self {