diff options
| author | Christian Poveda <git@pvdrz.com> | 2022-04-25 23:26:52 +0200 |
|---|---|---|
| committer | Christian Poveda <git@pvdrz.com> | 2022-04-25 23:26:52 +0200 |
| commit | 530f4dce291371e0b1d567b47a1888aa8c806410 (patch) | |
| tree | 6b812eb02160bd87d1691879cff8a8ba11b434d9 /compiler/rustc_parse/src/parser/diagnostics.rs | |
| parent | 5874b09806e40e4791ab8d50d956fedcca9df91d (diff) | |
| download | rust-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.rs | 9 |
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(); } } |
