@@ -26,6 +26,7 @@ struct ReleaseNotes {
2626
2727 language_relnotes : String ,
2828 compiler_relnotes : String ,
29+ platform_relnotes : String ,
2930 libraries_relnotes : String ,
3031 stabilized_apis_relnotes : String ,
3132 const_stabilized_apis_relnotes : String ,
@@ -77,6 +78,7 @@ fn main() {
7778 let Sections {
7879 language_relnotes,
7980 compiler_relnotes,
81+ platform_relnotes,
8082 libraries_relnotes,
8183 stabilized_apis_relnotes,
8284 const_stabilized_apis_relnotes,
@@ -130,13 +132,11 @@ fn main() {
130132 }
131133
132134 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 )" ,
134136 section,
135137 issue. raw[ "title" ] . as_str( ) . unwrap( ) ,
136138 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,
140140 ) ;
141141 }
142142 }
@@ -147,6 +147,7 @@ fn main() {
147147
148148 language_relnotes,
149149 compiler_relnotes,
150+ platform_relnotes,
150151 libraries_relnotes,
151152 rustdoc_relnotes,
152153 stabilized_apis_relnotes,
@@ -421,6 +422,7 @@ fn has_tags<'a>(o: &'a json::Value, tags: &[&str]) -> bool {
421422struct Sections {
422423 language_relnotes : String ,
423424 compiler_relnotes : String ,
425+ platform_relnotes : String ,
424426 libraries_relnotes : String ,
425427 stabilized_apis_relnotes : String ,
426428 const_stabilized_apis_relnotes : String ,
@@ -443,13 +445,15 @@ fn to_sections<'a>(
443445 by_section. insert ( "Rustdoc" , String :: new ( ) ) ;
444446 by_section. insert ( "Compatibility Notes" , String :: new ( ) ) ;
445447 by_section. insert ( "Internal Changes" , String :: new ( ) ) ;
448+ by_section. insert ( "Platform Support" , String :: new ( ) ) ;
446449 by_section. insert ( "Other" , String :: new ( ) ) ;
447450
448451 map_to_line_items ( iter, & mut tracking, & mut by_section) ;
449452
450453 Sections {
451454 language_relnotes : by_section. remove ( "Language" ) . unwrap ( ) ,
452455 compiler_relnotes : by_section. remove ( "Compiler" ) . unwrap ( ) ,
456+ platform_relnotes : by_section. remove ( "Platform Support" ) . unwrap ( ) ,
453457 libraries_relnotes : by_section. remove ( "Libraries" ) . unwrap ( ) ,
454458 stabilized_apis_relnotes : by_section. remove ( "Stabilized APIs" ) . unwrap ( ) ,
455459 const_stabilized_apis_relnotes : by_section. remove ( "Const Stabilized APIs" ) . unwrap ( ) ,
0 commit comments