kevinatk/rust — comment on commit 1678b1090988c6e42014eb47630fda626c5ec018
File: src/comp/metadata/decoder.rs line 249
By graydon:

Discriminant values need to either be encoded and decoded in crate metadata, or else always loaded from the external constant that defines them in external crates. The latter is probably better as it makes for less change of version mismatch, but it's not completely clear to me; propagating the value itself might also make sense.