Skip to content

Commit e0587ba

Browse files
committed
---
yaml --- r: 160959 b: refs/heads/auto c: 5816d7f h: refs/heads/master i: 160957: 57ef21e 160955: 5fc7420 160951: 9f0c2bd 160943: 169fc10 160927: 6aa5b0b 160895: 4d9b4a6 v: v3
1 parent be2a33d commit e0587ba

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: e8d743ec1d0a23b0da41f8d79d18b45932a6dd5a
13+
refs/heads/auto: 5816d7f5305ce4401326568785d624e689064311
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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> {

branches/auto/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 {

branches/auto/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
)

branches/auto/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

branches/auto/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
}

branches/auto/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

branches/auto/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)