Implement mut ref/mut ref mut

This commit is contained in:
Jules Bertholet
2024-03-23 21:04:45 -04:00
parent 10a7aa14fe
commit e0da13f25f
51 changed files with 442 additions and 378 deletions

View File

@@ -2733,9 +2733,9 @@ pub enum ImplicitSelfKind {
/// Represents a `fn x(mut self);`.
Mut,
/// Represents a `fn x(&self);`.
ImmRef,
RefImm,
/// Represents a `fn x(&mut self);`.
MutRef,
RefMut,
/// Represents when a function does not have a self argument or
/// when a function has a `self: X` argument.
None,