@@ -129,11 +129,11 @@ fn without_header_eq(mut result: Module, expected: &str) {
129
129
if result != expected {
130
130
println ! ( "{}" , & result) ;
131
131
panic ! (
132
- "assertion failed: `( left.contains( right)) `\
132
+ "assertion failed: `left == right`\
133
133
\n \
134
134
\n {}\
135
135
\n ",
136
- pretty_assertions:: Comparison :: new( & PrettyString ( & result ) , & PrettyString ( & expected ) )
136
+ pretty_assertions:: Comparison :: new( & PrettyString ( & expected ) , & PrettyString ( & result ) )
137
137
) ;
138
138
}
139
139
}
@@ -378,6 +378,7 @@ fn use_exported_func_param_attr() {
378
378
%8 = OpFunction %5 None %7
379
379
%4 = OpFunctionParameter %6
380
380
%9 = OpLabel
381
+ %10 = OpLoad %6 %4
381
382
OpReturn
382
383
OpFunctionEnd
383
384
"# ,
@@ -394,6 +395,7 @@ fn use_exported_func_param_attr() {
394
395
%1 = OpFunction %3 None %5
395
396
%2 = OpFunctionParameter %4
396
397
%6 = OpLabel
398
+ %7 = OpLoad %4 %2
397
399
OpReturn
398
400
OpFunctionEnd
399
401
"# ,
@@ -412,11 +414,13 @@ fn use_exported_func_param_attr() {
412
414
%7 = OpFunction %4 None %6
413
415
%2 = OpFunctionParameter %5
414
416
%8 = OpLabel
417
+ %9 = OpLoad %5 %2
415
418
OpReturn
416
419
OpFunctionEnd
417
- %9 = OpFunction %4 None %6
420
+ %10 = OpFunction %4 None %6
418
421
%3 = OpFunctionParameter %5
419
- %10 = OpLabel
422
+ %11 = OpLabel
423
+ %12 = OpLoad %5 %3
420
424
OpReturn
421
425
OpFunctionEnd"# ;
422
426
@@ -445,6 +449,7 @@ fn names_and_decorations() {
445
449
%8 = OpFunction %5 None %7
446
450
%4 = OpFunctionParameter %9
447
451
%10 = OpLabel
452
+ %11 = OpLoad %6 %4
448
453
OpReturn
449
454
OpFunctionEnd
450
455
"# ,
@@ -464,6 +469,7 @@ fn names_and_decorations() {
464
469
%1 = OpFunction %3 None %5
465
470
%2 = OpFunctionParameter %7
466
471
%6 = OpLabel
472
+ %8 = OpLoad %4 %2
467
473
OpReturn
468
474
OpFunctionEnd
469
475
"# ,
@@ -486,11 +492,13 @@ fn names_and_decorations() {
486
492
%9 = OpFunction %5 None %8
487
493
%4 = OpFunctionParameter %7
488
494
%10 = OpLabel
495
+ %11 = OpLoad %6 %4
489
496
OpReturn
490
497
OpFunctionEnd
491
498
%1 = OpFunction %5 None %8
492
499
%2 = OpFunctionParameter %7
493
- %11 = OpLabel
500
+ %12 = OpLabel
501
+ %13 = OpLoad %6 %2
494
502
OpReturn
495
503
OpFunctionEnd"# ;
496
504
0 commit comments