File tree 1 file changed +2
-2
lines changed
compiler/rustc_monomorphize/src 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ where
182
182
}
183
183
184
184
// Ensure CGUs are sorted by name, so that we get deterministic results.
185
- if !codegen_units. is_sorted_by ( |a, b| a. name ( ) . as_str ( ) < b. name ( ) . as_str ( ) ) {
185
+ if !codegen_units. is_sorted_by ( |a, b| a. name ( ) . as_str ( ) <= b. name ( ) . as_str ( ) ) {
186
186
let mut names = String :: new ( ) ;
187
187
for cgu in codegen_units. iter ( ) {
188
188
names += & format ! ( "- {}\n " , cgu. name( ) ) ;
@@ -311,7 +311,7 @@ fn merge_codegen_units<'tcx>(
311
311
assert ! ( cx. tcx. sess. codegen_units( ) . as_usize( ) >= 1 ) ;
312
312
313
313
// A sorted order here ensures merging is deterministic.
314
- assert ! ( codegen_units. is_sorted_by( |a, b| a. name( ) . as_str( ) < b. name( ) . as_str( ) ) ) ;
314
+ assert ! ( codegen_units. is_sorted_by( |a, b| a. name( ) . as_str( ) <= b. name( ) . as_str( ) ) ) ;
315
315
316
316
// This map keeps track of what got merged into what.
317
317
let mut cgu_contents: FxHashMap < Symbol , Vec < Symbol > > =
You can’t perform that action at this time.
0 commit comments