Skip to content

Commit 55dd216

Browse files
committed
drop commented code and s/todo/fixme
1 parent 19f4905 commit 55dd216

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

compiler/rustc_parse/src/errors.rs

-9
Original file line numberDiff line numberDiff 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)]
895886
pub(crate) enum ExpectedIdentifierFound {
896887
#[label(parser_expected_identifier_found_reserved_identifier)]

compiler/rustc_parse/src/parser/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)