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.
orig_id
1 parent 979dd77 commit dc21612Copy full SHA for dc21612
src/librustc_span/hygiene.rs
@@ -711,9 +711,16 @@ pub struct ExpnData {
711
/// The raw that this `ExpnData` had in its original crate.
712
/// An `ExpnData` can be created before being assigned an `ExpnId`,
713
/// so this might be `None` until `set_expn_data` is called
714
+ // This is used only for serialization/deserialization purposes:
715
+ // two `ExpnData`s that differ only in their `orig_id` should
716
+ // be considered equivalent.
717
+ #[stable_hasher(ignore)]
718
pub orig_id: Option<u32>,
719
}
720
721
+// This would require special handling of `orig_id` and `parent`
722
+impl !PartialEq for ExpnData {}
723
+
724
impl ExpnData {
725
/// Constructs expansion data with default properties.
726
pub fn default(
0 commit comments