Skip to content

Commit c064961

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

File tree

6 files changed

+124
-116
lines changed

6 files changed

+124
-116
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/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/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)

0 commit comments

Comments
 (0)