This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #705 from alexheretic/clippy-source
Detect clippy diagnostic source
- Loading branch information
Showing
4 changed files
with
151 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"children": [{ | ||
"children": [], | ||
"code": null, | ||
"level": "note", | ||
"message": "lint level defined here", | ||
"rendered": null, | ||
"spans": [{ | ||
"byte_end": 39, | ||
"byte_start": 33, | ||
"column_end": 15, | ||
"column_start": 9, | ||
"expansion": null, | ||
"file_name": "src/main.rs", | ||
"is_primary": true, | ||
"label": null, | ||
"line_end": 2, | ||
"line_start": 2, | ||
"suggested_replacement": null, | ||
"text": [{ | ||
"highlight_end": 15, | ||
"highlight_start": 9, | ||
"text": "#![warn(clippy)]" | ||
}] | ||
}] | ||
}, { | ||
"children": [], | ||
"code": null, | ||
"level": "note", | ||
"message": "#[warn(identity_op)] implied by #[warn(clippy)]", | ||
"rendered": null, | ||
"spans": [] | ||
}, { | ||
"children": [], | ||
"code": null, | ||
"level": "help", | ||
"message": "for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.186/index.html#identity_op", | ||
"rendered": null, | ||
"spans": [] | ||
}], | ||
"code": { | ||
"code": "identity_op", | ||
"explanation": null | ||
}, | ||
"level": "warning", | ||
"message": "the operation is ineffective. Consider reducing it to `1`", | ||
"rendered": "warning: the operation is ineffective. Consider reducing it to `1`\n --> src/main.rs:5:14\n |\n5 | let _s = 1 / 1;\n | ^^^^^\n |\nnote: lint level defined here\n --> src/main.rs:2:9\n |\n2 | #![warn(clippy)]\n | ^^^^^^\n = note: #[warn(identity_op)] implied by #[warn(clippy)]\n = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.186/index.html#identity_op\n\n", | ||
"spans": [{ | ||
"byte_end": 73, | ||
"byte_start": 68, | ||
"column_end": 19, | ||
"column_start": 14, | ||
"expansion": null, | ||
"file_name": "src/main.rs", | ||
"is_primary": true, | ||
"label": null, | ||
"line_end": 5, | ||
"line_start": 5, | ||
"suggested_replacement": null, | ||
"text": [{ | ||
"highlight_end": 19, | ||
"highlight_start": 14, | ||
"text": " let _s = 1 / 1;" | ||
}] | ||
}] | ||
} |