Skip to content

Commit a8956a3

Browse files
committed
config -> toolchain-file; override -> path-override
1 parent e223546 commit a8956a3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ impl ActiveReason {
109109
Self::Default => "default",
110110
Self::Environment => "env",
111111
Self::CommandLine => "cli",
112-
Self::OverrideDB(_) => "override",
113-
Self::ToolchainFile(_) => "config",
112+
Self::OverrideDB(_) => "path-override",
113+
Self::ToolchainFile(_) => "toolchain-file",
114114
}
115115
}
116116
}

tests/suite/cli_rustup.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,7 +3072,7 @@ env
30723072
}
30733073

30743074
#[tokio::test]
3075-
async fn rustup_toolchain_source_override() {
3075+
async fn rustup_toolchain_source_path_override() {
30763076
let cx = CliTestContext::new(Scenario::SimpleV2).await;
30773077
cx.config
30783078
.expect(["rustup", "override", "set", "nightly"])
@@ -3083,13 +3083,13 @@ async fn rustup_toolchain_source_override() {
30833083
.await
30843084
.with_stderr(snapbox::str![[r#"
30853085
...
3086-
override
3086+
path-override
30873087
30883088
"#]]);
30893089
}
30903090

30913091
#[tokio::test]
3092-
async fn rustup_toolchain_source_config() {
3092+
async fn rustup_toolchain_source_toolchain_file() {
30933093
let cx = CliTestContext::new(Scenario::SimpleV2).await;
30943094
let toolchain_file = cx.config.current_dir().join("rust-toolchain.toml");
30953095
raw::write_file(&toolchain_file, "[toolchain]\nchannel='nightly'").unwrap();
@@ -3098,7 +3098,7 @@ async fn rustup_toolchain_source_config() {
30983098
.await
30993099
.with_stderr(snapbox::str![[r#"
31003100
...
3101-
config
3101+
toolchain-file
31023102
31033103
"#]]);
31043104
}

0 commit comments

Comments
 (0)