We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0345b89 commit 936e9b8Copy full SHA for 936e9b8
1 file changed
compiler/rustc_ast_pretty/src/pprust/state/item.rs
@@ -489,7 +489,7 @@ impl<'a> State<'a> {
489
match &impl_restriction.kind {
490
ast::RestrictionKind::Restricted { path, shorthand, .. } => {
491
let path = Self::to_string(|s| s.print_path(path, false, 0));
492
- if *shorthand && (path == "crate" || path == "self" || path == "super") {
+ if *shorthand {
493
self.word_nbsp(format!("impl({path})"))
494
} else {
495
self.word_nbsp(format!("impl(in {path})"))
0 commit comments