Can someone advice, what is the proper way to refactor code to replace ast::Method
and quote_method!
for the current rustc head for code like this:
quote_item!(cx,
$doc_attr
pub fn $fn_name<'b>(&'b mut self, new_value: $field_ty) -> &'b mut $setter_ty<'a> {
self.value |= (self.value & ! $mask) | ((new_value as $unpacked_ty) & $mask) << $shift;
self.mask |= $mask << $shift;
self
}
)