diff --git a/gcc/rust/util/rust-canonical-path.h b/gcc/rust/util/rust-canonical-path.h index f2865eba9ae..969ac7f7cc1 100644 --- a/gcc/rust/util/rust-canonical-path.h +++ b/gcc/rust/util/rust-canonical-path.h @@ -51,6 +51,7 @@ public: CanonicalPath &operator= (const CanonicalPath &other) { segs = other.segs; + crate_num = other.crate_num; return *this; }