chore: Address most typos

This commit is contained in:
Scott Schafer 2025-04-25 07:58:32 -06:00
parent 37b85ad987
commit 022dc5b381
No known key found for this signature in database
34 changed files with 54 additions and 56 deletions

View File

@ -7,4 +7,4 @@ contact_links:
url: https://internals.rust-lang.org/c/tools-and-infrastructure/cargo url: https://internals.rust-lang.org/c/tools-and-infrastructure/cargo
about: > about: >
Need more discussions with your next big idea? Need more discussions with your next big idea?
Reach out the coummunity on the internals forum. Reach out the community on the internals forum.

View File

@ -64,7 +64,7 @@ use time::format_description::well_known::Rfc3339;
use time::{Duration, OffsetDateTime}; use time::{Duration, OffsetDateTime};
use url::Url; use url::Url;
/// Path to the local index for psuedo-crates.io. /// Path to the local index for pseudo-crates.io.
/// ///
/// This is a Git repo /// This is a Git repo
/// initialized with a `config.json` file pointing to `dl_path` for downloads /// initialized with a `config.json` file pointing to `dl_path` for downloads
@ -622,7 +622,7 @@ struct PackageFile {
const DEFAULT_MODE: u32 = 0o644; const DEFAULT_MODE: u32 = 0o644;
/// Setup a local psuedo-crates.io [`TestRegistry`] /// Setup a local pseudo-crates.io [`TestRegistry`]
/// ///
/// This is implicitly called by [`Package::new`]. /// This is implicitly called by [`Package::new`].
/// ///

View File

@ -143,7 +143,7 @@ pub enum Error {
#[error(transparent)] #[error(transparent)]
Curl(#[from] curl::Error), Curl(#[from] curl::Error),
/// Error from seriailzing the request payload and deserializing the /// Error from serializing the request payload and deserializing the
/// response body (like response body didn't match expected structure). /// response body (like response body didn't match expected structure).
#[error(transparent)] #[error(transparent)]
Json(#[from] serde_json::Error), Json(#[from] serde_json::Error),
@ -183,7 +183,7 @@ pub enum Error {
#[error("{0}")] #[error("{0}")]
InvalidToken(&'static str), InvalidToken(&'static str),
/// Server was unavailable and timeouted. Happened when uploading a way /// Server was unavailable and timed out. Happened when uploading a way
/// too large tarball to crates.io. /// too large tarball to crates.io.
#[error( #[error(
"Request timed out after 30 seconds. If you're trying to \ "Request timed out after 30 seconds. If you're trying to \

View File

@ -75,7 +75,7 @@ fn home_dir_inner() -> Option<PathBuf> {
std::env::home_dir() std::env::home_dir()
} }
/// Returns the storage directory used by Cargo, often knowns as /// Returns the storage directory used by Cargo, often known as
/// `.cargo` or `CARGO_HOME`. /// `.cargo` or `CARGO_HOME`.
/// ///
/// It returns one of the following values, in this order of /// It returns one of the following values, in this order of
@ -112,7 +112,7 @@ pub fn cargo_home_with_cwd(cwd: &Path) -> io::Result<PathBuf> {
env::cargo_home_with_cwd_env(&env::OS_ENV, cwd) env::cargo_home_with_cwd_env(&env::OS_ENV, cwd)
} }
/// Returns the storage directory used by rustup, often knowns as /// Returns the storage directory used by rustup, often known as
/// `.rustup` or `RUSTUP_HOME`. /// `.rustup` or `RUSTUP_HOME`.
/// ///
/// It returns one of the following values, in this order of /// It returns one of the following values, in this order of

View File

@ -69,8 +69,8 @@ pub fn main(gctx: &mut GlobalContext) -> CliResult {
} else if let Some(code) = expanded_args.get_one::<String>("explain") { } else if let Some(code) = expanded_args.get_one::<String>("explain") {
// Don't let config errors get in the way of parsing arguments // Don't let config errors get in the way of parsing arguments
let _ = configure_gctx(gctx, &expanded_args, None, global_args, None); let _ = configure_gctx(gctx, &expanded_args, None, global_args, None);
let mut procss = gctx.load_global_rustc(None)?.process(); let mut process = gctx.load_global_rustc(None)?.process();
procss.arg("--explain").arg(code).exec()?; process.arg("--explain").arg(code).exec()?;
} else if expanded_args.flag("list") { } else if expanded_args.flag("list") {
// Don't let config errors get in the way of parsing arguments // Don't let config errors get in the way of parsing arguments
let _ = configure_gctx(gctx, &expanded_args, None, global_args, None); let _ = configure_gctx(gctx, &expanded_args, None, global_args, None);

View File

@ -756,7 +756,7 @@ mod encoded_dep_info {
0x72, 0x75, 0x73, 0x74, // path bytes: "rust" 0x72, 0x75, 0x73, 0x74, // path bytes: "rust"
0x00, 0x00, 0x00, 0x00, // # of env vars 0x00, 0x00, 0x00, 0x00, // # of env vars
]; ];
// Cargo can't recognize v0 after `-Zchecksum-freshess` added. // Cargo can't recognize v0 after `-Zchecksum-freshness` added.
assert!(EncodedDepInfo::parse(&data).is_none()); assert!(EncodedDepInfo::parse(&data).is_none());
} }
} }

