tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [
- CodeAction {
- title: "consider passing by value instead: `self`",
- group: None,
- kind: Some(
- CodeActionKind(
- "quickfix",
+ fix: Some(
+ Fix {
+ ranges: [
+ Range {
+ start: Position {
+ line: 41,
+ character: 23,
+ },
+ end: Position {
+ line: 41,
+ character: 28,
+ },
+ },
+ ],
+ action: CodeAction {
+ title: "consider passing by value instead: `self`",
+ group: None,
+ kind: Some(
+ CodeActionKind(
+ "quickfix",
+ ),
),
- ),
- edit: Some(
- SnippetWorkspaceEdit {
- changes: Some(
- {
- Url {
- scheme: "file",
- cannot_be_a_base: false,
- username: "",
- password: None,
- host: None,
- port: None,
- path: "/test/compiler/mir/tagset.rs",
- query: None,
- fragment: None,
- }: [
- TextEdit {
- range: Range {
- start: Position {
- line: 41,
- character: 23,
- },
- end: Position {
- line: 41,
- character: 28,
+ edit: Some(
+ SnippetWorkspaceEdit {
+ changes: Some(
+ {
+ Url {
+ scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
+ host: None,
+ port: None,
+ path: "/test/compiler/mir/tagset.rs",
+ query: None,
+ fragment: None,
+ }: [
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 41,
+ character: 23,
+ },
+ end: Position {
+ line: 41,
+ character: 28,
+ },
},
+ new_text: "self",
},
- new_text: "self",
- },
- ],
- },
- ),
- document_changes: None,
- change_annotations: None,
- },
- ),
- is_preferred: Some(
- true,
- ),
- data: None,
+ ],
+ },
+ ),
+ document_changes: None,
+ change_annotations: None,
+ },
+ ),
+ is_preferred: Some(
+ true,
+ ),
+ data: None,
+ },
},
- ],
+ ),
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
]
),
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [
- CodeAction {
- title: "consider prefixing with an underscore: `_foo`",
- group: None,
- kind: Some(
- CodeActionKind(
- "quickfix",
+ fix: Some(
+ Fix {
+ ranges: [
+ Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ ],
+ action: CodeAction {
+ title: "consider prefixing with an underscore: `_foo`",
+ group: None,
+ kind: Some(
+ CodeActionKind(
+ "quickfix",
+ ),
),
- ),
- edit: Some(
- SnippetWorkspaceEdit {
- changes: Some(
- {
- Url {
- scheme: "file",
- cannot_be_a_base: false,
- username: "",
- password: None,
- host: None,
- port: None,
- path: "/test/driver/subcommand/repl.rs",
- query: None,
- fragment: None,
- }: [
- TextEdit {
- range: Range {
- start: Position {
- line: 290,
- character: 8,
- },
- end: Position {
- line: 290,
- character: 11,
+ edit: Some(
+ SnippetWorkspaceEdit {
+ changes: Some(
+ {
+ Url {
+ scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
+ host: None,
+ port: None,
+ path: "/test/driver/subcommand/repl.rs",
+ query: None,
+ fragment: None,
+ }: [
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
},
+ new_text: "_foo",
},
- new_text: "_foo",
- },
- ],
- },
- ),
- document_changes: None,
- change_annotations: None,
- },
- ),
- is_preferred: Some(
- true,
- ),
- data: None,
+ ],
+ },
+ ),
+ document_changes: None,
+ change_annotations: None,
+ },
+ ),
+ is_preferred: Some(
+ true,
+ ),
+ data: None,
+ },
},
- ],
+ ),
},
]
),
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [
- CodeAction {
- title: "consider prefixing with an underscore: `_foo`",
- group: None,
- kind: Some(
- CodeActionKind(
- "quickfix",
+ fix: Some(
+ Fix {
+ ranges: [
+ Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ ],
+ action: CodeAction {
+ title: "consider prefixing with an underscore: `_foo`",
+ group: None,
+ kind: Some(
+ CodeActionKind(
+ "quickfix",
+ ),
),
- ),
- edit: Some(
- SnippetWorkspaceEdit {
- changes: Some(
- {
- Url {
- scheme: "file",
- cannot_be_a_base: false,
- username: "",
- password: None,
- host: None,
- port: None,
- path: "/test/driver/subcommand/repl.rs",
- query: None,
- fragment: None,
- }: [
- TextEdit {
- range: Range {
- start: Position {
- line: 290,
- character: 8,
- },
- end: Position {
- line: 290,
- character: 11,
+ edit: Some(
+ SnippetWorkspaceEdit {
+ changes: Some(
+ {
+ Url {
+ scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
+ host: None,
+ port: None,
+ path: "/test/driver/subcommand/repl.rs",
+ query: None,
+ fragment: None,
+ }: [
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
},
+ new_text: "_foo",
},
- new_text: "_foo",
- },
- ],
- },
- ),
- document_changes: None,
- change_annotations: None,
- },
- ),
- is_preferred: Some(
- true,
- ),
- data: None,
+ ],
+ },
+ ),
+ document_changes: None,
+ change_annotations: None,
+ },
+ ),
+ is_preferred: Some(
+ true,
+ ),
+ data: None,
+ },
},
- ],
+ ),
},
]
),
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [
- CodeAction {
- title: "consider prefixing with an underscore: `_foo`",
- group: None,
- kind: Some(
- CodeActionKind(
- "quickfix",
+ fix: Some(
+ Fix {
+ ranges: [
+ Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ ],
+ action: CodeAction {
+ title: "consider prefixing with an underscore: `_foo`",
+ group: None,
+ kind: Some(
+ CodeActionKind(
+ "quickfix",
+ ),
),
- ),
- edit: Some(
- SnippetWorkspaceEdit {
- changes: Some(
- {
- Url {
- scheme: "file",
- cannot_be_a_base: false,
- username: "",
- password: None,
- host: None,
- port: None,
- path: "/test/driver/subcommand/repl.rs",
- query: None,
- fragment: None,
- }: [
- TextEdit {
- range: Range {
- start: Position {
- line: 290,
- character: 8,
- },
- end: Position {
- line: 290,
- character: 11,
+ edit: Some(
+ SnippetWorkspaceEdit {
+ changes: Some(
+ {
+ Url {
+ scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
+ host: None,
+ port: None,
+ path: "/test/driver/subcommand/repl.rs",
+ query: None,
+ fragment: None,
+ }: [
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
},
+ new_text: "_foo",
},
- new_text: "_foo",
- },
- ],
- },
- ),
- document_changes: None,
- change_annotations: None,
- },
- ),
- is_preferred: Some(
- true,
- ),
- data: None,
+ ],
+ },
+ ),
+ document_changes: None,
+ change_annotations: None,
+ },
+ ),
+ is_preferred: Some(
+ true,
+ ),
+ data: None,
+ },
},
- ],
+ ),
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
]
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [],
+ fix: None,
},
MappedRustDiagnostic {
url: Url {
tags: None,
data: None,
},
- fixes: [
- CodeAction {
- title: "return the expression directly: `(0..10).collect()`",
- group: None,
- kind: Some(
- CodeActionKind(
- "quickfix",
+ fix: Some(
+ Fix {
+ ranges: [
+ Range {
+ start: Position {
+ line: 2,
+ character: 4,
+ },
+ end: Position {
+ line: 2,
+ character: 30,
+ },
+ },
+ Range {
+ start: Position {
+ line: 3,
+ character: 4,
+ },
+ end: Position {
+ line: 3,
+ character: 5,
+ },
+ },
+ ],
+ action: CodeAction {
+ title: "return the expression directly: `(0..10).collect()`",
+ group: None,
+ kind: Some(
+ CodeActionKind(
+ "quickfix",
+ ),
),
- ),
- edit: Some(
- SnippetWorkspaceEdit {
- changes: Some(
- {
- Url {
- scheme: "file",
- cannot_be_a_base: false,
- username: "",
- password: None,
- host: None,
- port: None,
- path: "/test/src/main.rs",
- query: None,
- fragment: None,
- }: [
- TextEdit {
- range: Range {
- start: Position {
- line: 2,
- character: 4,
- },
- end: Position {
- line: 2,
- character: 30,
+ edit: Some(
+ SnippetWorkspaceEdit {
+ changes: Some(
+ {
+ Url {
+ scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
+ host: None,
+ port: None,
+ path: "/test/src/main.rs",
+ query: None,
+ fragment: None,
+ }: [
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 2,
+ character: 4,
+ },
+ end: Position {
+ line: 2,
+ character: 30,
+ },
},
+ new_text: "",
},
- new_text: "",
- },
- TextEdit {
- range: Range {
- start: Position {
- line: 3,
- character: 4,
- },
- end: Position {
- line: 3,
- character: 5,
+ TextEdit {
+ range: Range {
+ start: Position {
+ line: 3,
+ character: 4,
+ },
+ end: Position {
+ line: 3,
+ character: 5,
+ },
},
+ new_text: "(0..10).collect()",
},
- new_text: "(0..10).collect()",
- },
- ],
- },
- ),
- document_changes: None,
- change_annotations: None,
- },
- ),
- is_preferred: Some(
- true,
- ),
- data: None,
+ ],
+ },
+ ),
+ document_changes: None,
+ change_annotations: None,
+ },
+ ),
+ is_preferred: Some(
+ true,
+ ),
+ data: None,
+ },
},
- ],
+ ),
},
]