diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-12 15:30:48 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-12 15:30:48 +0000 |
| commit | 26316b86bce966336f2219305efbeb5f4e00a61e (patch) | |
| tree | ef3925caeef71119333fec2d46d946008e3d1e39 /src | |
| parent | da1e442ebde8d527f3872c0cac5b371ff6ea0cc7 (diff) | |
| download | rust-26316b86bce966336f2219305efbeb5f4e00a61e.tar.gz rust-26316b86bce966336f2219305efbeb5f4e00a61e.zip | |
Do not remove super keyword from super-let
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rustfmt/src/items.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs index 5c3be769f9e..e79b7803c60 100644 --- a/src/tools/rustfmt/src/items.rs +++ b/src/tools/rustfmt/src/items.rs @@ -63,6 +63,11 @@ impl Rewrite for ast::Local { return Err(RewriteError::SkipFormatting); } + // FIXME(super_let): Implement formatting + if self.super_.is_some() { + return Err(RewriteError::SkipFormatting); + } + let attrs_str = self.attrs.rewrite_result(context, shape)?; let mut result = if attrs_str.is_empty() { "let ".to_owned() |
