// if you literally move the whole project wholesale to a new directory. As a
// result we mostly don't factor in `cwd` to this calculation. Instead we try to
// track the workspace as much as possible and we update the current directory
-// of rustc/rustdoc where approrpriate.
+// of rustc/rustdoc where appropriate.
//
// The first returned value here is the argument to pass to rustc, and the
// second is the cwd that rustc should operate in.
self.url = Some(url);
}
- /// Checkes whether the given `PackageId` matches the `PackageIdSpec`.
+ /// Checks whether the given `PackageId` matches the `PackageIdSpec`.
pub fn matches(&self, package_id: &PackageId) -> bool {
if self.name() != &*package_id.name() {
return false;
cache: HashMap<Dependency, Rc<Vec<Candidate>>>,
// If set the list of dependency candidates will be sorted by minimal
// versions first. That allows `cargo update -Z minimal-versions` which will
- // specify minimum depedency versions to be used.
+ // specify minimum dependency versions to be used.
minimal_versions: bool,
}
/// A dependency listed features that weren't actually available on the
/// candidate. For example we tried to activate feature `foo` but the
- /// candidiate we're activating didn't actually have the feature `foo`.
+ /// candidate we're activating didn't actually have the feature `foo`.
MissingFeatures(String),
}
///
/// * Another feature
/// * An optional dependency
-/// * A feature in a depedency
+/// * A feature in a dependency
///
/// The selection between these 3 things happens as part of the construction of the FeatureValue.
#[derive(Clone, Debug)]
compile_with_exec(ws, options, Arc::new(DefaultExecutor))
}
-/// Like `compile` but allows specifing a custom `Executor` that will be able to intercept build
+/// Like `compile` but allows specifying a custom `Executor` that will be able to intercept build
/// calls and add custom logic. `compile` uses `DefaultExecutor` which just passes calls through.
pub fn compile_with_exec<'a>(
ws: &Workspace<'a>,