From eecbe5556b96aa5546ede9454483a53b25d3380a Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Wed, 12 Jun 2013 02:04:40 +1000 Subject: [PATCH] Silence some warnings. --- src/librust/rust.rc | 1 - src/librustdoc/attr_parser.rs | 1 - src/librustdoc/escape_pass.rs | 2 -- src/librustdoc/markdown_index_pass.rs | 2 -- src/librustpkg/package_path.rs | 2 +- src/librustpkg/package_source.rs | 2 +- 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/librust/rust.rc b/src/librust/rust.rc index 21f944d2af1..f0d4652eb1d 100644 --- a/src/librust/rust.rc +++ b/src/librust/rust.rc @@ -36,7 +36,6 @@ use core::io; use core::os; use core::run; use core::libc::exit; -use core::str; // For bootstrapping. mod std { diff --git a/src/librustdoc/attr_parser.rs b/src/librustdoc/attr_parser.rs index 47c54ee8e8f..026f57df035 100644 --- a/src/librustdoc/attr_parser.rs +++ b/src/librustdoc/attr_parser.rs @@ -17,7 +17,6 @@ an AST's attributes. use core::prelude::*; -use core::str; use syntax::ast; use syntax::attr; diff --git a/src/librustdoc/escape_pass.rs b/src/librustdoc/escape_pass.rs index ef07bdfca16..2f09e0a5ddc 100644 --- a/src/librustdoc/escape_pass.rs +++ b/src/librustdoc/escape_pass.rs @@ -13,8 +13,6 @@ use pass::Pass; use text_pass; -use core::str; - pub fn mk_pass() -> Pass { text_pass::mk_pass(~"escape", escape) } diff --git a/src/librustdoc/markdown_index_pass.rs b/src/librustdoc/markdown_index_pass.rs index e7def3ebb9b..3634155b8a3 100644 --- a/src/librustdoc/markdown_index_pass.rs +++ b/src/librustdoc/markdown_index_pass.rs @@ -22,8 +22,6 @@ use markdown_pass; use markdown_writer; use pass::Pass; -use core::str; - pub fn mk_pass(config: config::Config) -> Pass { Pass { name: ~"markdown_index", diff --git a/src/librustpkg/package_path.rs b/src/librustpkg/package_path.rs index 0216b032a6d..161634be650 100644 --- a/src/librustpkg/package_path.rs +++ b/src/librustpkg/package_path.rs @@ -12,7 +12,7 @@ use core::path::Path; use core::option::Some; -use core::{hash, str}; +use core::hash; use core::rt::io::Writer; use core::hash::Streaming; diff --git a/src/librustpkg/package_source.rs b/src/librustpkg/package_source.rs index a4a392e4bbb..6d8a6095ca4 100644 --- a/src/librustpkg/package_source.rs +++ b/src/librustpkg/package_source.rs @@ -183,7 +183,7 @@ impl PkgSrc { if self.libs.is_empty() && self.mains.is_empty() && self.tests.is_empty() && self.benchs.is_empty() { - note(~"Couldn't infer any crates to build.\n\ + 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);