We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af98f19 commit 3c5036aCopy full SHA for 3c5036a
c2rust-transpile/src/translator/named_references.rs
@@ -124,11 +124,11 @@ impl<'c> Translation<'c> {
124
125
let ptr_name = self.renamer.borrow_mut().fresh();
126
127
- // let ref mut p = lhs;
+ // let freshN = &raw mut lhs;
128
let compute_ref = mk().local_stmt(Box::new(mk().local(
129
- mk().mutbl().ident_ref_pat(&ptr_name),
+ mk().mutbl().ident_pat(&ptr_name),
130
None,
131
- Some(reference),
+ Some(mk().mutbl().raw_borrow_expr(reference)),
132
)));
133
134
let write =
0 commit comments