File tree 1 file changed +2
-1
lines changed
compiler/rustc_middle/src/ty/consts
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ use rustc_macros::HashStable;
6
6
/// This datastructure is used to represent the value of constants used in the type system.
7
7
///
8
8
/// We explicitly choose a different datastructure from the way values are processed within
9
- /// CTFE, as in the type system equal values must also have equal representation.
9
+ /// CTFE, as in the type system equal values (according to their `PartialEq`) must also have
10
+ /// equal representation (`==` on the rustc data structure, e.g. `ValTree`) and vice versa.
10
11
/// Since CTFE uses `AllocId` to represent pointers, it often happens that two different
11
12
/// `AllocId`s point to equal values. So we may end up with different representations for
12
13
/// two constants whose value is `&42`. Furthermore any kind of struct that has padding will
You can’t perform that action at this time.
0 commit comments