| { | ||
| "git": { | ||
| "sha1": "63102a80094f7e3f55aa48c1f6076f740175d7e4" | ||
| "sha1": "ca72ba450ad4859c5a7557371560a022649b1b1e" | ||
| } | ||
| } |
+2
-2
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "paste" | ||
| version = "0.1.17" | ||
| version = "0.1.18" | ||
| authors = ["David Tolnay <dtolnay@gmail.com>"] | ||
@@ -26,3 +26,3 @@ description = "Macros for all your token pasting needs" | ||
| [dependencies.paste-impl] | ||
| version = "=0.1.17" | ||
| version = "=0.1.18" | ||
@@ -29,0 +29,0 @@ [dependencies.proc-macro-hack] |
+23
-0
@@ -376,2 +376,25 @@ mod test_basic { | ||
| mod test_type_in_fn_arg { | ||
| // https://github.com/dtolnay/paste/issues/38 | ||
| fn _jit_address(_node: ()) {} | ||
| macro_rules! jit_reexport { | ||
| ($fn:ident, $arg:ident : $typ:ty) => { | ||
| paste::item! { | ||
| pub fn $fn($arg: $typ) { | ||
| [<_jit_ $fn>]($arg); | ||
| } | ||
| } | ||
| }; | ||
| } | ||
| jit_reexport!(address, node: ()); | ||
| #[test] | ||
| fn test_type_in_fn_arg() { | ||
| let _ = address; | ||
| } | ||
| } | ||
| mod test_pat_in_expr_position { | ||
@@ -378,0 +401,0 @@ // https://github.com/xiph/rav1e/pull/2324/files |
Sorry, the diff of this file is not supported yet