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.
This commit is contained in:
Yuki Okushi 2020-05-30 12:39:19 +09:00 committed by GitHub
commit 047b3bd4df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 185 additions and 240 deletions

View file

@ -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() {}

View file

@ -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`.