Skip to content

Commit 2a885bb

Browse files
Rollup merge of #155736 - makai410:rm-ra-workaround, r=petrochenkov
Remove `AllVariants` workaround for rust-analyzer Part of #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).
2 parents 4eaa44b + ece632c commit 2a885bb

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

compiler/rustc_session/src/config/print_request.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ pub enum PrintKind {
5050
}
5151

5252
impl PrintKind {
53-
/// FIXME: rust-analyzer doesn't support `#![feature(macro_derive)]` yet
54-
/// (<https://github.com/rust-lang/rust-analyzer/issues/21043>), which breaks autocomplete.
55-
/// Work around that by aliasing the trait constant to a regular constant.
56-
const ALL_VARIANTS: &[Self] = <Self as AllVariants>::ALL_VARIANTS;
57-
5853
fn name(self) -> &'static str {
5954
use PrintKind::*;
6055
match self {

0 commit comments

Comments
 (0)