Skip to content

Commit

Permalink
rustdoc: fix fallout of ty::t -> Ty<'tcx>.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Nov 19, 2014
1 parent 8accc7c commit bf0766a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl Clean<TyParam> for ast::TyParam {
}
}

impl Clean<TyParam> for ty::TypeParameterDef {
impl<'tcx> Clean<TyParam> for ty::TypeParameterDef<'tcx> {
fn clean(&self, cx: &DocContext) -> TyParam {
cx.external_typarams.borrow_mut().as_mut().unwrap()
.insert(self.def_id, self.name.clean(cx));
Expand Down Expand Up @@ -567,7 +567,7 @@ impl Clean<TyParamBound> for ty::BuiltinBound {
}
}

impl Clean<TyParamBound> for ty::TraitRef {
impl<'tcx> Clean<TyParamBound> for ty::TraitRef<'tcx> {
fn clean(&self, cx: &DocContext) -> TyParamBound {
let tcx = match cx.tcx_opt() {
Some(tcx) => tcx,
Expand All @@ -588,7 +588,7 @@ impl Clean<TyParamBound> for ty::TraitRef {
}
}

impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
impl<'tcx> Clean<Vec<TyParamBound>> for ty::ParamBounds<'tcx> {
fn clean(&self, cx: &DocContext) -> Vec<TyParamBound> {
let mut v = Vec::new();
for b in self.builtin_bounds.iter() {
Expand All @@ -606,7 +606,7 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
}
}

impl Clean<Option<Vec<TyParamBound>>> for subst::Substs {
impl<'tcx> Clean<Option<Vec<TyParamBound>>> for subst::Substs<'tcx> {
fn clean(&self, cx: &DocContext) -> Option<Vec<TyParamBound>> {
let mut v = Vec::new();
v.extend(self.regions().iter().filter_map(|r| r.clean(cx)).map(RegionBound));
Expand Down Expand Up @@ -698,7 +698,7 @@ impl Clean<Generics> for ast::Generics {
}
}

impl<'a> Clean<Generics> for (&'a ty::Generics, subst::ParamSpace) {
impl<'a, 'tcx> Clean<Generics> for (&'a ty::Generics<'tcx>, subst::ParamSpace) {
fn clean(&self, cx: &DocContext) -> Generics {
let (me, space) = *self;
Generics {
Expand Down Expand Up @@ -877,7 +877,7 @@ impl Clean<FnDecl> for ast::FnDecl {
}
}

impl<'a> Clean<Type> for ty::FnOutput {
impl<'tcx> Clean<Type> for ty::FnOutput<'tcx> {
fn clean(&self, cx: &DocContext) -> Type {
match *self {
ty::FnConverging(ty) => ty.clean(cx),
Expand All @@ -886,7 +886,7 @@ impl<'a> Clean<Type> for ty::FnOutput {
}
}

impl<'a> Clean<FnDecl> for (ast::DefId, &'a ty::FnSig) {
impl<'a, 'tcx> Clean<FnDecl> for (ast::DefId, &'a ty::FnSig<'tcx>) {
fn clean(&self, cx: &DocContext) -> FnDecl {
let (did, sig) = *self;
let mut names = if did.node != 0 {
Expand Down Expand Up @@ -1036,7 +1036,7 @@ impl Clean<ImplMethod> for ast::ImplItem {
}
}

impl Clean<Item> for ty::Method {
impl<'tcx> Clean<Item> for ty::Method<'tcx> {
fn clean(&self, cx: &DocContext) -> Item {
let (self_, sig) = match self.explicit_self {
ty::StaticExplicitSelfCategory => (ast::SelfStatic.clean(cx),
Expand Down Expand Up @@ -1082,7 +1082,7 @@ impl Clean<Item> for ty::Method {
}
}

impl Clean<Item> for ty::ImplOrTraitItem {
impl<'tcx> Clean<Item> for ty::ImplOrTraitItem<'tcx> {
fn clean(&self, cx: &DocContext) -> Item {
match *self {
ty::MethodTraitItem(ref mti) => mti.clean(cx),
Expand Down Expand Up @@ -1257,7 +1257,7 @@ impl Clean<Type> for ast::Ty {
}
}

impl Clean<Type> for Ty {
impl<'tcx> Clean<Type> for ty::Ty<'tcx> {
fn clean(&self, cx: &DocContext) -> Type {
match self.sty {
ty::ty_bool => Primitive(Bool),
Expand Down Expand Up @@ -1506,7 +1506,7 @@ impl Clean<Item> for doctree::Variant {
}
}

impl Clean<Item> for ty::VariantInfo {
impl<'tcx> Clean<Item> for ty::VariantInfo<'tcx> {
fn clean(&self, cx: &DocContext) -> Item {
// use syntax::parse::token::special_idents::unnamed_field;
let kind = match self.arg_names.as_ref().map(|s| s.as_slice()) {
Expand Down Expand Up @@ -2255,7 +2255,7 @@ impl Clean<Item> for ast::Typedef {
}

fn lang_struct(cx: &DocContext, did: Option<ast::DefId>,
t: Ty, name: &str,
t: ty::Ty, name: &str,
fallback: fn(Box<Type>) -> Type) -> Type {
let did = match did {
Some(did) => did,
Expand Down

9 comments on commit bf0766a

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at eddyb@bf0766a

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging eddyb/rust/safe-ty = bf0766a into auto

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eddyb/rust/safe-ty = bf0766a merged ok, testing candidate = f6278e22

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at eddyb@bf0766a

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging eddyb/rust/safe-ty = bf0766a into auto

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eddyb/rust/safe-ty = bf0766a merged ok, testing candidate = cf7df1e

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on bf0766a Nov 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = cf7df1e

Please sign in to comment.