@@ -26,6 +26,7 @@ struct ReleaseNotes {
26
26
27
27
language_relnotes : String ,
28
28
compiler_relnotes : String ,
29
+ platform_relnotes : String ,
29
30
libraries_relnotes : String ,
30
31
stabilized_apis_relnotes : String ,
31
32
const_stabilized_apis_relnotes : String ,
@@ -77,6 +78,7 @@ fn main() {
77
78
let Sections {
78
79
language_relnotes,
79
80
compiler_relnotes,
81
+ platform_relnotes,
80
82
libraries_relnotes,
81
83
stabilized_apis_relnotes,
82
84
const_stabilized_apis_relnotes,
@@ -130,13 +132,11 @@ fn main() {
130
132
}
131
133
132
134
eprintln ! (
133
- "Did not use {:?} from {} <{}> (intended to provide relnotes for: {:?} )" ,
135
+ "Did not use {:?} from {} <{}> (parsed as providing for #{}, check if that is milestoned correctly )" ,
134
136
section,
135
137
issue. raw[ "title" ] . as_str( ) . unwrap( ) ,
136
138
issue. raw[ "url" ] . as_str( ) . unwrap( ) ,
137
- issues
138
- . iter( )
139
- . find( |i| i[ "number" ] . as_u64( ) . unwrap( ) == issue. for_number)
139
+ issue. for_number,
140
140
) ;
141
141
}
142
142
}
@@ -147,6 +147,7 @@ fn main() {
147
147
148
148
language_relnotes,
149
149
compiler_relnotes,
150
+ platform_relnotes,
150
151
libraries_relnotes,
151
152
rustdoc_relnotes,
152
153
stabilized_apis_relnotes,
@@ -421,6 +422,7 @@ fn has_tags<'a>(o: &'a json::Value, tags: &[&str]) -> bool {
421
422
struct Sections {
422
423
language_relnotes : String ,
423
424
compiler_relnotes : String ,
425
+ platform_relnotes : String ,
424
426
libraries_relnotes : String ,
425
427
stabilized_apis_relnotes : String ,
426
428
const_stabilized_apis_relnotes : String ,
@@ -443,13 +445,15 @@ fn to_sections<'a>(
443
445
by_section. insert ( "Rustdoc" , String :: new ( ) ) ;
444
446
by_section. insert ( "Compatibility Notes" , String :: new ( ) ) ;
445
447
by_section. insert ( "Internal Changes" , String :: new ( ) ) ;
448
+ by_section. insert ( "Platform Support" , String :: new ( ) ) ;
446
449
by_section. insert ( "Other" , String :: new ( ) ) ;
447
450
448
451
map_to_line_items ( iter, & mut tracking, & mut by_section) ;
449
452
450
453
Sections {
451
454
language_relnotes : by_section. remove ( "Language" ) . unwrap ( ) ,
452
455
compiler_relnotes : by_section. remove ( "Compiler" ) . unwrap ( ) ,
456
+ platform_relnotes : by_section. remove ( "Platform Support" ) . unwrap ( ) ,
453
457
libraries_relnotes : by_section. remove ( "Libraries" ) . unwrap ( ) ,
454
458
stabilized_apis_relnotes : by_section. remove ( "Stabilized APIs" ) . unwrap ( ) ,
455
459
const_stabilized_apis_relnotes : by_section. remove ( "Const Stabilized APIs" ) . unwrap ( ) ,
0 commit comments