提交 6fdb400f 编写于 作者: V Vadim Petrochenkov

Revert "hygiene: Make sure expansion info is set at most once for a given `Mark`"

This reverts commit b15785b6.
上级 5ce5e086
......@@ -108,14 +108,7 @@ pub fn expn_info(self) -> Option<ExpnInfo> {
#[inline]
pub fn set_expn_info(self, info: ExpnInfo) {
HygieneData::with(|data| {
let old_info = &mut data.marks[self.0 as usize].expn_info;
if let Some(old_info) = old_info {
panic!("expansion info is reset for the mark {}\nold: {:#?}\nnew: {:#?}",
self.0, old_info, info);
}
*old_info = Some(info);
})
HygieneData::with(|data| data.marks[self.0 as usize].expn_info = Some(info))
}
#[inline]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册