Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/rustc_ast_pretty/src/pprust/state/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("!");
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unpretty/exhaustive.expanded.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
Expand Down
Loading