@@ -25,7 +25,7 @@ fn simple() -> String {
25
25
}
26
26
}"# ;
27
27
let message = & [
28
- Group :: with_title ( Level :: ERROR . title ( "mismatched types" ) . id ( "E0308" ) ) . element (
28
+ Group :: with_title ( Level :: ERROR . primary_title ( "mismatched types" ) . id ( "E0308" ) ) . element (
29
29
Snippet :: source ( source)
30
30
. line_start ( 51 )
31
31
. path ( "src/format.rs" )
@@ -69,15 +69,17 @@ fn fold(bencher: divan::Bencher<'_, '_>, context: usize) {
69
69
( input, span)
70
70
} )
71
71
. bench_values ( |( input, span) | {
72
- let message = & [
73
- Group :: with_title ( Level :: ERROR . title ( "mismatched types" ) . id ( "E0308" ) ) . element (
74
- Snippet :: source ( & input) . path ( "src/format.rs" ) . annotation (
75
- AnnotationKind :: Context
76
- . span ( span)
77
- . label ( "expected `Option<String>` because of return type" ) ,
78
- ) ,
79
- ) ,
80
- ] ;
72
+ let message =
73
+ & [
74
+ Group :: with_title ( Level :: ERROR . primary_title ( "mismatched types" ) . id ( "E0308" ) )
75
+ . element (
76
+ Snippet :: source ( & input) . path ( "src/format.rs" ) . annotation (
77
+ AnnotationKind :: Context
78
+ . span ( span)
79
+ . label ( "expected `Option<String>` because of return type" ) ,
80
+ ) ,
81
+ ) ,
82
+ ] ;
81
83
82
84
let renderer = Renderer :: plain ( ) ;
83
85
let rendered = renderer. render ( message) ;
0 commit comments