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
{{ message }}
Repository navigation
Redesign the libsyntax and librustc APIs to make them more amenable to tooling #643
I hope they can also innovate in the area of code navigation and code completion as well. It's not perfect in the C++ IDE world, and if you use something like Emacs of Vim it's even worse.
With the work in Rustdoc, and integration with LLVM, and the fact that Rust is orders of magnitude easier to parse than C++, IDE support shouldn't be a problem. What does need to be implemented is incremental compilation.
To get properly useful semantic code completion, libsyntax and librustc would need to be dramatically overhauled to get partial parsing working and to make it easier/possible to extract information like "what's the type of this variable" and "what methods can I call on this [mutable] variable."
There's long been sentiment that the APIs provided by libsyntax and librustc are kinda okay for tooling, but not great.
For another anecdote, this past weekend at MozSummit someone asked whether it would be possible to add Rust support to DXR (http://dxr.mozilla.org/), to which Graydon replied that it would be difficult (relative to clang, at least).
This is obviously sort of a nebulous "figure out the API" bug, but it's important enough that we'll have to start thinking about it sometime. Without a good tooling story, we won't be able to compete with C++.
Activity
Centril commentedon Oct 7, 2018
Closing in favor of #643.
glaebhoerl commentedon Oct 8, 2018
@Centril This is #643 :)
(I think only 3 or so instances of this bug across over a hundred issues closed is a pretty good rate, don't worry about it:)
Centril commentedon Oct 8, 2018
@glaebhoerl Apparently I needed a lot of sleep yesterday... :D
The proper link is #2256 ;)