Skip to content

Commit a62e426

Browse files
committed
rename cargo dev ra_setup to cargo dev ide_setup
1 parent 3d7a84c commit a62e426

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

clippy_dev/src/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn run(check: bool, verbose: bool) {
9090
},
9191
CliError::RaSetupActive => {
9292
eprintln!(
93-
"error: a local rustc repo is enabled as path dependency via `cargo dev ra_setup`.
93+
"error: a local rustc repo is enabled as path dependency via `cargo dev ide_setup`.
9494
Not formatting because that would format the local repo as well!
9595
Please revert the changes to Cargo.tomls first."
9696
);

clippy_dev/src/ra_setup.rs renamed to clippy_dev/src/ide_setup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn inject_deps_into_manifest(
5555
// do not inject deps if we have aleady done so
5656
if cargo_toml.contains("[target.'cfg(NOT_A_PLATFORM)'.dependencies]") {
5757
eprintln!(
58-
"cargo dev ra_setup: warning: deps already found inside {}, doing nothing.",
58+
"cargo dev ide_setup: warning: deps already found inside {}, doing nothing.",
5959
manifest_path
6060
);
6161
return Ok(());

clippy_dev/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use walkdir::WalkDir;
1212

1313
pub mod bless;
1414
pub mod fmt;
15+
pub mod ide_setup;
1516
pub mod new_lint;
16-
pub mod ra_setup;
1717
pub mod serve;
1818
pub mod stderr_length_check;
1919
pub mod update_lints;

clippy_dev/src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
22

33
use clap::{App, Arg, ArgMatches, SubCommand};
4-
use clippy_dev::{bless, fmt, new_lint, ra_setup, serve, stderr_length_check, update_lints};
4+
use clippy_dev::{bless, fmt, ide_setup, new_lint, serve, stderr_length_check, update_lints};
55
fn main() {
66
let matches = get_clap_config();
77

@@ -34,7 +34,7 @@ fn main() {
3434
("limit_stderr_length", _) => {
3535
stderr_length_check::check();
3636
},
37-
("ra_setup", Some(matches)) => ra_setup::run(matches.value_of("rustc-repo-path")),
37+
("ide_setup", Some(matches)) => ide_setup::run(matches.value_of("rustc-repo-path")),
3838
("serve", Some(matches)) => {
3939
let port = matches.value_of("port").unwrap().parse().unwrap();
4040
let lint = matches.value_of("lint");
@@ -138,8 +138,8 @@ fn get_clap_config<'a>() -> ArgMatches<'a> {
138138
.about("Ensures that stderr files do not grow longer than a certain amount of lines."),
139139
)
140140
.subcommand(
141-
SubCommand::with_name("ra_setup")
142-
.about("Alter dependencies so rust-analyzer can find rustc internals")
141+
SubCommand::with_name("ide_setup")
142+
.about("Alter dependencies so Intellij Rust can find rustc internals")
143143
.arg(
144144
Arg::with_name("rustc-repo-path")
145145
.long("repo-path")

doc/basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ cargo dev update_lints
8989
# create a new lint and register it
9090
cargo dev new_lint
9191
# (experimental) Setup Clippy to work with IntelliJ-Rust
92-
cargo dev ra_setup
92+
cargo dev ide_setup
9393
```
9494

9595
## lintcheck

0 commit comments

Comments
 (0)