Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
8
third-party/vendor/proc-macro-hack/tests/ui/private.rs
vendored
Normal file
8
third-party/vendor/proc-macro-hack/tests/ui/private.rs
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use proc_macro_hack::proc_macro_hack;
|
||||
|
||||
#[proc_macro_hack]
|
||||
fn my_macro(input: TokenStream) -> TokenStream {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
5
third-party/vendor/proc-macro-hack/tests/ui/private.stderr
vendored
Normal file
5
third-party/vendor/proc-macro-hack/tests/ui/private.stderr
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
error: functions tagged with `#[proc_macro_hack]` must be `pub`
|
||||
--> tests/ui/private.rs:4:1
|
||||
|
|
||||
4 | fn my_macro(input: TokenStream) -> TokenStream {
|
||||
| ^^
|
||||
8
third-party/vendor/proc-macro-hack/tests/ui/unexpected-arg.rs
vendored
Normal file
8
third-party/vendor/proc-macro-hack/tests/ui/unexpected-arg.rs
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use proc_macro_hack::proc_macro_hack;
|
||||
|
||||
#[proc_macro_hack(fake_call_site)]
|
||||
pub fn my_macro(input: TokenStream) -> TokenStream {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
5
third-party/vendor/proc-macro-hack/tests/ui/unexpected-arg.stderr
vendored
Normal file
5
third-party/vendor/proc-macro-hack/tests/ui/unexpected-arg.stderr
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
error: unexpected argument to proc_macro_hack macro implementation; args are only accepted on the macro declaration (the `pub use`)
|
||||
--> tests/ui/unexpected-arg.rs:3:19
|
||||
|
|
||||
3 | #[proc_macro_hack(fake_call_site)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
6
third-party/vendor/proc-macro-hack/tests/ui/unexpected.rs
vendored
Normal file
6
third-party/vendor/proc-macro-hack/tests/ui/unexpected.rs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
use proc_macro_hack::proc_macro_hack;
|
||||
|
||||
#[proc_macro_hack]
|
||||
pub struct What;
|
||||
|
||||
fn main() {}
|
||||
5
third-party/vendor/proc-macro-hack/tests/ui/unexpected.stderr
vendored
Normal file
5
third-party/vendor/proc-macro-hack/tests/ui/unexpected.stderr
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
error: unexpected input to #[proc_macro_hack]
|
||||
--> tests/ui/unexpected.rs:4:5
|
||||
|
|
||||
4 | pub struct What;
|
||||
| ^^^^^^
|
||||
6
third-party/vendor/proc-macro-hack/tests/ui/unknown-arg.rs
vendored
Normal file
6
third-party/vendor/proc-macro-hack/tests/ui/unknown-arg.rs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
use proc_macro_hack::proc_macro_hack;
|
||||
|
||||
#[proc_macro_hack(fake_call_site, support_nexted)]
|
||||
pub use demo::some_macro;
|
||||
|
||||
fn main() {}
|
||||
5
third-party/vendor/proc-macro-hack/tests/ui/unknown-arg.stderr
vendored
Normal file
5
third-party/vendor/proc-macro-hack/tests/ui/unknown-arg.stderr
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
error: expected one of: `support_nested`, `internal_macro_calls`, `fake_call_site`, `only_hack_old_rustc`
|
||||
--> tests/ui/unknown-arg.rs:3:35
|
||||
|
|
||||
3 | #[proc_macro_hack(fake_call_site, support_nexted)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
Loading…
Add table
Add a link
Reference in a new issue