@@ -400,20 +400,21 @@ impl Command {
400
400
self
401
401
}
402
402
403
- /// Append literal text to the command line without any quoting or escaping.
404
- ///
405
- /// This is useful for passing arguments to `cmd.exe /c`, which doesn't follow
406
- /// `CommandLineToArgvW` escaping rules.
407
- ///
408
- /// **Note**: This is an [unstable API][unstable] but will be stabilised once
409
- /// tokio's MSRV is sufficiently new. See [the documentation on
410
- /// unstable features][unstable] for details about using unstable features.
411
- #[ cfg( windows) ]
412
- #[ cfg( tokio_unstable) ]
413
- #[ cfg_attr( docsrs, doc( cfg( all( windows, tokio_unstable) ) ) ) ]
414
- pub fn raw_arg < S : AsRef < OsStr > > ( & mut self , text_to_append_as_is : S ) -> & mut Command {
415
- self . std . raw_arg ( text_to_append_as_is) ;
416
- self
403
+ cfg_unstable_windows ! {
404
+ /// Append literal text to the command line without any quoting or escaping.
405
+ ///
406
+ /// This is useful for passing arguments to `cmd.exe /c`, which doesn't follow
407
+ /// `CommandLineToArgvW` escaping rules.
408
+ ///
409
+ /// **Note**: This is an [unstable API][unstable] but will be stabilised once
410
+ /// tokio's MSRV is sufficiently new. See [the documentation on
411
+ /// unstable features][unstable] for details about using unstable features.
412
+ ///
413
+ /// [unstable]: crate#unstable-features
414
+ pub fn raw_arg<S : AsRef <OsStr >>( & mut self , text_to_append_as_is: S ) -> & mut Command {
415
+ self . std. raw_arg( text_to_append_as_is) ;
416
+ self
417
+ }
417
418
}
418
419
419
420
/// Inserts or updates an environment variable mapping.
0 commit comments