diff options
| author | Michael Sullivan <sully@msully.net> | 2013-06-04 15:14:56 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2013-06-06 12:14:41 -0700 |
| commit | 8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c (patch) | |
| tree | 9fd129fcd914f75a3325f6330c6e7f5ecde05826 /src/librustpkg | |
| parent | 8450dc8f5e7616617d707f8fdbfaf7ad6ad5aa41 (diff) | |
| download | rust-8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c.tar.gz rust-8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c.zip | |
Clean up a handful of build warnings.
Diffstat (limited to 'src/librustpkg')
| -rw-r--r-- | src/librustpkg/rustpkg.rc | 6 | ||||
| -rw-r--r-- | src/librustpkg/util.rs | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc index 005f2de3f42..5bc52b1eb35 100644 --- a/src/librustpkg/rustpkg.rc +++ b/src/librustpkg/rustpkg.rc @@ -649,9 +649,9 @@ impl PkgSrc { if self.libs.is_empty() && self.mains.is_empty() && self.tests.is_empty() && self.benchs.is_empty() { - util::note(~"Couldn't infer any crates to build.\n\ - Try naming a crate `main.rs`, `lib.rs`, \ - `test.rs`, or `bench.rs`."); + util::note("Couldn't infer any crates to build.\n\ + Try naming a crate `main.rs`, `lib.rs`, \ + `test.rs`, or `bench.rs`."); cond.raise(copy self.id); } diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index 33745e85387..84af0ce5095 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -14,8 +14,6 @@ use rustc::driver::{driver, session}; use rustc::metadata::filesearch; use extra::getopts::groups::getopts; use extra::term; -#[cfg(not(test))] -use extra::getopts; use syntax::ast_util::*; use syntax::codemap::{dummy_sp, spanned}; use syntax::codemap::dummy_spanned; |
