-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-macromacro expansionmacro expansionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
Hello, I came across this issue while tinkering with one of my own macros. It seems the use of a println!() in a derive macro causes it to happen:
#[proc_macro_derive(Hello)]
pub fn hello(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
println!("fail"); // This will cause the error
proc_macro::TokenStream::new()
}I'm using rustc 1.5.0 & RA v0.2.513
Originally posted by @pauldorehill in #7103 (comment)
Metadata
Metadata
Assignees
Labels
A-macromacro expansionmacro expansionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now