diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-05-30 12:39:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 12:39:19 +0900 |
| commit | 047b3bd4dfdddca6ed6bc2cf10d89143b8756129 (patch) | |
| tree | b0f5bcb75b60d1b38b0a0a22c9824a06968fc5ef /src/test | |
| parent | 875c6b281d5574f2bb05bd3cc8b99fe9192d37b6 (diff) | |
| parent | b802eebc67e92e100eaebe40c1eb4068c3b2fa2b (diff) | |
Rollup merge of #72724 - Aaron1011:revert-tokenstream-expand, r=petrochenkov
Revert recursive `TokenKind::Interpolated` expansion for now The crater run https://github.com/rust-lang/rust/issues/72622 revealed many root regressions, at least one of which is going to take some time to fix. For now, let's revert https://github.com/rust-lang/rust/pull/72388 to allow the 709 affected crates to continue building on the latest nightly.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/proc-macro/macro-rules-capture.rs | 18 | ||||
| -rw-r--r-- | src/test/ui/proc-macro/macro-rules-capture.stderr | 12 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/test/ui/proc-macro/macro-rules-capture.rs b/src/test/ui/proc-macro/macro-rules-capture.rs deleted file mode 100644 index 37436567d70..00000000000 --- a/src/test/ui/proc-macro/macro-rules-capture.rs +++ /dev/null @@ -1,18 +0,0 @@ -// aux-build: test-macros.rs - -extern crate test_macros; -use test_macros::recollect_attr; - -macro_rules! reemit { - ($name:ident => $($token:expr)*) => { - - #[recollect_attr] - pub fn $name() { - $($token)*; - } - } -} - -reemit! { foo => 45u32.into() } //~ ERROR type annotations - -fn main() {} diff --git a/src/test/ui/proc-macro/macro-rules-capture.stderr b/src/test/ui/proc-macro/macro-rules-capture.stderr deleted file mode 100644 index 6d512846ff7..00000000000 --- a/src/test/ui/proc-macro/macro-rules-capture.stderr +++ /dev/null @@ -1,12 +0,0 @@ -error[E0282]: type annotations needed - --> $DIR/macro-rules-capture.rs:16:24 - | -LL | reemit! { foo => 45u32.into() } - | ------^^^^-- - | | | - | | cannot infer type for type parameter `T` declared on the trait `Into` - | this method call resolves to `T` - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0282`. |
