Skip to content

Commit ff9d553

Browse files
Some FIXMEs were outdated:
* Done at line 243: "Add validation of `crate` keyword not appearing in the middle of the symbol path" * Already happened: "Remove validation of unterminated literals (it is already implemented in `tokenize()`)" * Happens in `unescape()`: "Add validation of character literal containing only a single char" * Missing: "raw string literals and raw byte string literals"
1 parent cd4ffc1 commit ff9d553

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ra_syntax/src/validation.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ fn rustc_unescape_error_to_string(err: unescape::EscapeError) -> &'static str {
8181

8282
pub(crate) fn validate(root: &SyntaxNode) -> Vec<SyntaxError> {
8383
// FIXME:
84-
// * Add validation of character literal containing only a single char
85-
// * Add validation of `crate` keyword not appearing in the middle of the symbol path
84+
// * Add unescape validation of raw string literals and raw byte string literals
8685
// * Add validation of doc comments are being attached to nodes
87-
// * Remove validation of unterminated literals (it is already implemented in `tokenize()`)
8886

8987
let mut errors = Vec::new();
9088
for node in root.descendants() {

0 commit comments

Comments
 (0)