Yeah, sorry for derailing the thread quite a bit
That said, āIDE supportā can make edit-compile cycle much faster by removing compile part altogether in some cases.
Exactly! Just to make sure, my point wasnāt āwe need a separate parser for IDEā (I mostly was answering a question by @dhardy if they have to be the same). Ideally, IDE and compiler should use the same parser, which is super fast, incremental, aggressively recovers from errors and provides superb error messages.
That said, given that somebody tried to push libsyntax to crates.io and failed, and that recently rustfmt moved in-tree because it was easier than moving libsyntax out, I fear that the best way forward is to design a fresh syntax tree and a parser (syntax tree data structure itself being massively more important then the actual parser code) from the start, use it in RLS/rustfmt/clippy, and, if successful, move rustc over to it.