-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to emit compiler warnings when using 'rustc --parse-only' #3808
Comments
|
Closing because this isn't really feasible (linting comes after many other passes that get skipped with |
can we get a recommendation from one of the devs as to what arguments we should use if we are checking the syntax of a file for correctness? For error and warning highlighting. |
@Ghoughpteighbteau I'm guessing that since the lints use much info from the analysis passes, you still need those, so Thus I suspect |
per rust-lang/rust#3808 Currently `rustc --parse-only` only catches syntax errors. `--no-trans` ensures the code will compile. Unfortunately, this is slow. But, at the moment parse-only doesn't do much. Syntastic for vim is using --no-trans as of a39b397e6ae3b32d2a0497d0f4ddfec0479ad2bb, for example.
per rust-lang/rust#3808 Currently `rustc --parse-only` only catches syntax errors. `--no-trans` ensures the code will compile. Unfortunately, this is slow. But, at the moment parse-only doesn't do much. Syntastic for vim is using --no-trans as of a39b397e6ae3b32d2a0497d0f4ddfec0479ad2bb, for example. Also switched rustc invocation to `source-inplace` since it looks in the source direcory for modules
Switch to --no-trans per rust-lang/rust#3808 Switch source to source-inplace since rustc looks for modules in the source directory. Add a pattern for rustc warnings and add a unit test. Update the rust syntax error unit test.
Neither option works for me.
|
@Hi-Angel you probably want to use |
Renamed variable and fixed comments referring to renamed FileDescriptor Fixes rust-lang#3808, does not change any functionality
Right now, when using rustc to only parse an input file, only errors are displayed. There should be an option to also display warnings (and notes) without having to fully compile the program.
Trying again with a recent build of rustc, it appears that not even errors are displayed with rustc 0.5
The text was updated successfully, but these errors were encountered: