Removed remnants of @mut and ~mut from comments and the type system.

This commit is contained in:
Eduard Burtescu 2014-01-12 02:25:51 +02:00
parent 68ebe8141a
commit 509fc92a9b
39 changed files with 191 additions and 262 deletions

View file

@ -377,7 +377,7 @@ pub enum SelfTy {
SelfStatic,
SelfValue,
SelfBorrowed(Option<Lifetime>, Mutability),
SelfManaged(Mutability),
SelfManaged,
SelfOwned,
}
@ -388,7 +388,7 @@ impl Clean<SelfTy> for ast::ExplicitSelf {
ast::SelfValue(_) => SelfValue,
ast::SelfUniq(_) => SelfOwned,
ast::SelfRegion(lt, mt) => SelfBorrowed(lt.clean(), mt.clean()),
ast::SelfBox(mt) => SelfManaged(mt.clean()),
ast::SelfBox => SelfManaged,
}
}
}

View file

@ -405,8 +405,7 @@ impl<'a> fmt::Default for Method<'a> {
clean::SelfStatic => {},
clean::SelfValue => args.push_str("self"),
clean::SelfOwned => args.push_str("~self"),
clean::SelfManaged(clean::Mutable) => args.push_str("@mut self"),
clean::SelfManaged(clean::Immutable) => args.push_str("@self"),
clean::SelfManaged => args.push_str("@self"),
clean::SelfBorrowed(Some(ref lt), clean::Immutable) => {
args.push_str(format!("&amp;{} self", *lt));
}