Implement &pin const self and &pin mut self sugars
This commit is contained in:
@@ -1783,6 +1783,13 @@ impl<'a> State<'a> {
|
||||
self.print_mutability(*m, false);
|
||||
self.word("self")
|
||||
}
|
||||
SelfKind::Pinned(lt, m) => {
|
||||
self.word("&");
|
||||
self.print_opt_lifetime(lt);
|
||||
self.word("pin ");
|
||||
self.print_mutability(*m, true);
|
||||
self.word("self")
|
||||
}
|
||||
SelfKind::Explicit(typ, m) => {
|
||||
self.print_mutability(*m, false);
|
||||
self.word("self");
|
||||
|
||||
Reference in New Issue
Block a user