File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
crates/rust-analyzer/src/diagnostics/test_data Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 107107 },
108108 },
109109 },
110- message: "consider passing by value instead",
110+ message: "consider passing by value instead: `self` ",
111111 },
112112 ],
113113 ),
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 {
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(
Original file line number Diff line number Diff line change 6161 },
6262 },
6363 },
64- message: "consider prefixing with an underscore",
64+ message: "consider prefixing with an underscore: `_foo` ",
6565 },
6666 ],
6767 ),
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 {
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(
Original file line number Diff line number Diff line change 6161 },
6262 },
6363 },
64- message: "consider prefixing with an underscore",
64+ message: "consider prefixing with an underscore: `_foo` ",
6565 },
6666 ],
6767 ),
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 {
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(
Original file line number Diff line number Diff line change 6161 },
6262 },
6363 },
64- message: "consider prefixing with an underscore",
64+ message: "consider prefixing with an underscore: `_foo` ",
6565 },
6666 ],
6767 ),
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 {
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(
Original file line number Diff line number Diff line change 107107 },
108108 },
109109 },
110- message: "return the expression directly",
110+ message: "return the expression directly: `(0..10).collect()` ",
111111 },
112112 ],
113113 ),
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 {
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(
You can’t perform that action at this time.
0 commit comments