diff --git a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt index fd04163de980..a9c0edcf9fbc 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Warning, + DiagnosticSeverity( + 2, + ), ), code: Some( String( @@ -140,7 +142,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( @@ -231,7 +235,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt index a7f936a703e3..fd69097d057c 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Error, + DiagnosticSeverity( + 1, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt index 8bee4cfe10a7..1c25a3ed6963 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: None, code_description: None, @@ -90,7 +92,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: None, code_description: None, @@ -157,7 +161,9 @@ }, }, severity: Some( - Error, + DiagnosticSeverity( + 1, + ), ), code: None, code_description: None, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt index afc562a0e2be..653fb0130d12 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Error, + DiagnosticSeverity( + 1, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt index 05074a914b53..f37e416b7b7c 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Error, + DiagnosticSeverity( + 1, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt index 3ded70411d35..df73efe5f872 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Warning, + DiagnosticSeverity( + 2, + ), ), code: Some( String( @@ -67,7 +69,9 @@ ), tags: Some( [ - Unnecessary, + DiagnosticTag( + 1, + ), ], ), data: None, @@ -98,7 +102,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt index 0993aa1af14b..ad22a34d6731 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( @@ -67,7 +69,9 @@ ), tags: Some( [ - Unnecessary, + DiagnosticTag( + 1, + ), ], ), data: None, @@ -98,7 +102,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt index d7a974ae5797..1072d8a17700 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Information, + DiagnosticSeverity( + 3, + ), ), code: Some( String( @@ -67,7 +69,9 @@ ), tags: Some( [ - Unnecessary, + DiagnosticTag( + 1, + ), ], ), data: None, @@ -98,7 +102,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt index 5ea27a152752..3e043666aab6 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Error, + DiagnosticSeverity( + 1, + ), ), code: Some( String( @@ -114,7 +116,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( diff --git a/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt b/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt index f77abde5155c..67e442d73d7a 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt @@ -23,7 +23,9 @@ }, }, severity: Some( - Warning, + DiagnosticSeverity( + 2, + ), ), code: Some( String( @@ -140,7 +142,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String( @@ -231,7 +235,9 @@ }, }, severity: Some( - Hint, + DiagnosticSeverity( + 4, + ), ), code: Some( String(