Releases: dtolnay/syn
Releases · dtolnay/syn
0.8.7
- Add
Generics::split_for_impl
which simplifies the handling of complex generic type signatures in a trait impl.
let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
quote! {
impl #impl_generics MyTrait for #name #ty_generics #where_clause {
// ...
}
}
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
- Fix a literal "///" appearing at the beginning of generated docstrings: rust-lang/rust#35900 (comment).
0.8.1
- Workaround for a compiler bug when building in release mode with rustc 1.12.0. Versions before and after 1.12.0 were not affected. rust-lang/rust#36875
0.8.0
This release bumps the quote
dependency to 0.2 which changes the handling of primitive integer and floating point types to match the behavior of quasi
.
let int: u64 = 100;
quote!(#int)
In 0.1 this would quote as "100"
. In 0.2 it quotes as "100u64"
. Similar for i8
, i16
, i32
, i64
, isize
, u8
, u16
, u32
, usize
, f32
, f64
.