Skip to content

Commit f7bd8af

Browse files
authored
Rollup merge of #108618 - KittyBorgX:master, r=Mark-Simulacrum
Rename `src/etc/vscode_settings.json` to `rust_analyzer_settings.json` Fixes #108614
2 parents c86ea5a + a90e7d4 commit f7bd8af

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: src/bootstrap/setup.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ pub enum Profile {
2424
None,
2525
}
2626

27-
/// A list of historical hashes of `src/etc/vscode_settings.json`.
27+
/// A list of historical hashes of `src/etc/rust_analyzer_settings.json`.
2828
/// New entries should be appended whenever this is updated so we can detect
2929
/// outdated vs. user-modified settings files.
3030
static SETTINGS_HASHES: &[&str] = &[
3131
"ea67e259dedf60d4429b6c349a564ffcd1563cf41c920a856d1f5b16b4701ac8",
3232
"56e7bf011c71c5d81e0bf42e84938111847a810eee69d906bba494ea90b51922",
3333
"af1b5efe196aed007577899db9dae15d6dbc923d6fa42fa0934e68617ba9bbe0",
3434
];
35-
static VSCODE_SETTINGS: &str = include_str!("../etc/vscode_settings.json");
35+
static RUST_ANALYZER_SETTINGS: &str = include_str!("../etc/rust_analyzer_settings.json");
3636

3737
impl Profile {
3838
fn include_path(&self, src_path: &Path) -> PathBuf {
@@ -489,7 +489,7 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
489489
Ok(())
490490
}
491491

492-
/// Sets up or displays `src/etc/vscode_settings.json`
492+
/// Sets up or displays `src/etc/rust_analyzer_settings.json`
493493
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
494494
pub struct Vscode;
495495

@@ -580,10 +580,10 @@ fn create_vscode_settings_maybe(config: &Config) -> io::Result<()> {
580580
}
581581
_ => "Created",
582582
};
583-
fs::write(&vscode_settings, &VSCODE_SETTINGS)?;
583+
fs::write(&vscode_settings, &RUST_ANALYZER_SETTINGS)?;
584584
println!("{verb} `.vscode/settings.json`");
585585
} else {
586-
println!("\n{VSCODE_SETTINGS}");
586+
println!("\n{RUST_ANALYZER_SETTINGS}");
587587
}
588588
Ok(())
589589
}

Diff for: src/bootstrap/setup/tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
use super::{SETTINGS_HASHES, VSCODE_SETTINGS};
1+
use super::{RUST_ANALYZER_SETTINGS, SETTINGS_HASHES};
22
use sha2::Digest;
33

44
#[test]
55
fn check_matching_settings_hash() {
66
let mut hasher = sha2::Sha256::new();
7-
hasher.update(&VSCODE_SETTINGS);
7+
hasher.update(&RUST_ANALYZER_SETTINGS);
88
let hash = hex::encode(hasher.finalize().as_slice());
99
assert_eq!(
1010
&hash,
1111
SETTINGS_HASHES.last().unwrap(),
12-
"Update `SETTINGS_HASHES` with the new hash of `src/etc/vscode_settings.json`"
12+
"Update `SETTINGS_HASHES` with the new hash of `src/etc/rust_analyzer_settings.json`"
1313
);
1414
}
File renamed without changes.

0 commit comments

Comments
 (0)