Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f711b6be7048192710b5af4229f12f1cacf0b19e
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6670134a3d4634d4dcfb5ec1ce75d2f8f5f77e99
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 compiler/rustc_parse/src/parser/item.rs
4 changes: 3 additions & 1 deletion compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
@@ -1776,7 +1776,9 @@ impl<'a> Parser<'a> {

// Try to recover extra trailing angle brackets
let mut recovered = false;
if let FieldTy::Ty(ty) = &a_var.ty && let TyKind::Path(_, Path { segments, .. }) = &ty.kind {
if let FieldTy::Ty(ty) = &a_var.ty
&& let TyKind::Path(_, Path { segments, .. }) = &ty.kind
{
if let Some(last_segment) = segments.last() {
recovered = self.check_trailing_angle_brackets(
last_segment,