@@ -266,27 +266,33 @@ mod platform {
266266pub enum Prefix < ' a > {
267267 /// Prefix `\\?\`, together with the given component immediately following it.
268268 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
269- Verbatim ( & ' a OsStr ) ,
269+ Verbatim ( # [ cfg_attr ( not ( stage0 ) , stable ( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ) ,
270270
271271 /// Prefix `\\?\UNC\`, with the "server" and "share" components following it.
272272 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
273- VerbatimUNC ( & ' a OsStr , & ' a OsStr ) ,
273+ VerbatimUNC (
274+ #[ cfg_attr( not( stage0) , stable( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ,
275+ #[ cfg_attr( not( stage0) , stable( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ,
276+ ) ,
274277
275278 /// Prefix like `\\?\C:\`, for the given drive letter
276279 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
277- VerbatimDisk ( u8 ) ,
280+ VerbatimDisk ( # [ cfg_attr ( not ( stage0 ) , stable ( feature = "rust1" , since = "1.0.0" ) ) ] u8 ) ,
278281
279282 /// Prefix `\\.\`, together with the given component immediately following it.
280283 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
281- DeviceNS ( & ' a OsStr ) ,
284+ DeviceNS ( # [ cfg_attr ( not ( stage0 ) , stable ( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ) ,
282285
283286 /// Prefix `\\server\share`, with the given "server" and "share" components.
284287 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
285- UNC ( & ' a OsStr , & ' a OsStr ) ,
288+ UNC (
289+ #[ cfg_attr( not( stage0) , stable( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ,
290+ #[ cfg_attr( not( stage0) , stable( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ,
291+ ) ,
286292
287293 /// Prefix `C:` for the given disk drive.
288294 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
289- Disk ( u8 ) ,
295+ Disk ( # [ cfg_attr ( not ( stage0 ) , stable ( feature = "rust1" , since = "1.0.0" ) ) ] u8 ) ,
290296}
291297
292298impl < ' a > Prefix < ' a > {
@@ -528,7 +534,9 @@ pub enum Component<'a> {
528534 ///
529535 /// Does not occur on Unix.
530536 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
531- Prefix ( PrefixComponent < ' a > ) ,
537+ Prefix (
538+ #[ cfg_attr( not( stage0) , stable( feature = "rust1" , since = "1.0.0" ) ) ] PrefixComponent < ' a >
539+ ) ,
532540
533541 /// The root directory component, appears after any prefix and before anything else
534542 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -544,7 +552,7 @@ pub enum Component<'a> {
544552
545553 /// A normal component, i.e. `a` and `b` in `a/b`
546554 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
547- Normal ( & ' a OsStr ) ,
555+ Normal ( # [ cfg_attr ( not ( stage0 ) , stable ( feature = "rust1" , since = "1.0.0" ) ) ] & ' a OsStr ) ,
548556}
549557
550558impl < ' a > Component < ' a > {
0 commit comments