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 107
107
},
108
108
},
109
109
},
110
- message: "consider passing by value instead",
110
+ message: "consider passing by value instead: `self` ",
111
111
},
112
112
],
113
113
),
262
262
source: Some(
263
263
"clippy",
264
264
),
265
- message: "consider passing by value instead",
265
+ message: "consider passing by value instead: `self` ",
266
266
related_information: Some(
267
267
[
268
268
DiagnosticRelatedInformation {
298
298
},
299
299
fixes: [
300
300
CodeAction {
301
- title: "consider passing by value instead",
301
+ title: "consider passing by value instead: `self` ",
302
302
group: None,
303
303
kind: Some(
304
304
CodeActionKind(
Original file line number Diff line number Diff line change 61
61
},
62
62
},
63
63
},
64
- message: "consider prefixing with an underscore",
64
+ message: "consider prefixing with an underscore: `_foo` ",
65
65
},
66
66
],
67
67
),
109
109
source: Some(
110
110
"rustc",
111
111
),
112
- message: "consider prefixing with an underscore",
112
+ message: "consider prefixing with an underscore: `_foo` ",
113
113
related_information: Some(
114
114
[
115
115
DiagnosticRelatedInformation {
145
145
},
146
146
fixes: [
147
147
CodeAction {
148
- title: "consider prefixing with an underscore",
148
+ title: "consider prefixing with an underscore: `_foo` ",
149
149
group: None,
150
150
kind: Some(
151
151
CodeActionKind(
Original file line number Diff line number Diff line change 61
61
},
62
62
},
63
63
},
64
- message: "consider prefixing with an underscore",
64
+ message: "consider prefixing with an underscore: `_foo` ",
65
65
},
66
66
],
67
67
),
109
109
source: Some(
110
110
"rustc",
111
111
),
112
- message: "consider prefixing with an underscore",
112
+ message: "consider prefixing with an underscore: `_foo` ",
113
113
related_information: Some(
114
114
[
115
115
DiagnosticRelatedInformation {
145
145
},
146
146
fixes: [
147
147
CodeAction {
148
- title: "consider prefixing with an underscore",
148
+ title: "consider prefixing with an underscore: `_foo` ",
149
149
group: None,
150
150
kind: Some(
151
151
CodeActionKind(
Original file line number Diff line number Diff line change 61
61
},
62
62
},
63
63
},
64
- message: "consider prefixing with an underscore",
64
+ message: "consider prefixing with an underscore: `_foo` ",
65
65
},
66
66
],
67
67
),
109
109
source: Some(
110
110
"rustc",
111
111
),
112
- message: "consider prefixing with an underscore",
112
+ message: "consider prefixing with an underscore: `_foo` ",
113
113
related_information: Some(
114
114
[
115
115
DiagnosticRelatedInformation {
145
145
},
146
146
fixes: [
147
147
CodeAction {
148
- title: "consider prefixing with an underscore",
148
+ title: "consider prefixing with an underscore: `_foo` ",
149
149
group: None,
150
150
kind: Some(
151
151
CodeActionKind(
Original file line number Diff line number Diff line change 107
107
},
108
108
},
109
109
},
110
- message: "return the expression directly",
110
+ message: "return the expression directly: `(0..10).collect()` ",
111
111
},
112
112
],
113
113
),
262
262
source: Some(
263
263
"clippy",
264
264
),
265
- message: "return the expression directly",
265
+ message: "return the expression directly: `(0..10).collect()` ",
266
266
related_information: Some(
267
267
[
268
268
DiagnosticRelatedInformation {
298
298
},
299
299
fixes: [
300
300
CodeAction {
301
- title: "return the expression directly",
301
+ title: "return the expression directly: `(0..10).collect()` ",
302
302
group: None,
303
303
kind: Some(
304
304
CodeActionKind(
You can’t perform that action at this time.
0 commit comments