Skip to content

Commit f6b5da7

Browse files
committed
Auto merge of rust-lang#140951 - compiler-errors:super-fmt, r=ytmimi
Do not remove `super` keyword from `super let` This is affecting a macro in the standard library: https://github.com/rust-lang/rust/blob/bc7512ee6309ee7e8cacf87b94aa6d1f550c9d99/library/core/src/pin.rs#L1945 I added an exception in 6f6a9a5, but I'd like to remove it eventually, so opening this in-tree to not block this on the next rustfmt sync. r? `@calebcartwright` or `@ytmimi`
2 parents 32d2385 + 26316b8 commit f6b5da7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/rustfmt/src/items.rs

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ impl Rewrite for ast::Local {
6363
return Err(RewriteError::SkipFormatting);
6464
}
6565

66+
// FIXME(super_let): Implement formatting
67+
if self.super_.is_some() {
68+
return Err(RewriteError::SkipFormatting);
69+
}
70+
6671
let attrs_str = self.attrs.rewrite_result(context, shape)?;
6772
let mut result = if attrs_str.is_empty() {
6873
"let ".to_owned()

0 commit comments

Comments
 (0)