File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -882,15 +882,6 @@ pub(crate) struct SuggRemoveComma {
882882 pub span : Span ,
883883}
884884
885- //TODO: SHREYS - should this be help, or a suggestion?
886- // #[derive(Subdiagnostic)]
887- // pub(crate) struct SuggMisplacedGeneric {
888- // pub snippet: String,
889- // #[suggestion(code = "<{snippet}>")]
890- // #[primary_span]
891- // pub span: Span,
892- // }
893-
894885#[ derive( Subdiagnostic ) ]
895886pub ( crate ) enum ExpectedIdentifierFound {
896887 #[ label( parser_expected_identifier_found_reserved_identifier) ]
Original file line number Diff line number Diff line change @@ -341,8 +341,8 @@ impl<'a> Parser<'a> {
341341 // at this point, token should be Ident with the fn name
342342
343343 // FIXME: shreys the span should be the span of where the gneeric SHOULD go.
344- // TODO : shreys what does this look like with invalid generic
345- // TODO : shreys - what to do if no snippet? probably just HELP not suggestion
344+ // FIXME : shreys what does this look like with invalid generic
345+ // FIXME : shreys - what to do if no snippet? probably just HELP not suggestion
346346
347347 let snippet = match self . sess . source_map ( ) . span_to_snippet ( generic. span ) {
348348 Ok ( snippet) => snippet,
You can’t perform that action at this time.
0 commit comments