View File

@ -1962,12 +1962,12 @@ where
return Some(StaleItem::MissingFile(reference.to_path_buf())); return Some(StaleItem::MissingFile(reference.to_path_buf()));
}; };
let skipable_dirs = if let Ok(cargo_home) = home::cargo_home() { let skippable_dirs = if let Ok(cargo_home) = home::cargo_home() {
let skipable_dirs: Vec<_> = ["git", "registry"] let skippable_dirs: Vec<_> = ["git", "registry"]
.into_iter() .into_iter()
.map(|subfolder| cargo_home.join(subfolder)) .map(|subfolder| cargo_home.join(subfolder))
.collect(); .collect();
Some(skipable_dirs) Some(skippable_dirs)
} else { } else {
None None
}; };
@ -1978,8 +1978,8 @@ where
// (see also #9455 about marking the src directory readonly) which avoids rebuilds when CI // (see also #9455 about marking the src directory readonly) which avoids rebuilds when CI
// caches $CARGO_HOME/registry/{index, cache} and $CARGO_HOME/git/db across runs, keeping // caches $CARGO_HOME/registry/{index, cache} and $CARGO_HOME/git/db across runs, keeping
// the content the same but changing the mtime. // the content the same but changing the mtime.
if let Some(ref skipable_dirs) = skipable_dirs { if let Some(ref skippable_dirs) = skippable_dirs {
if skipable_dirs.iter().any(|dir| path.starts_with(dir)) { if skippable_dirs.iter().any(|dir| path.starts_with(dir)) {
continue; continue;
} }
} }

View File

@ -213,7 +213,7 @@ pub struct WarningCount {
/// were duplicates of a previous warning /// were duplicates of a previous warning
pub duplicates: usize, pub duplicates: usize,
/// number of fixable warnings set to `NotAllowed` /// number of fixable warnings set to `NotAllowed`
/// if any errors have been seen ofr the current /// if any errors have been seen for the current
/// target /// target
pub fixable: FixableWarnings, pub fixable: FixableWarnings,
} }

View File

