From e0551811bccc315667c0338f42ac08cf7a8ea20a Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Fri, 12 Jul 2024 08:51:46 -0700 Subject: [PATCH] BE: fix currently unused enum variant warning Summary: We recently (D59634903) switched to reporting the module:function range for various diagnostics. This means the `UseRange::WithArgs` constructor is currently unused. We will need it in future, so just silence the warning for now. Reviewed By: jcpetruzza Differential Revision: D59684583 fbshipit-source-id: 8efad049da3902cc9b4d20043c0fca61267dba5e --- crates/ide/src/codemod_helpers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ide/src/codemod_helpers.rs b/crates/ide/src/codemod_helpers.rs index 9b972040a4..d2c333a6b4 100644 --- a/crates/ide/src/codemod_helpers.rs +++ b/crates/ide/src/codemod_helpers.rs @@ -479,6 +479,7 @@ pub type MakeDiag<'a, T> = &'a dyn Fn(MakeDiagCtx) -> Option; #[derive(Eq, PartialEq, Copy, Clone, Debug)] pub enum UseRange { + #[allow(dead_code)] WithArgs, NameOnly, }