From 741f47f208e7b471c1b03b3b09317612b3f9dd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 24 May 2021 16:59:06 +0300 Subject: [PATCH] Update test fixtures --- .../src/tests/fixtures/test_serialize_proc_macro.txt | 2 +- .../src/diagnostics/test_data/clippy_pass_by_ref.txt | 11 +++++++++++ .../diagnostics/test_data/handles_macro_location.txt | 2 ++ .../diagnostics/test_data/macro_compiler_error.txt | 7 +++++++ .../test_data/rustc_incompatible_type_for_trait.txt | 2 ++ .../diagnostics/test_data/rustc_mismatched_type.txt | 2 ++ .../diagnostics/test_data/rustc_unused_variable.txt | 5 +++++ .../test_data/rustc_unused_variable_as_hint.txt | 5 +++++ .../test_data/rustc_unused_variable_as_info.txt | 5 +++++ .../test_data/rustc_wrong_number_of_parameters.txt | 6 ++++++ .../src/diagnostics/test_data/snap_multi_line_fix.txt | 11 +++++++++++ 11 files changed, 57 insertions(+), 1 deletion(-) diff --git a/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt b/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt index fa581f1102..eb67c71348 100644 --- a/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt +++ b/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt @@ -23,7 +23,7 @@ SUBTREE $ SUBTREE [] 4294967295 IDENT allow 4294967295 SUBTREE () 4294967295 - IDENT rust_2018_idioms 4294967295 + IDENT unused_extern_crates 4294967295 PUNCH , [alone] 4294967295 IDENT clippy 4294967295 PUNCH : [joint] 4294967295 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 227d96d513..bcc889681e 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -59,6 +61,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -84,6 +87,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -115,6 +119,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -146,6 +151,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -172,6 +178,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -203,6 +210,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -234,6 +242,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -260,6 +269,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -301,6 +311,7 @@ { Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, 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 e5f01fb334..d5ab03576d 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( 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 c847bbb356..8bee4cfe10 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -36,6 +37,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -67,6 +69,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -101,6 +104,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -132,6 +136,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -166,6 +171,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -191,6 +197,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: 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 0d16af232e..ada540ea65 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( 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 31b6a12ce0..05074a914b 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( 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 f8adfad3b8..749f49438f 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -40,6 +41,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -75,6 +77,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -113,6 +116,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -154,6 +158,7 @@ { Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, 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 5a70d2ed7b..d20a91b397 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -40,6 +41,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -75,6 +77,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -113,6 +116,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -154,6 +158,7 @@ { Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, 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 04ca0c9c24..2a9c3a9afe 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -40,6 +41,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -75,6 +77,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -113,6 +116,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -154,6 +158,7 @@ { Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, 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 f7a313cf1a..5ea27a1527 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -59,6 +61,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -90,6 +93,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -121,6 +125,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -147,6 +152,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, 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 57d2f1ae3b..43b1ea765e 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 @@ -2,6 +2,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -33,6 +34,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -59,6 +61,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -84,6 +87,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -115,6 +119,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -146,6 +151,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -172,6 +178,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -203,6 +210,7 @@ MappedRustDiagnostic { url: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -234,6 +242,7 @@ CodeDescription { href: Url { scheme: "https", + cannot_be_a_base: false, username: "", password: None, host: Some( @@ -260,6 +269,7 @@ location: Location { uri: Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None, @@ -301,6 +311,7 @@ { Url { scheme: "file", + cannot_be_a_base: false, username: "", password: None, host: None,