about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
diff options
context:
space:
mode:
authorChristian Poveda <git@pvdrz.com>2022-04-25 23:26:52 +0200
committerChristian Poveda <git@pvdrz.com>2022-04-25 23:26:52 +0200
commit530f4dce291371e0b1d567b47a1888aa8c806410 (patch)
tree6b812eb02160bd87d1691879cff8a8ba11b434d9 /compiler/rustc_parse/src/parser/diagnostics.rs
parent5874b09806e40e4791ab8d50d956fedcca9df91d (diff)
downloadrust-530f4dce291371e0b1d567b47a1888aa8c806410.tar.gz
rust-530f4dce291371e0b1d567b47a1888aa8c806410.zip
remove old code
Diffstat (limited to 'compiler/rustc_parse/src/parser/diagnostics.rs')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index d270f3606d7..23c4d67ebd7 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -1185,15 +1185,6 @@ impl<'a> Parser<'a> {
                 sum_with_parens: format!("({})", pprust::ty_to_string(&ty)),
                 span: ty.span,
             });
-            // let sum_with_parens = format!("({})", pprust::ty_to_string(&ty));
-            // self.struct_span_err(ty.span, "ambiguous `+` in a type")
-            //     .span_suggestion(
-            //         ty.span,
-            //         "use parentheses to disambiguate",
-            //         sum_with_parens,
-            //         Applicability::MachineApplicable,
-            //     )
-            //     .emit();
         }
     }