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:
bors 2019-06-03 14:50:28 +00:00
commit f97b11c9a3
7 changed files with 7 additions and 7 deletions

View File

@ -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.

View File

@ -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).

View File

@ -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>,

View File

@ -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>,

View File

@ -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

View File

@ -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,
}

View File

@ -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>,
}