rename cargo dev ra_setup to cargo dev ide_setup

This commit is contained in:
Matthias Krüger 2021-03-17 10:12:20 +01:00
parent 3d7a84c8bb
commit a62e4263d5
5 changed files with 8 additions and 8 deletions

View File

@ -90,7 +90,7 @@ fn output_err(err: CliError) {
}, },
CliError::RaSetupActive => { CliError::RaSetupActive => {
eprintln!( eprintln!(
"error: a local rustc repo is enabled as path dependency via `cargo dev ra_setup`. "error: a local rustc repo is enabled as path dependency via `cargo dev ide_setup`.
Not formatting because that would format the local repo as well! Not formatting because that would format the local repo as well!
Please revert the changes to Cargo.tomls first." Please revert the changes to Cargo.tomls first."
); );

View File

@ -55,7 +55,7 @@ fn inject_deps_into_manifest(
// do not inject deps if we have aleady done so // do not inject deps if we have aleady done so
if cargo_toml.contains("[target.'cfg(NOT_A_PLATFORM)'.dependencies]") { if cargo_toml.contains("[target.'cfg(NOT_A_PLATFORM)'.dependencies]") {
eprintln!( eprintln!(
"cargo dev ra_setup: warning: deps already found inside {}, doing nothing.", "cargo dev ide_setup: warning: deps already found inside {}, doing nothing.",
manifest_path manifest_path
); );
return Ok(()); return Ok(());

View File

@ -12,8 +12,8 @@
pub mod bless; pub mod bless;
pub mod fmt; pub mod fmt;
pub mod ide_setup;
pub mod new_lint; pub mod new_lint;
pub mod ra_setup;
pub mod serve; pub mod serve;
pub mod stderr_length_check; pub mod stderr_length_check;
pub mod update_lints; pub mod update_lints;

View File

@ -1,7 +1,7 @@
#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![cfg_attr(feature = "deny-warnings", deny(warnings))]
use clap::{App, Arg, ArgMatches, SubCommand}; use clap::{App, Arg, ArgMatches, SubCommand};
use clippy_dev::{bless, fmt, new_lint, ra_setup, serve, stderr_length_check, update_lints}; use clippy_dev::{bless, fmt, ide_setup, new_lint, serve, stderr_length_check, update_lints};
fn main() { fn main() {
let matches = get_clap_config(); let matches = get_clap_config();
@ -34,7 +34,7 @@ fn main() {
("limit_stderr_length", _) => { ("limit_stderr_length", _) => {
stderr_length_check::check(); stderr_length_check::check();
}, },
("ra_setup", Some(matches)) => ra_setup::run(matches.value_of("rustc-repo-path")), ("ide_setup", Some(matches)) => ide_setup::run(matches.value_of("rustc-repo-path")),
("serve", Some(matches)) => { ("serve", Some(matches)) => {
let port = matches.value_of("port").unwrap().parse().unwrap(); let port = matches.value_of("port").unwrap().parse().unwrap();
let lint = matches.value_of("lint"); let lint = matches.value_of("lint");
@ -138,8 +138,8 @@ fn get_clap_config<'a>() -> ArgMatches<'a> {
.about("Ensures that stderr files do not grow longer than a certain amount of lines."), .about("Ensures that stderr files do not grow longer than a certain amount of lines."),
) )
.subcommand( .subcommand(
SubCommand::with_name("ra_setup") SubCommand::with_name("ide_setup")
.about("Alter dependencies so rust-analyzer can find rustc internals") .about("Alter dependencies so Intellij Rust can find rustc internals")
.arg( .arg(
Arg::with_name("rustc-repo-path") Arg::with_name("rustc-repo-path")
.long("repo-path") .long("repo-path")

View File

@ -89,7 +89,7 @@ cargo dev update_lints
# create a new lint and register it # create a new lint and register it
cargo dev new_lint cargo dev new_lint
# (experimental) Setup Clippy to work with IntelliJ-Rust # (experimental) Setup Clippy to work with IntelliJ-Rust
cargo dev ra_setup cargo dev ide_setup
``` ```
## lintcheck ## lintcheck