Skip to content

Commit

Permalink
Auto merge of #9821 - steffahn:a_an, r=Eh2406
Browse files Browse the repository at this point in the history
Fix typos “a”→“an”

See rust-lang/rust#88230
  • Loading branch information
bors committed Aug 22, 2021
2 parents 216f915 + 5c9d614 commit a42d00c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/conflict_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl ConflictStoreTrie {
} else {
// We are at the end of the set we are adding, there are three cases for what to do
// next:
// 1. `self` is a empty dummy Node inserted by `or_insert_with`
// 1. `self` is an empty dummy Node inserted by `or_insert_with`
// in witch case we should replace it with `Leaf(con)`.
// 2. `self` is a `Node` because we previously inserted a superset of
// the thing we are working on (I don't know if this happens in practice)
Expand Down
4 changes: 2 additions & 2 deletions src/cargo/core/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ fn activate(
cx.age += 1;
if let Some((parent, dep)) = parent {
let parent_pid = parent.package_id();
// add a edge from candidate to parent in the parents graph
// add an edge from candidate to parent in the parents graph
cx.parents
.link(candidate_pid, parent_pid)
// and associate dep with that edge
Expand Down Expand Up @@ -700,7 +700,7 @@ struct BacktrackFrame {
#[derive(Clone)]
struct RemainingCandidates {
remaining: RcVecIter<Summary>,
// This is a inlined peekable generator
// This is an inlined peekable generator
has_another: Option<Summary>,
}

Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl Ord for DepsFrame {
}
}

/// Note that a `OrdSet` is used for the remaining dependencies that need
/// Note that an `OrdSet` is used for the remaining dependencies that need
/// activation. This set is sorted by how many candidates each dependency has.
///
/// This helps us get through super constrained portions of the dependency
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/ops/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pub fn build_and_print(ws: &Workspace<'_>, opts: &TreeOptions) -> CargoResult<()
.iter()
.map(|p| PackageIdSpec::parse(p))
.map(|r| {
// Provide a error message if pkgid is not within the resolved
// Provide an error message if pkgid is not within the resolved
// dependencies graph.
r.and_then(|spec| spec.query(ws_resolve.targeted_resolve.iter()).and(Ok(spec)))
})
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/git/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct GitDatabase {

/// `GitCheckout` is a local checkout of a particular revision. Calling
/// `clone_into` with a reference will resolve the reference into a revision,
/// and return a `anyhow::Error` if no revision for that reference was found.
/// and return an `anyhow::Error` if no revision for that reference was found.
#[derive(Serialize)]
pub struct GitCheckout<'a> {
database: &'a GitDatabase,
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ impl Summaries {
// * `2`: Added the "index format version" field so that if the index format
// changes, different versions of cargo won't get confused reading each
// other's caches.
// * `3`: Bumped the version to work around a issue where multiple versions of
// * `3`: Bumped the version to work around an issue where multiple versions of
// a package were published that differ only by semver metadata. For
// example, openssl-src 110.0.0 and 110.0.0+1.1.0f. Previously, the cache
// would be incorrectly populated with two entries, both 110.0.0. After
Expand Down
6 changes: 3 additions & 3 deletions src/cargo/util/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ pub struct Config {
/// This should be false if:
/// - this is an artifact of the rustc distribution process for "stable" or for "beta"
/// - this is an `#[test]` that does not opt in with `enable_nightly_features`
/// - this is a integration test that uses `ProcessBuilder`
/// - this is an integration test that uses `ProcessBuilder`
/// that does not opt in with `masquerade_as_nightly_cargo`
/// This should be true if:
/// - this is an artifact of the rustc distribution process for "nightly"
/// - this is being used in the rustc distribution process internally
/// - this is a cargo executable that was built from source
/// - this is an `#[test]` that called `enable_nightly_features`
/// - this is a integration test that uses `ProcessBuilder`
/// - this is an integration test that uses `ProcessBuilder`
/// that called `masquerade_as_nightly_cargo`
/// It's public to allow tests use nightly features.
/// NOTE: this should be set before `configure()`. If calling this from an integration test,
Expand Down Expand Up @@ -836,7 +836,7 @@ impl Config {
Ok(())
}

/// Low-level method for getting a config value as a `OptValue<HashMap<String, CV>>`.
/// Low-level method for getting a config value as an `OptValue<HashMap<String, CV>>`.
///
/// NOTE: This does not read from env. The caller is responsible for that.
fn get_table(&self, key: &ConfigKey) -> CargoResult<OptValue<HashMap<String, CV>>> {
Expand Down

0 comments on commit a42d00c

Please sign in to comment.