Removed remnants of @mut and ~mut from comments and the type system.
This commit is contained in:
parent
68ebe8141a
commit
509fc92a9b
39 changed files with 191 additions and 262 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!("&{} self", *lt));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue