1
Fork 0

Make 'self lifetime illegal.

Also remove all instances of 'self within the codebase.

This fixes #10889.
This commit is contained in:
Erik Price 2013-12-09 23:16:18 -08:00
parent d441c54688
commit 5731ca3078
187 changed files with 1290 additions and 1277 deletions

View file

@ -33,7 +33,7 @@ pub struct VisSpace(Option<ast::visibility>);
/// space after it.
pub struct PuritySpace(ast::purity);
/// Wrapper struct for properly emitting a method declaration.
pub struct Method<'self>(&'self clean::SelfTy, &'self clean::FnDecl);
pub struct Method<'a>(&'a clean::SelfTy, &'a clean::FnDecl);
impl fmt::Default for clean::Generics {
fn fmt(g: &clean::Generics, f: &mut fmt::Formatter) {
@ -393,8 +393,8 @@ impl fmt::Default for ~[clean::Argument] {
}
}
impl<'self> fmt::Default for Method<'self> {
fn fmt(m: &Method<'self>, f: &mut fmt::Formatter) {
impl<'a> fmt::Default for Method<'a> {
fn fmt(m: &Method<'a>, f: &mut fmt::Formatter) {
let Method(selfty, d) = *m;
let mut args = ~"";
match *selfty {