diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-03-23 22:00:39 +0100 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2025-03-24 20:04:23 +0100 |
| commit | 848b0da34fa20d0ff5d12d1d4f506affc765534b (patch) | |
| tree | fed3f6166c6cb5d868d3efe8cb7bdb29f3306872 /src/tools/rustfmt | |
| parent | 90f5eab952728ac6edcf529a171f7de5c25e5d49 (diff) | |
| download | rust-848b0da34fa20d0ff5d12d1d4f506affc765534b.tar.gz rust-848b0da34fa20d0ff5d12d1d4f506affc765534b.zip | |
Remove fields that are dead since the removal of type ascription syntax
Since `{ ident: ident }` is a parse error, these fields are dead.
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/closures.rs | 1 | ||||
| -rw-r--r-- | src/tools/rustfmt/src/macros.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/tools/rustfmt/src/closures.rs b/src/tools/rustfmt/src/closures.rs index a37b47e3bc9..61e148cdf18 100644 --- a/src/tools/rustfmt/src/closures.rs +++ b/src/tools/rustfmt/src/closures.rs @@ -176,7 +176,6 @@ fn rewrite_closure_with_block( .first() .map(|attr| attr.span.to(body.span)) .unwrap_or(body.span), - could_be_bare_literal: false, }; let block = crate::expr::rewrite_block_with_visitor( context, diff --git a/src/tools/rustfmt/src/macros.rs b/src/tools/rustfmt/src/macros.rs index 664c90b991a..e239ff47c04 100644 --- a/src/tools/rustfmt/src/macros.rs +++ b/src/tools/rustfmt/src/macros.rs @@ -423,7 +423,6 @@ fn rewrite_empty_macro_def_body( rules: ast::BlockCheckMode::Default, span, tokens: None, - could_be_bare_literal: false, }; block.rewrite_result(context, shape) } |
