Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
@@ -0,0 +1,10 @@
#[test]
fn main() {
let t = trybuild::TestCases::new();
#[cfg(not(nightly_diagnostics))]
t.compile_fail("tests/stable/*.rs");
#[cfg(nightly_diagnostics)]
t.compile_fail("tests/nightly/*.rs");
}
@@ -0,0 +1,54 @@
use diagnostic_example::{diagnostic_item, diagnostic_expr};
fn main() {
diagnostic_item! {
error: just an item error,
_note: see an item,
help: I can help with that,
}
diagnostic_expr! {
error: just an expression error item context,
_note: see an exp,
_warning: kind of weird,
help: I can help with that,
}
let x = diagnostic_expr! {
error: just an expression error expr content,
_warning: oh no,
};
}
diagnostic_item! {
error: this is an item error message,
}
diagnostic_item! {
error: this is an error message,
_note: but it has a note,
}
diagnostic_item! {
error: hello,
warning: just wanted to warn you,
note: just jotting things down,
_help: please help on that note,
_note: notes on notes,
}
diagnostic_item! {
warning: hello not found,
_note: just a note to say hi,
_help: its a good idea to say hello,
}
diagnostic_item! {
hello: hello,
}
diagnostic_item! {
help: this is standalone help,
_note: but we add things to it,
_help: like more help,
}
@@ -0,0 +1,94 @@
error: just an item error
--> $DIR/errors.rs:5:16
|
5 | error: just an item error,
| ^^^^^^^^^^^^^^^^^^
|
= note: see an item
help: I can help with that
--> $DIR/errors.rs:7:15
|
7 | help: I can help with that,
| ^^^^^^^^^^^^^^^^^^^^
error: just an expression error item context
--> $DIR/errors.rs:11:16
|
11 | error: just an expression error item context,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see an exp
= warning: kind of weird
help: I can help with that
--> $DIR/errors.rs:14:15
|
14 | help: I can help with that,
| ^^^^^^^^^^^^^^^^^^^^
error: just an expression error expr content
--> $DIR/errors.rs:18:16
|
18 | error: just an expression error expr content,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: oh no
error: this is an item error message
--> $DIR/errors.rs:24:12
|
24 | error: this is an item error message,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: this is an error message
--> $DIR/errors.rs:28:12
|
28 | error: this is an error message,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: but it has a note
error: hello
--> $DIR/errors.rs:33:12
|
33 | error: hello,
| ^^^^^
|
warning: just wanted to warn you
--> $DIR/errors.rs:34:14
|
34 | warning: just wanted to warn you,
| ^^^^^^^^^^^^^^^^^^^^^^^
note: just jotting things down
--> $DIR/errors.rs:35:11
|
35 | note: just jotting things down,
| ^^^^^^^^^^^^^^^^^^^^^^^^
= help: please help on that note
= note: notes on notes
warning: hello not found
--> $DIR/errors.rs:41:14
|
41 | warning: hello not found,
| ^^^^^^^^^^^^^^^
|
= note: just a note to say hi
= help: its a good idea to say hello
error: unknown diagnostic kind
--> $DIR/errors.rs:47:5
|
47 | hello: hello,
| ^^^^^
|
= help: expected one of: 'error', 'warning', 'note', 'help'
= note: or their _ versions
help: this is standalone help
--> $DIR/errors.rs:51:11
|
51 | help: this is standalone help,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: but we add things to it
= help: like more help
@@ -0,0 +1,54 @@
use diagnostic_example::{diagnostic_item, diagnostic_expr};
fn main() {
diagnostic_item! {
error: just an item error,
_note: see an item,
help: I can help with that,
}
diagnostic_expr! {
error: just an expression error item context,
_note: see an exp,
_warning: kind of weird,
help: I can help with that,
}
let x = diagnostic_expr! {
error: just an expression error expr content,
_warning: oh no,
};
}
diagnostic_item! {
error: this is an item error message,
}
diagnostic_item! {
error: this is an error message,
_note: but it has a note,
}
diagnostic_item! {
error: hello,
warning: just wanted to warn you,
note: just jotting things down,
_help: please help on that note,
_note: notes on notes,
}
diagnostic_item! {
warning: hello not found,
_note: just a note to say hi,
_help: its a good idea to say hello,
}
diagnostic_item! {
hello: hello,
}
diagnostic_item! {
help: this is standalone help,
_note: but we add things to it,
_help: like more help,
}
@@ -0,0 +1,90 @@
error: just an item error
= note: see an item
--> tests/stable/errors.rs:5:16
|
5 | error: just an item error,
| ^^^^
error: [help] I can help with that
--> tests/stable/errors.rs:7:15
|
7 | help: I can help with that,
| ^
error: just an expression error item context
= note: see an exp
= warning: kind of weird
--> tests/stable/errors.rs:11:16
|
11 | error: just an expression error item context,
| ^^^^
error: [help] I can help with that
--> tests/stable/errors.rs:14:15
|
14 | help: I can help with that,
| ^
error: just an expression error expr content
= warning: oh no
--> tests/stable/errors.rs:18:16
|
18 | error: just an expression error expr content,
| ^^^^
error: this is an item error message
--> tests/stable/errors.rs:24:12
|
24 | error: this is an item error message,
| ^^^^
error: this is an error message
= note: but it has a note
--> tests/stable/errors.rs:28:12
|
28 | error: this is an error message,
| ^^^^
error: hello
--> tests/stable/errors.rs:33:12
|
33 | error: hello,
| ^^^^^
error: [warning] just wanted to warn you
--> tests/stable/errors.rs:34:14
|
34 | warning: just wanted to warn you,
| ^^^^
error: [note] just jotting things down
= help: please help on that note
= note: notes on notes
--> tests/stable/errors.rs:35:11
|
35 | note: just jotting things down,
| ^^^^
error: [warning] hello not found
= note: just a note to say hi
= help: its a good idea to say hello
--> tests/stable/errors.rs:41:14
|
41 | warning: hello not found,
| ^^^^^
error: unknown diagnostic kind
= help: expected one of: 'error', 'warning', 'note', 'help'
= note: or their _ versions
--> tests/stable/errors.rs:47:5
|
47 | hello: hello,
| ^^^^^
error: [help] this is standalone help
= note: but we add things to it
= help: like more help
--> tests/stable/errors.rs:51:11
|
51 | help: this is standalone help,
| ^^^^