Skip to content

Commit

Permalink
dont clone old syntax context
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi committed Aug 30, 2024
1 parent 0d63418 commit efd2619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_span/src/hygiene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,8 @@ pub fn decode_syntax_context<D: Decoder, F: FnOnce(&mut D, u32) -> SyntaxContext
&& old.outer_transparency == ctxt_data.outer_transparency
&& old.parent == ctxt_data.parent
{
ctxt_data = old.clone();
ctxt_data.opaque = old.opaque;
ctxt_data.opaque_and_semitransparent = old.opaque_and_semitransparent;
}

let dummy = std::mem::replace(
Expand Down

0 comments on commit efd2619

Please sign in to comment.