We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4d8bdf commit 97380e3Copy full SHA for 97380e3
compiler/rustc_hir/src/definitions.rs
@@ -52,7 +52,14 @@ impl DefPathTable {
52
53
// Continuing with colliding DefPathHashes can lead to correctness
54
// issues. We must abort compilation.
55
- panic!("Found DefPathHash collsion between {:?} and {:?}", def_path1, def_path2);
+ //
56
+ // The likelyhood of such a collision is very small, so actually
57
+ // running into one could be indicative of a poor hash function
58
+ // being used.
59
60
+ // See the documentation for DefPathHash for more information.
61
+ panic!("found DefPathHash collsion between {:?} and {:?}. \
62
+ Compilation cannot continue.", def_path1, def_path2);
63
}
64
65
// Assert that all DefPathHashes correctly contain the local crate's
0 commit comments