Skip to content

Commit 3551851

Browse files
committed
auto merge of #12109 : omasanori/rust/small-fixes, r=sfackler
Most of them are to reduce warnings in testing builds.
2 parents 5acc998 + f87e507 commit 3551851

File tree

6 files changed

+5
-22
lines changed

6 files changed

+5
-22
lines changed

src/doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ li {list-style-type: none; }
5151
# Tooling
5252

5353
* [The `rustdoc` manual](rustdoc.html)
54-
* [The `rustpkg` manual](rustpkg.html)
5554

5655
# FAQs
5756

src/librustc/driver/driver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,6 @@ mod test {
11811181
use getopts::getopts;
11821182
use syntax::attr;
11831183
use syntax::attr::AttrMetaMethods;
1184-
use syntax::diagnostic;
11851184

11861185
// When the user supplies --test we should implicitly supply --cfg test
11871186
#[test]

src/libsemver/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,6 @@ impl cmp::Ord for Version {
152152
(_, _) => self.pre < other.pre
153153
}))
154154
}
155-
156-
#[inline]
157-
fn le(&self, other: &Version) -> bool {
158-
! (other < self)
159-
}
160-
#[inline]
161-
fn gt(&self, other: &Version) -> bool {
162-
other < self
163-
}
164-
#[inline]
165-
fn ge(&self, other: &Version) -> bool {
166-
! (self < other)
167-
}
168155
}
169156

170157
fn take_nonempty_prefix<T:Iterator<char>>(rdr: &mut T, pred: |char| -> bool)

src/libstd/c_str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ mod tests {
524524
#[test]
525525
fn test_to_c_str_fail() {
526526
use task;
527-
let mut error_happened = false;
528527
assert!(task::try(proc() { "he\x00llo".to_c_str() }).is_err());
529528
}
530529

src/libstd/unit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
#[cfg(not(test))]
1414
use default::Default;
15+
#[cfg(not(test))]
1516
use cmp::{Eq, Equal, Ord, Ordering, TotalEq, TotalOrd};
1617

1718
#[cfg(not(test))]

src/libsyntax/ext/expand.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -890,17 +890,15 @@ fn original_span(cx: &ExtCtxt) -> @codemap::ExpnInfo {
890890
mod test {
891891
use super::*;
892892
use ast;
893-
use ast::{Attribute_, AttrOuter, MetaWord, EMPTY_CTXT};
894-
use ast_util::{get_sctable, mtwt_marksof, mtwt_resolve, new_rename};
893+
use ast::{Attribute_, AttrOuter, MetaWord};
894+
use ast_util::{get_sctable, mtwt_marksof, mtwt_resolve};
895895
use ast_util;
896896
use codemap;
897897
use codemap::Spanned;
898-
use fold::*;
899898
use ext::base::{CrateLoader, MacroCrate};
900899
use parse;
901-
use parse::token::{fresh_mark, gensym, intern};
902900
use parse::token;
903-
use util::parser_testing::{string_to_crate, string_to_crate_and_sess};
901+
use util::parser_testing::{string_to_crate_and_sess};
904902
use util::parser_testing::{string_to_pat, strs_to_idents};
905903
use visit;
906904
use visit::Visitor;
@@ -1227,7 +1225,7 @@ foo_module!()
12271225
"xx" == string.get()
12281226
}
12291227
}).enumerate() {
1230-
if (mtwt_resolve(v.segments[0].identifier) != resolved_binding) {
1228+
if mtwt_resolve(v.segments[0].identifier) != resolved_binding {
12311229
println!("uh oh, xx binding didn't match xx varref:");
12321230
println!("this is xx varref \\# {:?}",idx);
12331231
println!("binding: {:?}",cxbind);

0 commit comments

Comments
 (0)