Skip to content

Commit

Permalink
allow 'self lifetime in static trait methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Oct 23, 2013
1 parent 860cb81 commit 20d9014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub fn ensure_trait_methods(ccx: &CrateCtxt,
// Self => D'
// D,E,F => E',F',G'
let substs = substs {
regions: ty::NonerasedRegions(opt_vec::Empty),
regions: ty::NonerasedRegions(opt_vec::with(ty::re_bound(ty::br_self))),
self_ty: Some(self_param),
tps: non_shifted_trait_tps + shifted_method_tps
};
Expand Down

0 comments on commit 20d9014

Please sign in to comment.