Skip to content

Commit a359e3c

Browse files
committed
don't flatten proc macro output, let's see how it goes
1 parent b71c42d commit a359e3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_expand/src/derive_macro_expansion.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ pub(super) fn provide_derive_macro_expansion<'tcx>(
2929
let server = crate::proc_macro_server::Rustc::new(ecx);
3030
let res = match client.run(&strategy, server, input.clone(), proc_macro_backtrace) {
3131
// FIXME(pr-time): without flattened some (weird) tests fail, but no idea if it's correct/enough
32-
Ok(stream) => Ok(tcx.arena.alloc(stream.flattened()) as &TokenStream),
32+
// -> removed the flattened for now, gonna see what CI says.
33+
Ok(stream) => Ok(tcx.arena.alloc(stream) as &TokenStream),
3334
Err(e) => {
3435
ecx.dcx().emit_err({
3536
errors::ProcMacroDerivePanicked {

0 commit comments

Comments
 (0)