forked from neomake/neomake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This would be great improvement to the current situation, where the first span is used, which is quite often not the right one. See rust-lang/rust.vim#174 Related to: neomake#2075
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,3 @@ | ||
{"message":{"children":[],"code":{"code":"E0061","explanation":"\nThe number of arguments passed to a function must match the number of arguments\nspecified in the function signature.\n\nFor example, a function like:\n\n```\nfn f(a: u16, b: &str) {}\n```\n\nMust always be called with exactly two arguments, e.g. `f(2, \"test\")`.\n\nNote that Rust does not have a notion of optional function arguments or\nvariadic functions (except for its C-FFI).\n"},"level":"error","message":"this function takes 1 parameter but 2 parameters were supplied","rendered":"error[E0061]: this function takes 1 parameter but 2 parameters were supplied\n --> build/main.rs:6:5\n |\n1 | fn foo(i : i32) {\n | --------------- defined here\n...\n6 | foo(1, 1);\n | ^^^^^^^^^ expected 1 parameter\n\n","spans":[{"byte_end":15,"byte_start":0,"column_end":16,"column_start":1,"expansion":null,"file_name":"build/main.rs","is_primary":false,"label":"defined here","line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":1,"text":"fn foo(i : i32) {"}]},{"byte_end":67,"byte_start":58,"column_end":14,"column_start":5,"expansion":null,"file_name":"build/main.rs","is_primary":true,"label":"expected 1 parameter","line_end":6,"line_start":6,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":14,"highlight_start":5,"text":" foo(1, 1);"}]}]},"package_id":"testfoo 0.1.0 (path+file:///home/dpc/tmp/testfoo)","reason":"compiler-message","target":{"crate_types":["bin"],"edition":"2015","kind":["bin"],"name":"testfoo","src_path":"/home/dpc/tmp/testfoo/build/main.rs"}} | ||
{"message":{"children":[],"code":null,"level":"error","message":"aborting due to previous error","rendered":"error: aborting due to previous error\n\n","spans":[]},"package_id":"testfoo 0.1.0 (path+file:///home/dpc/tmp/testfoo)","reason":"compiler-message","target":{"crate_types":["bin"],"edition":"2015","kind":["bin"],"name":"testfoo","src_path":"/home/dpc/tmp/testfoo/build/main.rs"}} | ||
{"message":{"children":[],"code":null,"level":"","message":"For more information about this error, try `rustc --explain E0061`.","rendered":"For more information about this error, try `rustc --explain E0061`.\n","spans":[]},"package_id":"testfoo 0.1.0 (path+file:///home/dpc/tmp/testfoo)","reason":"compiler-message","target":{"crate_types":["bin"],"edition":"2015","kind":["bin"],"name":"testfoo","src_path":"/home/dpc/tmp/testfoo/build/main.rs"}} |
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