commit | 134566df276271c68b2185964c8b5010a306271c | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Sat May 04 10:31:49 2024 +0000 |
committer | bors <bors@rust-lang.org> | Sat May 04 10:31:49 2024 +0000 |
tree | 10ab39ec3f20fea23108279a6863bc717dfe0a06 | |
parent | cd28cefdb50af6153832bb717d94b31e5a35357c [diff] | |
parent | 50d9b305595eb4c90415a746e4b7b0fd3bdcd32e [diff] |
Auto merge of #124345 - Urgau:compiletest-check-cfg, r=jieyouxu Enable `--check-cfg` by default in UI tests This PR enables-by-default `--check-cfg` in UI tests, now that it has become stable. To do so this PR does 2 main things: - it introduce the `no-auto-check-cfg` directive to `compiletest`, to prevent any `--check-cfg` args (only to be used for `--check-cfg` tests) - it updates the _remaining_[^1] UI tests by either: - allowing the lint when neither expecting the lint nor giving the check-cfg args make sense - give the appropriate check-cfg args - or expect the lint, when it useful [^1]: some preparation work was done in #123577 #123702 I highly recommend reviewing this PR commit-by-commit. r? `@jieyouxu`
rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.
https://rust-analyzer.github.io/manual.html#installation
If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, check the ./docs/dev folder.
If you want to use rust-analyzer's language server with your editor of choice, check the manual folder. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the corresponding sections of the manual.
For usage and troubleshooting requests, please use “IDEs and Editors” category of the Rust forum:
https://users.rust-lang.org/c/ide/14
For questions about development and implementation, join rust-analyzer working group on Zulip:
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.