-
-
Save anonymous/167798b1e9fb78acf32a6f1258064c09 to your computer and use it in GitHub Desktop.
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
Compiling serde_json v1.0.10 (file:///Users/alex/Software/serde-json) | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:60:46 | |
| | |
60 | #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] | |
| ^^^^^^^^^^^ help: remove these parentheses | |
| | |
= note: #[warn(unused_parens)] on by default | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:60:46 | |
| | |
60 | #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] | |
| ^^^^^^^^^^^ help: remove these parentheses | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:1696:14 | |
| | |
1696 | #[derive(Deserialize, Debug, Ord, PartialOrd, Eq, PartialEq)] | |
| ^^^^^^^^^^^ | |
help: remove these parentheses | |
| | |
1696 | #[derive(match <&'a str as _serde::Deserialize>::deserialize(__e) { | |
1697 | ::result::Result::Ok(val) => val, | |
1698 | ::result::Result::Err(err) => { | |
1699 | return ::result::Result::Err(::convert::From::from(err)) | |
1700 | } | |
1701 | }, Debug, Ord, PartialOrd, Eq, PartialEq)] | |
| | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:1696:14 | |
| | |
1696 | #[derive(Deserialize, Debug, Ord, PartialOrd, Eq, PartialEq)] | |
| ^^^^^^^^^^^ help: remove these parentheses | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:1719:71 | |
| | |
1719 | #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Clone, Serialize, Deserialize)] | |
| ^^^^^^^^^^^ | |
help: remove these parentheses | |
| | |
1719 | #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Clone, Serialize, match <String as _serde::Deserialize>::deserialize(__e) { | |
1720 | ::result::Result::Ok(val) => val, | |
1721 | ::result::Result::Err(err) => { | |
1722 | return ::result::Result::Err(::convert::From::from(err)) | |
1723 | } | |
1724 | })] | |
| | |
warning: unnecessary parentheses around function argument | |
--> tests/test.rs:1719:71 | |
| | |
1719 | #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Clone, Serialize, Deserialize)] | |
| ^^^^^^^^^^^ help: remove these parentheses | |
Finished dev [unoptimized + debuginfo] target(s) in 10.0 secs | |
Running target/debug/deps/serde_json-f81ab8eb368f246c | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out | |
Running target/debug/deps/compiletest-f9c9e099b4f1c7bf | |
running 1 test | |
running 7 tests | |
test [ui] ui/parse_expr.rs ... ok | |
test [ui] ui/missing_colon.rs ... ok | |
test [ui] ui/missing_value.rs ... ok | |
test [ui] ui/unexpected_colon.rs ... FAILED | |
test [ui] ui/unexpected_comma.rs ... FAILED | |
test [ui] ui/not_found.rs ... ok | |
test [ui] ui/parse_key.rs ... ok | |
failures: | |
---- [ui] ui/unexpected_colon.rs stdout ---- | |
normalized stderr: | |
error: expected expression, found `:` | |
--> $DIR/unexpected_colon.rs:13:13 | |
| | |
13 | json!({ : true }); | |
| ^ expected expression | |
expected stderr: | |
error: expected expression, found `:` | |
--> $DIR/unexpected_colon.rs:13:13 | |
| | |
13 | json!({ : true }); | |
| ^ | |
diff of stderr: | |
error: expected expression, found `:` | |
--> $DIR/unexpected_colon.rs:13:13 | |
| | |
13 | json!({ : true }); | |
- | ^ | |
+ | ^ expected expression | |
The actual stderr differed from the expected stderr. | |
Actual stderr saved to /var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_colon.stderr | |
To update references, run this command from build directory: | |
tests/ui/update-references.sh '/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/' 'unexpected_colon.rs' | |
error: 1 errors occurred comparing output. | |
status: exit code: 101 | |
command: "rustc" "tests/ui/unexpected_colon.rs" "-L" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/" "--target=x86_64-apple-darwin" "-C" "prefer-dynamic" "-o" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_colon.stage-id" "-L" "tests/deps/target/debug/deps" "-L" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_colon.stage-id.aux" "-A" "unused" | |
stdout: | |
------------------------------------------ | |
------------------------------------------ | |
stderr: | |
------------------------------------------ | |
error: expected expression, found `:` | |
--> tests/ui/unexpected_colon.rs:13:13 | |
| | |
13 | json!({ : true }); | |
| ^ expected expression | |
------------------------------------------ | |
thread '[ui] ui/unexpected_colon.rs' panicked at 'explicit panic', /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.7/src/runtest.rs:2539:9 | |
---- [ui] ui/unexpected_comma.rs stdout ---- | |
normalized stderr: | |
error: expected expression, found `,` | |
--> $DIR/unexpected_comma.rs:13:17 | |
| | |
13 | json!({ "a" , "b": true }); | |
| ^ expected expression | |
expected stderr: | |
error: expected expression, found `,` | |
--> $DIR/unexpected_comma.rs:13:17 | |
| | |
13 | json!({ "a" , "b": true }); | |
| ^ | |
diff of stderr: | |
error: expected expression, found `,` | |
--> $DIR/unexpected_comma.rs:13:17 | |
| | |
13 | json!({ "a" , "b": true }); | |
- | ^ | |
+ | ^ expected expression | |
The actual stderr differed from the expected stderr. | |
Actual stderr saved to /var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_comma.stderr | |
To update references, run this command from build directory: | |
tests/ui/update-references.sh '/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/' 'unexpected_comma.rs' | |
error: 1 errors occurred comparing output. | |
status: exit code: 101 | |
command: "rustc" "tests/ui/unexpected_comma.rs" "-L" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/" "--target=x86_64-apple-darwin" "-C" "prefer-dynamic" "-o" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_comma.stage-id" "-L" "tests/deps/target/debug/deps" "-L" "/var/folders/cp/qx0df5kx497_rygnyvv9xl8m0000gn/T/unexpected_comma.stage-id.aux" "-A" "unused" | |
stdout: | |
------------------------------------------ | |
------------------------------------------ | |
stderr: | |
------------------------------------------ | |
error: expected expression, found `,` | |
--> tests/ui/unexpected_comma.rs:13:17 | |
| | |
13 | json!({ "a" , "b": true }); | |
| ^ expected expression | |
------------------------------------------ | |
thread '[ui] ui/unexpected_comma.rs' panicked at 'explicit panic', /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.7/src/runtest.rs:2539:9 | |
note: Run with `RUST_BACKTRACE=1` for a backtrace. | |
failures: | |
[ui] ui/unexpected_colon.rs | |
[ui] ui/unexpected_comma.rs | |
test result: FAILED. 5 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out | |
test ui ... FAILED | |
failures: | |
---- ui stdout ---- | |
thread 'ui' panicked at 'Some tests failed', /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.7/src/lib.rs:85:22 | |
failures: | |
ui | |
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out | |
error: test failed, to rerun pass '--test compiletest' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment