Initial vendor packages

Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
2024-01-08 01:21:28 +04:00
parent 5ecd8cf2cb
commit 1b6a04ca55
7309 changed files with 2160054 additions and 0 deletions

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "a" });
}

View File

@ -0,0 +1,12 @@
error: unexpected end of macro invocation
--> tests/ui/missing_colon.rs:4:5
|
4 | json!({ "a" });
| ^^^^^^^^^^^^^^ missing tokens in macro arguments
|
note: while trying to match `@`
--> src/macros.rs
|
| (@array [$($elems:expr,)*]) => {
| ^
= note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "1": "" "2": "" });
}

View File

@ -0,0 +1,13 @@
error: no rules expected the token `"2"`
--> tests/ui/missing_comma.rs:4:21
|
4 | json!({ "1": "" "2": "" });
| -^^^ no rules expected this token in macro call
| |
| help: missing comma here
|
note: while trying to match `,`
--> src/macros.rs
|
| ($e:expr , $($tt:tt)*) => {};
| ^

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "a" : });
}

View File

@ -0,0 +1,12 @@
error: unexpected end of macro invocation
--> tests/ui/missing_value.rs:4:5
|
4 | json!({ "a" : });
| ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
|
note: while trying to match `@`
--> src/macros.rs
|
| (@array [$($elems:expr,)*]) => {
| ^
= note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "a" : x });
}

View File

@ -0,0 +1,5 @@
error[E0425]: cannot find value `x` in this scope
--> tests/ui/not_found.rs:4:19
|
4 | json!({ "a" : x });
| ^ not found in this scope

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "a" : ~ });
}

View File

@ -0,0 +1,11 @@
error: no rules expected the token `~`
--> tests/ui/parse_expr.rs:4:19
|
4 | json!({ "a" : ~ });
| ^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$e:expr`
--> src/macros.rs
|
| ($e:expr , $($tt:tt)*) => {};
| ^^^^^^^

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "".s : true });
}

View File

@ -0,0 +1,5 @@
error[E0609]: no field `s` on type `&'static str`
--> tests/ui/parse_key.rs:4:16
|
4 | json!({ "".s : true });
| ^ unknown field

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!([ true => ]);
}

View File

@ -0,0 +1,7 @@
error: no rules expected the token `=>`
--> tests/ui/unexpected_after_array_element.rs:4:18
|
4 | json!([ true => ]);
| ^^ no rules expected this token in macro call
|
= note: while trying to match end of macro

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "k": true => });
}

View File

@ -0,0 +1,7 @@
error: no rules expected the token `=>`
--> tests/ui/unexpected_after_map_entry.rs:4:23
|
4 | json!({ "k": true => });
| ^^ no rules expected this token in macro call
|
= note: while trying to match end of macro

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ : true });
}

View File

@ -0,0 +1,7 @@
error: no rules expected the token `:`
--> tests/ui/unexpected_colon.rs:4:13
|
4 | json!({ : true });
| ^ no rules expected this token in macro call
|
= note: while trying to match end of macro

View File

@ -0,0 +1,5 @@
use serde_json::json;
fn main() {
json!({ "a" , "b": true });
}

View File

@ -0,0 +1,7 @@
error: no rules expected the token `,`
--> tests/ui/unexpected_comma.rs:4:17
|
4 | json!({ "a" , "b": true });
| ^ no rules expected this token in macro call
|
= note: while trying to match end of macro