diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-16 22:21:47 -0400 |
|---|---|---|
| committer | Caleb Cartwright <caleb.cartwright@outlook.com> | 2024-06-22 15:41:51 -0500 |
| commit | 8b36bc00a8b44487d0fafeff6041c138f2025835 (patch) | |
| tree | e69813f98399a5ed050de8b133781689e27a6b1c /src | |
| parent | ebce05434703268c292520cc385568019c5ec353 (diff) | |
| download | rust-8b36bc00a8b44487d0fafeff6041c138f2025835.tar.gz rust-8b36bc00a8b44487d0fafeff6041c138f2025835.zip | |
Fix rustfmt
Diffstat (limited to 'src')
| -rw-r--r-- | src/types.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/types.rs b/src/types.rs index 711c0c09e20..c12f271bc5d 100644 --- a/src/types.rs +++ b/src/types.rs @@ -849,11 +849,7 @@ impl Rewrite for ast::Ty { rewrite_macro(mac, None, context, shape, MacroPosition::Expression) } ast::TyKind::ImplicitSelf => Some(String::from("")), - ast::TyKind::ImplTrait(_, ref it, ref captures) => { - // FIXME(precise_capturing): Implement formatting. - if captures.is_some() { - return None; - } + ast::TyKind::ImplTrait(_, ref it) => { // Empty trait is not a parser error. if it.is_empty() { return Some("impl".to_owned()); @@ -1120,8 +1116,7 @@ fn join_bounds_inner( pub(crate) fn opaque_ty(ty: &Option<ptr::P<ast::Ty>>) -> Option<&ast::GenericBounds> { ty.as_ref().and_then(|t| match &t.kind { - // FIXME(precise_capturing): Implement support here - ast::TyKind::ImplTrait(_, bounds, _) => Some(bounds), + ast::TyKind::ImplTrait(_, bounds) => Some(bounds), _ => None, }) } |
