Commit 0384f9c3 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Also produce the wrapped token stream after the `compile_error!`

Otherwise we get a ton of unrelated error messages because we effectively
removed the tokens in the first place.
parent bdca8bc20819
......@@ -56,6 +56,7 @@ fn parse_function(item: syn::Item) -> Result<syn::ItemFn, TokenStream> {
i => Err(quote_spanned! {
i.span() =>
compile_error!("`#[timed]` can only be used on functions");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment