mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Revert "hygiene: Make sure expansion info is set at most once for a given Mark"
This reverts commit b15785b671.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user