You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anything like this already in place? I am asking because the issue is old and sometimes changes are introduced without referring to the issue.
Activity
aochagavia commentedon Oct 25, 2018
Is there anything like this already in place? I am asking because the issue is old and sometimes changes are introduced without referring to the issue.
matklad commentedon Oct 30, 2018
Nothing is done yet, though we still need to implement this API.
We have
errormethod here, which returns aVec<SyntaxError>precisely to allow to compute errors on the fly:https://github.com/rust-analyzer/rust-analyzer/blob/bc4de7128f474f75a9eff6591923657025099b74/crates/ra_syntax/src/lib.rs#L98
So, what we need is to add a private
fn validate(file: &File) -> Vec<SyntaxError>method, and append its results to the errors from the parser.Here is the subset of things which should be checked by validate:
/*comments have a closing*/Merge #184
aochagavia commentedon Nov 9, 2018
Superseded by #223
Merge #222
Auto merge of #118488 - andjo403:remove_deadlock, r=SparrowLii
Auto merge of #118488 - andjo403:remove_deadlock, r=SparrowLii
Merge rust-lang#27
Merge pull request rust-lang#27 from CAD97/ci-docs