pub fn error_to_tokens(error: syn::Error) -> proc_macro2::TokenStream {
		let error = error.to_compile_error();
		quote! {
			#error
			fn main() {
				panic!("#[show_image::main]: compilation should have failed, please report this bug");
			}
		}
	}
/// Convert a syn::Error into a compile error with a dummy main.
///
/// The dummy main prevents the compiler from complaining about a missing entry point, which is confusing noise.
/// We only want the compiler to show the real error.
Convert a syn::Error into a compile error with a dummy main.
The dummy main prevents the compiler from complaining about a missing entry point, which is confusing noise.
We only want the compiler to show the real error.
Convert a syn :: Error into a compile error with a dummy main . The dummy main prevents the compiler from complaining about a missing entry point which is confusing noise . We only want the compiler to show the real error .
pub fn error_to_tokens(error: syn::Error) -> proc_macro2::TokenStream {
		let error = error.to_compile_error();
		quote! {
			#error
			fn main() {
				panic!("#[show_image::main]: compilation should have failed, please report this bug");
			}
		}
	}
pub fn error_to_tokens ( error : syn :: Error ) -> proc_macro2 :: TokenStream { let error = error . to_compile_error ( ) ; quote ! { error fn main ( ) { panic ( " " ) } } }
Convert a syn::Error into a compile error with a dummy main.
Convert a syn :: Error into a compile error with a dummy main .
error
syn::Error