Skip to content

Commit c8d66ad

Browse files
akonradi-signalManishearth
authored andcommitted
Don't name the output of the const block
Don't name the output of the const block in which traits are implemented. This doesn't play well with Rust RFC 3373, and isn't necessary for correctness. Fixes #46
1 parent e500225 commit c8d66ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/expand.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ pub(crate) fn derive(input: &DeriveInput) -> Result<TokenStream> {
1919
}?;
2020

2121
let helpers = specialization();
22-
let dummy_const = format_ident!("_DERIVE_Display_FOR_{}", input.ident);
2322
Ok(quote! {
2423
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
25-
const #dummy_const: () = {
24+
const _: () = {
2625
#helpers
2726
#impls
2827
};

0 commit comments

Comments
 (0)