]> git.lizzy.rs Git - rust.git/commitdiff
Some FIXMEs were outdated:
authorJulian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com>
Sun, 24 May 2020 11:17:16 +0000 (13:17 +0200)
committerJulian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com>
Sun, 24 May 2020 11:17:16 +0000 (13:17 +0200)
* 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"

crates/ra_syntax/src/validation.rs

index 436ab033dc8b0fb2a4f1f09ca61068ee24579250..fdec48fb0b88c33469114fd9e855a89e5ba49a06 100644 (file)
@@ -81,10 +81,8 @@ fn rustc_unescape_error_to_string(err: unescape::EscapeError) -> &'static str {
 
 pub(crate) fn validate(root: &SyntaxNode) -> Vec<SyntaxError> {
     // FIXME:
-    // * Add validation of character literal containing only a single char
-    // * Add validation of `crate` keyword not appearing in the middle of the symbol path
+    // * Add unescape validation of raw string literals and raw byte string literals
     // * Add validation of doc comments are being attached to nodes
-    // * Remove validation of unterminated literals (it is already implemented in `tokenize()`)
 
     let mut errors = Vec::new();
     for node in root.descendants() {