Skip to content

Commit 4826a41

Browse files
committed
---
yaml --- r: 160756 b: refs/heads/master c: 5816d7f h: refs/heads/master v: v3
1 parent f21a7be commit 4826a41

File tree

10 files changed

+129
-120
lines changed

10 files changed

+129
-120
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e8d743ec1d0a23b0da41f8d79d18b45932a6dd5a
2+
refs/heads/master: 5816d7f5305ce4401326568785d624e689064311
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c9f6d696420107f82304b992cf623b806995fe18
55
refs/heads/try: 225de0d60f8ca8dcc62ab2fd8818ebbda4b58cfe

trunk/src/libcollections/binary_heap.rs

Lines changed: 1 addition & 1 deletion
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> {

trunk/src/libcollections/ring_buf.rs

Lines changed: 1 addition & 1 deletion
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 {

trunk/src/librustc/diagnostics.rs

Lines changed: 2 additions & 1 deletion
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
)

trunk/src/librustc/middle/traits/util.rs

Lines changed: 13 additions & 12 deletions
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

trunk/src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
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
}

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

Lines changed: 0 additions & 2 deletions
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

trunk/src/librustc_trans/trans/datum.rs

Lines changed: 1 addition & 1 deletion
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)