@ -183,7 +183,7 @@ fn compile<'gctx>(
} }
// If we are in `--compile-time-deps` and the given unit is not a compile time // If we are in `--compile-time-deps` and the given unit is not a compile time
// dependency, skip compling the unit and jumps to dependencies, which still // dependency, skip compiling the unit and jumps to dependencies, which still
// have chances to be compile time dependencies // have chances to be compile time dependencies
if !unit.skip_non_compile_time_dep { if !unit.skip_non_compile_time_dep {
// Build up the work to be done to compile this unit, enqueuing it once // Build up the work to be done to compile this unit, enqueuing it once
@ -1615,7 +1615,7 @@ fn check_cfg_args(unit: &Unit) -> Vec<OsString> {
arg_feature.push("))"); arg_feature.push("))");
// In addition to the package features, we also include the `test` cfg (since // In addition to the package features, we also include the `test` cfg (since
// compiler-team#785, as to be able to someday apply yt conditionally), as well // compiler-team#785, as to be able to someday apply it conditionally), as well
// the `docsrs` cfg from the docs.rs service. // the `docsrs` cfg from the docs.rs service.
// //
// We include `docsrs` here (in Cargo) instead of rustc, since there is a much closer // We include `docsrs` here (in Cargo) instead of rustc, since there is a much closer

View File

@ -11,7 +11,7 @@ use crate::util::{CargoResult, internal};
use cargo_util::paths; use cargo_util::paths;
use tracing::debug; use tracing::debug;
/// Bacially just normalizes a given path and converts it to a string. /// Basically just normalizes a given path and converts it to a string.
fn render_filename<P: AsRef<Path>>(path: P, basedir: Option<&str>) -> CargoResult<String> { fn render_filename<P: AsRef<Path>>(path: P, basedir: Option<&str>) -> CargoResult<String> {
fn wrap_path(path: &Path) -> CargoResult<String> { fn wrap_path(path: &Path) -> CargoResult<String> {
path.to_str() path.to_str()

View File

@ -103,8 +103,8 @@ pub fn build_sbom(build_runner: &BuildRunner<'_, '_>, root: &Unit) -> CargoResul
let mut crates = Vec::new(); let mut crates = Vec::new();
let sbom_graph = build_sbom_graph(build_runner, root); let sbom_graph = build_sbom_graph(build_runner, root);
// Build set of indicies for each node in the graph for fast lookup. // Build set of indices for each node in the graph for fast lookup.
let indicies: HashMap<&Unit, SbomIndex> = sbom_graph let indices: HashMap<&Unit, SbomIndex> = sbom_graph
.keys() .keys()
.enumerate() .enumerate()
.map(|(i, dep)| (*dep, SbomIndex(i))) .map(|(i, dep)| (*dep, SbomIndex(i)))
@ -115,7 +115,7 @@ pub fn build_sbom(build_runner: &BuildRunner<'_, '_>, root: &Unit) -> CargoResul
let mut krate = SbomCrate::new(unit); let mut krate = SbomCrate::new(unit);
for (dep, kind) in edges { for (dep, kind) in edges {
krate.dependencies.push(SbomDependency { krate.dependencies.push(SbomDependency {
index: indicies[dep], index: indices[dep],
kind: kind, kind: kind,
}); });
} }
@ -128,7 +128,7 @@ pub fn build_sbom(build_runner: &BuildRunner<'_, '_>, root: &Unit) -> CargoResul
Ok(Sbom { Ok(Sbom {
version: SbomFormatVersion(1), version: SbomFormatVersion(1),
crates, crates,
root: indicies[root], root: indices[root],
rustc, rustc,
target, target,
}) })

View File

@ -1207,7 +1207,7 @@ fn parse_gitoxide(
impl CliUnstable { impl CliUnstable {
/// Parses `-Z` flags from the command line, and returns messages that warn /// Parses `-Z` flags from the command line, and returns messages that warn
/// if any flag has alreardy been stabilized. /// if any flag has already been stabilized.
pub fn parse( pub fn parse(
&mut self, &mut self,
flags: &[String], flags: &[String],

View File

@ -109,7 +109,7 @@ pub struct PackageRegistry<'gctx> {
/// This is constructed via [`PackageRegistry::register_lock`]. /// This is constructed via [`PackageRegistry::register_lock`].
/// See also [`LockedMap`]. /// See also [`LockedMap`].
locked: LockedMap, locked: LockedMap,
/// A group of packages tha allows to use even when yanked. /// Packages allowed to be used, even if they are yanked.
yanked_whitelist: HashSet<PackageId>, yanked_whitelist: HashSet<PackageId>,
source_config: SourceConfigMap<'gctx>, source_config: SourceConfigMap<'gctx>,

View File

@ -106,7 +106,7 @@
//! really use it that much except for `checksum`s historically. It's not //! really use it that much except for `checksum`s historically. It's not
//! really recommended to use this. //! really recommended to use this.
//! //!
//! * The actual literal on-disk serialiation is found in //! * The actual literal on-disk serialization is found in
//! `src/cargo/ops/lockfile.rs` which basically renders a `toml::Value` in a //! `src/cargo/ops/lockfile.rs` which basically renders a `toml::Value` in a
//! special fashion to make sure we have strict control over the on-disk //! special fashion to make sure we have strict control over the on-disk
//! format. //! format.

View File

@ -617,12 +617,10 @@ fn build_ar_list(
.iter() .iter()
.filter(|t| t.is_custom_build()) .filter(|t| t.is_custom_build())
{ {
if let Some(custome_build_path) = t.src_path().path() { if let Some(custom_build_path) = t.src_path().path() {
let abs_custome_build_path = let abs_custom_build_path = paths::normalize_path(&pkg.root().join(custom_build_path));
paths::normalize_path(&pkg.root().join(custome_build_path)); if !abs_custom_build_path.is_file() || !abs_custom_build_path.starts_with(pkg.root()) {
if !abs_custome_build_path.is_file() || !abs_custome_build_path.starts_with(pkg.root()) error_custom_build_file_not_in_package(pkg, &abs_custom_build_path, t)?;
{
error_custom_build_file_not_in_package(pkg, &abs_custome_build_path, t)?;
} }
} }
} }

View File

@ -453,7 +453,7 @@ fn add_pkg(
if !opts.edge_kinds.contains(&EdgeKind::Dep(dep.kind())) { if !opts.edge_kinds.contains(&EdgeKind::Dep(dep.kind())) {
return false; return false;
} }
// Filter out proc-macrcos if requested. // Filter out proc-macros if requested.
if opts.no_proc_macro && graph.package_for_id(dep_id).proc_macro() { if opts.no_proc_macro && graph.package_for_id(dep_id).proc_macro() {
return false; return false;
} }

View File

@ -277,7 +277,7 @@ impl<'a> GitCheckout<'a> {
&self.database.remote.url() &self.database.remote.url()
} }
/// Clone a repo for a `revision` into a local path from a `datatabase`. /// Clone a repo for a `revision` into a local path from a `database`.
/// This is a filesystem-to-filesystem clone. /// This is a filesystem-to-filesystem clone.
fn clone_into( fn clone_into(
into: &Path, into: &Path,

View File

@ -661,7 +661,7 @@ impl<'gctx> RegistrySource<'gctx> {
/// Unpacks the `.crate` tarball of the package in a given directory. /// Unpacks the `.crate` tarball of the package in a given directory.
/// ///
/// Returns the path to the crate tarball directory, /// Returns the path to the crate tarball directory,
/// whch is always `<unpack_dir>/<pkg>-<version>`. /// which is always `<unpack_dir>/<pkg>-<version>`.
/// ///
/// This holds an assumption that the associated tarball already exists. /// This holds an assumption that the associated tarball already exists.
pub fn unpack_package_in( pub fn unpack_package_in(

View File

@ -1022,7 +1022,7 @@ impl GlobalContext {
} }
/// Internal method for getting an environment variable as a list. /// Internal method for getting an environment variable as a list.
/// If the key is a non-mergable list and a value is found in the environment, existing values are cleared. /// If the key is a non-mergeable list and a value is found in the environment, existing values are cleared.
fn get_env_list( fn get_env_list(
&self, &self,
key: &ConfigKey, key: &ConfigKey,

View File

@ -1730,7 +1730,7 @@ pub fn to_real_manifest(
normalized_package.links.as_deref(), normalized_package.links.as_deref(),
rust_version.clone(), rust_version.clone(),
); );
// editon2024 stops exposing implicit features, which will strip weak optional dependencies from `dependencies`, // edition2024 stops exposing implicit features, which will strip weak optional dependencies from `dependencies`,
// need to check whether `dep_name` is stripped as unused dependency // need to check whether `dep_name` is stripped as unused dependency
if let Err(ref err) = summary { if let Err(ref err) = summary {
if let Some(missing_dep) = err.downcast_ref::<MissingDependencyError>() { if let Some(missing_dep) = err.downcast_ref::<MissingDependencyError>() {
@ -2501,7 +2501,7 @@ fn validate_profiles(
Ok(()) Ok(())
} }
/// Checks stytax validity and unstable feature gate for a given profile. /// Checks syntax validity and unstable feature gate for a given profile.
pub fn validate_profile( pub fn validate_profile(
root: &manifest::TomlProfile, root: &manifest::TomlProfile,
name: &str, name: &str,

View File

@ -46,7 +46,7 @@
- cargo-credential-libsecret: give FFI correctly-sized object - cargo-credential-libsecret: give FFI correctly-sized object
[#15767](https://github.com/rust-lang/cargo/pull/15767) [#15767](https://github.com/rust-lang/cargo/pull/15767)
- cargo-publish: includes mainfest paths when verifying - cargo-publish: includes manifest paths when verifying
[#15705](https://github.com/rust-lang/cargo/pull/15705) [#15705](https://github.com/rust-lang/cargo/pull/15705)
- cargo-tree: Fixed `no-proc-macro` being overridden by subsequent edges. - cargo-tree: Fixed `no-proc-macro` being overridden by subsequent edges.
[#15764](https://github.com/rust-lang/cargo/pull/15764) [#15764](https://github.com/rust-lang/cargo/pull/15764)
@ -211,7 +211,7 @@
[#15682](https://github.com/rust-lang/cargo/pull/15682) [#15682](https://github.com/rust-lang/cargo/pull/15682)
- Update links in contrib docs - Update links in contrib docs
[#15659](https://github.com/rust-lang/cargo/pull/15659) [#15659](https://github.com/rust-lang/cargo/pull/15659)
- docs: clarify `--all-features` not available for all commmands - docs: clarify `--all-features` not available for all commands
[#15572](https://github.com/rust-lang/cargo/pull/15572) [#15572](https://github.com/rust-lang/cargo/pull/15572)
- docs(README): fix the link to the changelog in the Cargo book - docs(README): fix the link to the changelog in the Cargo book
[#15597](https://github.com/rust-lang/cargo/pull/15597) [#15597](https://github.com/rust-lang/cargo/pull/15597)

View File

@ -4488,7 +4488,7 @@ WRAPPER CALLED: rustc --crate-name foo [..]
/// Checks what happens when both rust-wrapper and rustc-workspace-wrapper are set. /// Checks what happens when both rust-wrapper and rustc-workspace-wrapper are set.
#[cargo_test] #[cargo_test]
fn rustc_wrapper_precendence() { fn rustc_wrapper_precedence() {
let p = project().file("src/lib.rs", "").build(); let p = project().file("src/lib.rs", "").build();
let rustc_wrapper = tools::echo_wrapper(); let rustc_wrapper = tools::echo_wrapper();
let ws_wrapper = rustc_wrapper.with_file_name("rustc-ws-wrapper"); let ws_wrapper = rustc_wrapper.with_file_name("rustc-ws-wrapper");

View File

@ -385,7 +385,7 @@ fn rustc_cfg_with_and_without_value() {
} }
#[cargo_test] #[cargo_test]
fn rerun_if_env_is_exsited_config() { fn rerun_if_env_exists_in_config() {
let p = project() let p = project()
.file("src/main.rs", "fn main() {}") .file("src/main.rs", "fn main() {}")
.file( .file(

View File

@ -256,7 +256,7 @@ fn custom_target_ignores_filepath() {
"#]]) "#]])
.run(); .run();
// But not the second time, even though the path to the custom target is dfferent. // But not the second time, even though the path to the custom target is different.
p.cargo("build --lib --target b/custom-target.json") p.cargo("build --lib --target b/custom-target.json")
.with_stderr_data(str![[r#" .with_stderr_data(str![[r#"
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

View File

@ -46,7 +46,7 @@ fn simple() {
); );
assert!( assert!(
!lock.contains("1.1.0"), !lock.contains("1.1.0"),
"dep maximimal version cannot be present" "dep maximal version cannot be present"
); );
} }
@ -139,7 +139,7 @@ fn yanked() {
); );
assert!( assert!(
!lock.contains("1.2.0"), !lock.contains("1.2.0"),
"dep maximimal version cannot be present" "dep maximal version cannot be present"
); );
} }
@ -189,7 +189,7 @@ fn indirect() {
); );
assert!( assert!(
!lock.contains("1.1.0"), !lock.contains("1.1.0"),
"direct maximimal version cannot be present" "direct maximal version cannot be present"
); );
assert!( assert!(
!lock.contains("2.0.0"), !lock.contains("2.0.0"),

View File

@ -698,7 +698,7 @@ fn use_dev_deps_if_explicitly_enabled() {
#[cargo_test(nightly, reason = "rustdoc scrape examples flags are unstable")] #[cargo_test(nightly, reason = "rustdoc scrape examples flags are unstable")]
fn only_scrape_documented_targets() { fn only_scrape_documented_targets() {
// package bar has doc = false and should not be eligible for documtation. // package bar has doc = false and should not be eligible for documentation.
let p = project() let p = project()
.file( .file(
"Cargo.toml", "Cargo.toml",

View File

@ -417,7 +417,7 @@ The package `second-dep v0.0.2` currently triggers the following future incompat
// Extract the 'id' from the stdout. We are looking // Extract the 'id' from the stdout. We are looking
// for the id in a line of the form "run `cargo report future-incompatibilities --id yZ7S`" // for the id in a line of the form "run `cargo report future-incompatibilities --id yZ7S`"
// which is generated by Cargo to tell the user what command to run // which is generated by Cargo to tell the user what command to run
// This is just to test that passing the id suppresses the warning mesasge. Any users needing // This is just to test that passing the id suppresses the warning message. Any users needing
// access to the report from a shell script should use the `--future-incompat-report` flag // access to the report from a shell script should use the `--future-incompat-report` flag
let stderr = std::str::from_utf8(&output.stderr).unwrap(); let stderr = std::str::from_utf8(&output.stderr).unwrap();

View File

@ -3468,7 +3468,7 @@ fn two_dep_forms() {
.file("a/src/lib.rs", "") .file("a/src/lib.rs", "")
.build(); .build();
// This'll download the git repository twice, one with HEAD and once with // This will download the git repository twice, one with HEAD and once with
// the master branch. Then it'll compile 4 crates, the 2 git deps, then // the master branch. Then it'll compile 4 crates, the 2 git deps, then
// the two local deps. // the two local deps.
project project

View File

@ -2783,7 +2783,7 @@ fn dry_run_incompatible_package() {
} }
#[cargo_test] #[cargo_test]
fn dry_run_incompatible_package_dependecy() { fn dry_run_incompatible_package_dependency() {
let p = project() let p = project()
.file( .file(
"Cargo.toml", "Cargo.toml",

View File

@ -3649,7 +3649,7 @@ fn larger_filesizes() {
"#; "#;
let lots_of_crabs = "🦀".repeat(1337); let lots_of_crabs = "🦀".repeat(1337);
let main_rs_contents = format!(r#"fn main() {{ println!("{}"); }}"#, lots_of_crabs); let main_rs_contents = format!(r#"fn main() {{ println!("{}"); }}"#, lots_of_crabs);
let bar_txt_contents = "This file is relatively uncompressible, to increase the compressed let bar_txt_contents = "This file is relatively incompressible, to increase the compressed
package size beyond 1KiB. package size beyond 1KiB.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
@ -3765,7 +3765,7 @@ fn symlink_filesizes() {
"#; "#;
let lots_of_crabs = "🦀".repeat(1337); let lots_of_crabs = "🦀".repeat(1337);
let main_rs_contents = format!(r#"fn main() {{ println!("{}"); }}"#, lots_of_crabs); let main_rs_contents = format!(r#"fn main() {{ println!("{}"); }}"#, lots_of_crabs);
let bar_txt_contents = "This file is relatively uncompressible, to increase the compressed let bar_txt_contents = "This file is relatively incompressible, to increase the compressed
package size beyond 1KiB. package size beyond 1KiB.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation

View File

@ -340,7 +340,7 @@ fn allow_priv_in_tests() {
} }
#[cargo_test(nightly, reason = "exported_private_dependencies lint is unstable")] #[cargo_test(nightly, reason = "exported_private_dependencies lint is unstable")]
fn allow_priv_in_benchs() { fn allow_priv_in_benches() {
Package::new("priv_dep", "0.1.0") Package::new("priv_dep", "0.1.0")
.file("src/lib.rs", "pub struct FromPriv;") .file("src/lib.rs", "pub struct FromPriv;")
.publish(); .publish();

View File

@ -3085,7 +3085,7 @@ fn readonly_registry_still_works() {
} }
#[cargo_test(ignore_windows = "On Windows setting file attributes is a bit complicated")] #[cargo_test(ignore_windows = "On Windows setting file attributes is a bit complicated")]
fn unaccessible_registry_cache_still_works() { fn inaccessible_registry_cache_still_works() {
Package::new("foo", "0.1.0").publish(); Package::new("foo", "0.1.0").publish();
Package::new("fo2", "0.1.0").publish(); Package::new("fo2", "0.1.0").publish();

View File

@ -4,7 +4,7 @@ x ---y
""" """
--- ---
// Test that hypens are allowed inside frontmatters if there is some // Test that hyphens are allowed inside frontmatters if there is some
// non-whitespace character preceding them. // non-whitespace character preceding them.
//@check-pass //@check-pass

View File

@ -297,7 +297,7 @@ fn source_replacement_with_registry_url() {
} }
#[cargo_test] #[cargo_test]
fn source_replacement_with_no_package_in_directoy() { fn source_replacement_with_no_package_in_directory() {
let p = project() let p = project()
.file( .file(
"Cargo.toml", "Cargo.toml",