mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #7000 - matthewjasper:remove-unnecessary-outlives-bounds, r=alexcrichton
Remove unnecessary outlives bounds cc rust-lang/rust#61172
This commit is contained in:
commit
f97b11c9a3
@ -16,7 +16,7 @@ mod target_info;
|
||||
pub use self::target_info::{FileFlavor, TargetInfo};
|
||||
|
||||
/// The build context, containing all information about a build task.
|
||||
pub struct BuildContext<'a, 'cfg: 'a> {
|
||||
pub struct BuildContext<'a, 'cfg> {
|
||||
/// The workspace the build is for.
|
||||
pub ws: &'a Workspace<'cfg>,
|
||||
/// The cargo configuration.
|
||||
|
@ -50,7 +50,7 @@ impl fmt::Display for Metadata {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CompilationFiles<'a, 'cfg: 'a> {
|
||||
pub struct CompilationFiles<'a, 'cfg> {
|
||||
/// The target directory layout for the host (and target if it is the same as host).
|
||||
pub(super) host: Layout,
|
||||
/// The target directory layout for the target (if different from then host).
|
||||
|
@ -27,7 +27,7 @@ mod compilation_files;
|
||||
use self::compilation_files::CompilationFiles;
|
||||
pub use self::compilation_files::{Metadata, OutputFile};
|
||||
|
||||
pub struct Context<'a, 'cfg: 'a> {
|
||||
pub struct Context<'a, 'cfg> {
|
||||
pub bcx: &'a BuildContext<'a, 'cfg>,
|
||||
pub compilation: Compilation<'cfg>,
|
||||
pub build_state: Arc<BuildState>,
|
||||
|
@ -25,7 +25,7 @@ use crate::CargoResult;
|
||||
use log::trace;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
struct State<'a: 'tmp, 'cfg: 'a, 'tmp> {
|
||||
struct State<'a, 'cfg, 'tmp> {
|
||||
cx: &'tmp mut Context<'a, 'cfg>,
|
||||
waiting_on_download: HashSet<PackageId>,
|
||||
downloads: Downloads<'a, 'cfg>,
|
||||
|
@ -290,7 +290,7 @@ pub struct PackageSet<'cfg> {
|
||||
}
|
||||
|
||||
/// Helper for downloading crates.
|
||||
pub struct Downloads<'a, 'cfg: 'a> {
|
||||
pub struct Downloads<'a, 'cfg> {
|
||||
set: &'a PackageSet<'cfg>,
|
||||
/// When a download is started, it is added to this map. The key is a
|
||||
/// "token" (see `Download::token`). It is removed once the download is
|
||||
|
@ -325,7 +325,7 @@ impl<'de> de::Deserialize<'de> for EncodablePackageId {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WorkspaceResolve<'a, 'cfg: 'a> {
|
||||
pub struct WorkspaceResolve<'a, 'cfg> {
|
||||
pub ws: &'a Workspace<'cfg>,
|
||||
pub resolve: &'a Resolve,
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ pub struct WorkspaceRootConfig {
|
||||
|
||||
/// An iterator over the member packages of a workspace, returned by
|
||||
/// `Workspace::members`
|
||||
pub struct Members<'a, 'cfg: 'a> {
|
||||
pub struct Members<'a, 'cfg> {
|
||||
ws: &'a Workspace<'cfg>,
|
||||
iter: slice::Iter<'a, PathBuf>,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user