Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/rustfix/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustfix"
version = "0.9.2"
version = "0.9.3"
authors = [
"Pascal Hertleif <[email protected]>",
"Oliver Schneider <[email protected]>",
Expand Down
234 changes: 117 additions & 117 deletions crates/rustfix/tests/everything/multiple-solutions.json
Original file line number Diff line number Diff line change
@@ -1,166 +1,166 @@
{
"$message_type": "diagnostic",
"message": "unused imports: `HashMap`, `VecDeque`",
"code": {
"code": "unused_imports",
"explanation": null
},
"level": "warning",
"spans": [
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 23,
"byte_end": 30,
"line_start": 1,
"line_end": 1,
"column_start": 24,
"column_end": 31,
"is_primary": true,
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_start": 24,
"highlight_end": 31
}
],
"label": null,
"suggested_replacement": null,
"suggestion_applicability": null,
"expansion": null
},
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 41,
"byte_end": 49,
"line_start": 1,
"line_end": 1,
"column_start": 42,
"column_end": 50,
"is_primary": true,
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_start": 42,
"highlight_end": 50
}
],
"label": null,
"suggested_replacement": null,
"suggestion_applicability": null,
"expansion": null
}
],
"children": [
{
"message": "`#[warn(unused_imports)]` on by default",
"children": [],
"code": null,
"level": "note",
"spans": [],
"children": [],
"rendered": null
"message": "`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default",
"rendered": null,
"spans": []
},
{
"message": "remove the unused imports",
"children": [],
"code": null,
"level": "help",
"message": "remove the unused imports",
"rendered": null,
"spans": [
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 22,
"byte_end": 23,
"line_start": 1,
"line_end": 1,
"column_start": 23,
"column_end": 24,
"byte_end": 32,
"byte_start": 23,
"column_end": 33,
"column_start": 24,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_start": 23,
"highlight_end": 24
}
],
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"expansion": null
},
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 23,
"byte_end": 32,
"line_start": 1,
"line_end": 1,
"column_start": 24,
"column_end": 33,
"is_primary": true,
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_end": 33,
"highlight_start": 24,
"highlight_end": 33
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
],
"label": null,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"expansion": null
]
},
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 39,
"byte_end": 49,
"line_start": 1,
"line_end": 1,
"column_start": 40,
"byte_start": 39,
"column_end": 50,
"column_start": 40,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_end": 50,
"highlight_start": 40,
"highlight_end": 50
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
],
]
},
{
"byte_end": 23,
"byte_start": 22,
"column_end": 24,
"column_start": 23,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"expansion": null
"text": [
{
"highlight_end": 24,
"highlight_start": 23,
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
]
},
{
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
"byte_start": 49,
"byte_end": 50,
"line_start": 1,
"line_end": 1,
"column_start": 50,
"byte_start": 49,
"column_end": 51,
"column_start": 50,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
"highlight_end": 51,
"highlight_start": 50,
"highlight_end": 51
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
],
"label": null,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"expansion": null
]
}
],
"children": [],
"rendered": null
]
}
],
"rendered": "warning: unused imports: `HashMap`, `VecDeque`\n --> ./tests/everything/multiple-solutions.nightly.rs:1:24\n |\n1 | use std::collections::{HashMap, HashSet, VecDeque};\n | ^^^^^^^ ^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` on by default\n\n"
"code": {
"code": "unused_imports",
"explanation": null
},
"level": "warning",
"message": "unused imports: `HashMap` and `VecDeque`",
"rendered": "warning: unused imports: `HashMap` and `VecDeque`/n --> ./tests/everything/multiple-solutions.rs:1:24/n |/n1 | use std::collections::{HashMap, HashSet, VecDeque};/n | ^^^^^^^ ^^^^^^^^/n |/n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default/n/n",
"spans": [
{
"byte_end": 30,
"byte_start": 23,
"column_end": 31,
"column_start": 24,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": null,
"suggestion_applicability": null,
"text": [
{
"highlight_end": 31,
"highlight_start": 24,
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
]
},
{
"byte_end": 49,
"byte_start": 41,
"column_end": 50,
"column_start": 42,
"expansion": null,
"file_name": "./tests/everything/multiple-solutions.rs",
"is_primary": true,
"label": null,
"line_end": 1,
"line_start": 1,
"suggested_replacement": null,
"suggestion_applicability": null,
"text": [
{
"highlight_end": 50,
"highlight_start": 42,
"text": "use std::collections::{HashMap, HashSet, VecDeque};"
}
]
}
]
}
{
"$message_type": "diagnostic",
"message": "1 warning emitted",
"children": [],
"code": null,
"level": "warning",
"spans": [],
"children": [],
"rendered": "warning: 1 warning emitted\n\n"
}
"message": "1 warning emitted",
"rendered": "warning: 1 warning emitted/n/n",
"spans": []
}
Loading
Loading