From 4fd8cfd6adc554752a63aed9ed71d44b372ec4dc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 23 Mar 2019 10:53:48 +0300 Subject: replace todo with fixme --- crates/ra_parser/src/grammar/items/consts.rs | 2 +- crates/ra_parser/src/grammar/items/nominal.rs | 2 +- crates/ra_parser/src/grammar/items/traits.rs | 2 +- crates/ra_parser/src/grammar/items/use_item.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_parser/src/grammar') diff --git a/crates/ra_parser/src/grammar/items/consts.rs b/crates/ra_parser/src/grammar/items/consts.rs index e6e6011c6..1f802246f 100644 --- a/crates/ra_parser/src/grammar/items/consts.rs +++ b/crates/ra_parser/src/grammar/items/consts.rs @@ -11,7 +11,7 @@ pub(super) fn const_def(p: &mut Parser, m: Marker) { fn const_or_static(p: &mut Parser, m: Marker, kw: SyntaxKind, def: SyntaxKind) { assert!(p.at(kw)); p.bump(); - p.eat(MUT_KW); // TODO: validator to forbid const mut + p.eat(MUT_KW); // FIXME: validator to forbid const mut name(p); types::ascription(p); if p.eat(EQ) { diff --git a/crates/ra_parser/src/grammar/items/nominal.rs b/crates/ra_parser/src/grammar/items/nominal.rs index a3579eebd..e93bd76b8 100644 --- a/crates/ra_parser/src/grammar/items/nominal.rs +++ b/crates/ra_parser/src/grammar/items/nominal.rs @@ -15,7 +15,7 @@ pub(super) fn struct_def(p: &mut Parser, m: Marker, kind: SyntaxKind) { } L_CURLY => named_field_def_list(p), _ => { - //TODO: special case `(` error message + //FIXME: special case `(` error message p.error("expected `;` or `{`"); } } diff --git a/crates/ra_parser/src/grammar/items/traits.rs b/crates/ra_parser/src/grammar/items/traits.rs index d5a8ccd98..f49615f6b 100644 --- a/crates/ra_parser/src/grammar/items/traits.rs +++ b/crates/ra_parser/src/grammar/items/traits.rs @@ -49,7 +49,7 @@ pub(super) fn impl_block(p: &mut Parser) { type_params::opt_type_param_list(p); } - // TODO: never type + // FIXME: never type // impl ! {} // test impl_block_neg diff --git a/crates/ra_parser/src/grammar/items/use_item.rs b/crates/ra_parser/src/grammar/items/use_item.rs index ea2f94604..908493789 100644 --- a/crates/ra_parser/src/grammar/items/use_item.rs +++ b/crates/ra_parser/src/grammar/items/use_item.rs @@ -21,7 +21,7 @@ fn use_tree(p: &mut Parser) { // This does not handle cases such as `use some::path::*` // N.B. in Rust 2015 `use *;` imports all from crate root // however in Rust 2018 `use *;` errors: ('cannot glob-import all possible crates') - // TODO: Add this error (if not out of scope) + // FIXME: Add this error (if not out of scope) // test use_star // use *; @@ -33,7 +33,7 @@ fn use_tree(p: &mut Parser) { // Parse `use ::*;`, which imports all from the crate root in Rust 2015 // This is invalid inside a use_tree_list, (e.g. `use some::path::{::*}`) // but still parses and errors later: ('crate root in paths can only be used in start position') - // TODO: Add this error (if not out of scope) + // FIXME: Add this error (if not out of scope) // In Rust 2018, it is always invalid (see above) p.bump(); p.bump(); -- cgit v1.2.3