diff options
Diffstat (limited to 'src/librustpkg/context.rs')
| -rw-r--r-- | src/librustpkg/context.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/librustpkg/context.rs b/src/librustpkg/context.rs index 72197219fc5..bee21d70b2d 100644 --- a/src/librustpkg/context.rs +++ b/src/librustpkg/context.rs @@ -10,7 +10,7 @@ // Context data structure used by rustpkg -use std::{io, os}; +use std::os; use extra::workcache; use rustc::driver::session::{OptLevel, No}; @@ -243,43 +243,43 @@ pub fn flags_forbidden_for_cmd(flags: &RustcFlags, }; if flags.linker.is_some() && cmd != "build" && cmd != "install" { - io::println("The --linker option can only be used with the build or install commands."); + println("The --linker option can only be used with the build or install commands."); return true; } if flags.link_args.is_some() && cmd != "build" && cmd != "install" { - io::println("The --link-args option can only be used with the build or install commands."); + println("The --link-args option can only be used with the build or install commands."); return true; } if !cfgs.is_empty() && cmd != "build" && cmd != "install" { - io::println("The --cfg option can only be used with the build or install commands."); + println("The --cfg option can only be used with the build or install commands."); return true; } if user_supplied_opt_level && cmd != "build" && cmd != "install" { - io::println("The -O and --opt-level options can only be used with the build \ + println("The -O and --opt-level options can only be used with the build \ or install commands."); return true; } if flags.save_temps && cmd != "build" && cmd != "install" { - io::println("The --save-temps option can only be used with the build \ + println("The --save-temps option can only be used with the build \ or install commands."); return true; } if flags.target.is_some() && cmd != "build" && cmd != "install" { - io::println("The --target option can only be used with the build \ + println("The --target option can only be used with the build \ or install commands."); return true; } if flags.target_cpu.is_some() && cmd != "build" && cmd != "install" { - io::println("The --target-cpu option can only be used with the build \ + println("The --target-cpu option can only be used with the build \ or install commands."); return true; } if flags.experimental_features.is_some() && cmd != "build" && cmd != "install" { - io::println("The -Z option can only be used with the build or install commands."); + println("The -Z option can only be used with the build or install commands."); return true; } |
