mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Fix rustc --unpretty=expanded emit of [const] [unsafe] impl Trait for
This commit is contained in:
@@ -344,9 +344,9 @@ impl<'a> State<'a> {
|
||||
let ast::TraitImplHeader { defaultness, safety, polarity, ref trait_ref } =
|
||||
*of_trait;
|
||||
self.print_defaultness(defaultness);
|
||||
self.print_constness(*constness);
|
||||
self.print_safety(safety);
|
||||
impl_generics(self);
|
||||
self.print_constness(*constness);
|
||||
if let ast::ImplPolarity::Negative(_) = polarity {
|
||||
self.word("!");
|
||||
}
|
||||
|
||||
@@ -449,7 +449,7 @@ mod items {
|
||||
impl () {}
|
||||
impl<T> () {}
|
||||
impl Default for () {}
|
||||
impl<T> const Default for () {}
|
||||
const impl<T> Default for () {}
|
||||
}
|
||||
/// ItemKind::MacCall
|
||||
mod item_mac_call { }
|
||||
|
||||
Reference in New Issue
Block a user