mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user