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.
Mark
1 parent 1daa912 commit 9b68655Copy full SHA for 9b68655
src/libsyntax_pos/hygiene.rs
@@ -108,14 +108,7 @@ impl Mark {
108
109
#[inline]
110
pub fn set_expn_info(self, info: ExpnInfo) {
111
- HygieneData::with(|data| {
112
- let old_info = &mut data.marks[self.0 as usize].expn_info;
113
- if let Some(old_info) = old_info {
114
- panic!("expansion info is reset for the mark {}\nold: {:#?}\nnew: {:#?}",
115
- self.0, old_info, info);
116
- }
117
- *old_info = Some(info);
118
- })
+ HygieneData::with(|data| data.marks[self.0 as usize].expn_info = Some(info))
119
}
120
121
0 commit comments