Skip to content

Commit 5386dc6

Browse files
Bless tests
1 parent 30e472a commit 5386dc6

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
},
109109
},
110-
message: "consider passing by value instead",
110+
message: "consider passing by value instead: `self`",
111111
},
112112
],
113113
),
@@ -262,7 +262,7 @@
262262
source: Some(
263263
"clippy",
264264
),
265-
message: "consider passing by value instead",
265+
message: "consider passing by value instead: `self`",
266266
related_information: Some(
267267
[
268268
DiagnosticRelatedInformation {
@@ -298,7 +298,7 @@
298298
},
299299
fixes: [
300300
CodeAction {
301-
title: "consider passing by value instead",
301+
title: "consider passing by value instead: `self`",
302302
group: None,
303303
kind: Some(
304304
CodeActionKind(

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
},
6363
},
64-
message: "consider prefixing with an underscore",
64+
message: "consider prefixing with an underscore: `_foo`",
6565
},
6666
],
6767
),
@@ -109,7 +109,7 @@
109109
source: Some(
110110
"rustc",
111111
),
112-
message: "consider prefixing with an underscore",
112+
message: "consider prefixing with an underscore: `_foo`",
113113
related_information: Some(
114114
[
115115
DiagnosticRelatedInformation {
@@ -145,7 +145,7 @@
145145
},
146146
fixes: [
147147
CodeAction {
148-
title: "consider prefixing with an underscore",
148+
title: "consider prefixing with an underscore: `_foo`",
149149
group: None,
150150
kind: Some(
151151
CodeActionKind(

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
},
6363
},
64-
message: "consider prefixing with an underscore",
64+
message: "consider prefixing with an underscore: `_foo`",
6565
},
6666
],
6767
),
@@ -109,7 +109,7 @@
109109
source: Some(
110110
"rustc",
111111
),
112-
message: "consider prefixing with an underscore",
112+
message: "consider prefixing with an underscore: `_foo`",
113113
related_information: Some(
114114
[
115115
DiagnosticRelatedInformation {
@@ -145,7 +145,7 @@
145145
},
146146
fixes: [
147147
CodeAction {
148-
title: "consider prefixing with an underscore",
148+
title: "consider prefixing with an underscore: `_foo`",
149149
group: None,
150150
kind: Some(
151151
CodeActionKind(

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
},
6363
},
64-
message: "consider prefixing with an underscore",
64+
message: "consider prefixing with an underscore: `_foo`",
6565
},
6666
],
6767
),
@@ -109,7 +109,7 @@
109109
source: Some(
110110
"rustc",
111111
),
112-
message: "consider prefixing with an underscore",
112+
message: "consider prefixing with an underscore: `_foo`",
113113
related_information: Some(
114114
[
115115
DiagnosticRelatedInformation {
@@ -145,7 +145,7 @@
145145
},
146146
fixes: [
147147
CodeAction {
148-
title: "consider prefixing with an underscore",
148+
title: "consider prefixing with an underscore: `_foo`",
149149
group: None,
150150
kind: Some(
151151
CodeActionKind(

crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
},
109109
},
110-
message: "return the expression directly",
110+
message: "return the expression directly: `(0..10).collect()`",
111111
},
112112
],
113113
),
@@ -262,7 +262,7 @@
262262
source: Some(
263263
"clippy",
264264
),
265-
message: "return the expression directly",
265+
message: "return the expression directly: `(0..10).collect()`",
266266
related_information: Some(
267267
[
268268
DiagnosticRelatedInformation {
@@ -298,7 +298,7 @@
298298
},
299299
fixes: [
300300
CodeAction {
301-
title: "return the expression directly",
301+
title: "return the expression directly: `(0..10).collect()`",
302302
group: None,
303303
kind: Some(
304304
CodeActionKind(

0 commit comments

Comments
 (0)