Skip to content

Commit 5816d7f

Browse files
committed
More test fixes and rebase conflicts!
1 parent e8d743e commit 5816d7f

File tree

9 files changed

+128
-119
lines changed

9 files changed

+128
-119
lines changed

src/libcollections/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ impl<'a, T> DoubleEndedIterator<&'a T> for Items<'a, T> {
572572
fn next_back(&mut self) -> Option<(&'a T)> { self.iter.next_back() }
573573
}
574574

575-
impl<'a, T> ExactSize<&'a T> for Items<'a, T> {}
575+
impl<'a, T> ExactSizeIterator<&'a T> for Items<'a, T> {}
576576

577577
/// An iterator that moves out of a `BinaryHeap`.
578578
pub struct MoveItems<T> {

src/libcollections/ring_buf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ impl<T> DoubleEndedIterator<T> for MoveItems<T> {
797797
}
798798

799799

800-
impl<T> ExactSize<T> for MoveItems<T> {}
800+
impl<T> ExactSizeIterator<T> for MoveItems<T> {}
801801

802802
impl<A: PartialEq> PartialEq for RingBuf<A> {
803803
fn eq(&self, other: &RingBuf<A>) -> bool {

src/librustc/diagnostics.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,6 @@ register_diagnostics!(
147147
E0168,
148148
E0169,
149149
E0170,
150-
E0171
150+
E0171,
151+
E0172
151152
)

src/librustc/middle/traits/util.rs

+13-12
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,19 @@ pub fn supertraits<'cx, 'tcx>(tcx: &'cx ty::ctxt<'tcx>,
4242
trait_ref: Rc<ty::TraitRef<'tcx>>)
4343
-> Supertraits<'cx, 'tcx>
4444
{
45-
/// Returns an iterator over the trait reference `T` and all of its supertrait references. May
46-
/// contain duplicates. In general the ordering is not defined.
47-
///
48-
/// Example:
49-
///
50-
/// ```
51-
/// trait Foo { ... }
52-
/// trait Bar : Foo { ... }
53-
/// trait Baz : Bar+Foo { ... }
54-
/// ```
55-
///
56-
/// `supertraits(Baz)` yields `[Baz, Bar, Foo, Foo]` in some order.
45+
//! Returns an iterator over the trait reference `T` and all of its supertrait references. May
46+
//! contain duplicates. In general the ordering is not defined.
47+
//!
48+
//! Example:
49+
//!
50+
//! ```
51+
//! trait Foo { ... }
52+
//! trait Bar : Foo { ... }
53+
//! trait Baz : Bar+Foo { ... }
54+
//! ```
55+
//!
56+
//! `supertraits(Baz)` yields `[Baz, Bar, Foo, Foo]` in some order.
57+
5758
transitive_bounds(tcx, &[trait_ref])
5859
}
5960

src/librustc/middle/typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
703703
path));
704704
}
705705
_ => {
706-
span_err!(this.tcx().sess, ty.span, E0170, "expected a reference to a trait");
706+
span_err!(this.tcx().sess, ty.span, E0172, "expected a reference to a trait");
707707
Err(ErrorReported)
708708
}
709709
}

src/librustc/middle/typeck/check/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,6 @@ fn compare_impl_method<'tcx>(tcx: &ty::ctxt<'tcx>,
12521252
-> bool
12531253
{
12541254

1255-
*/
1256-
12571255
let trait_params = trait_generics.regions.get_slice(subst::FnSpace);
12581256
let impl_params = impl_generics.regions.get_slice(subst::FnSpace);
12591257

src/librustc_trans/trans/datum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ impl<'tcx, K: KindOps + fmt::Show> Datum<'tcx, K> {
552552
self.kind)
553553
}
554554

555-
//! See the `appropriate_rvalue_mode()` function
555+
/// See the `appropriate_rvalue_mode()` function
556556
pub fn appropriate_rvalue_mode<'a>(&self, ccx: &CrateContext<'a, 'tcx>)
557557
-> RvalueMode {
558558
appropriate_rvalue_mode(ccx, self.ty)

src/libstd/fmt.rs

+108-99
Large diffs are not rendered by default.

src/libterm/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn stderr() -> Option<Box<Terminal<WriterWrapper> + Send>> {
124124
#[cfg(windows)]
125125
/// Return a Terminal wrapping stderr, or None if a terminal couldn't be
126126
/// opened.
127-
pub fn stderr() -> Option<Box<Terminal<WriterWrapper> + Send> + Send> {
127+
pub fn stderr() -> Option<Box<Terminal<WriterWrapper> + Send>> {
128128
let ti = TerminfoTerminal::new(WriterWrapper {
129129
wrapped: box std::io::stderr() as Box<Writer + Send>,
130130
});

0 commit comments

Comments
 (0)