Skip to content

Commit 5dc3d05

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171707 b: refs/heads/beta c: 964ff83 h: refs/heads/master i: 171705: 2a4fb38 171703: da66367 v: v3
1 parent 6c4d582 commit 5dc3d05

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 274146d650e9c5ef476cb31bbc47e555ed4d359b
34+
refs/heads/beta: 964ff83cbccee1544d95d8197ea239ba5da1d23d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/src/librustc_trans/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn sanitize(s: &str) -> String {
266266
return result;
267267
}
268268

269-
pub fn mangle<PI: Iterator<PathElem>>(mut path: PI,
269+
pub fn mangle<PI: Iterator<Item=PathElem>>(mut path: PI,
270270
hash: Option<&str>) -> String {
271271
// Follow C++ namespace-mangling style, see
272272
// http://en.wikipedia.org/wiki/Name_mangling for more info.

branches/beta/src/librustc_trans/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(rustc_diagnostic_macros)]
2929
#![feature(unboxed_closures)]
3030
#![feature(old_orphan_check)]
31+
#![feature(associated_types)]
3132

3233
extern crate arena;
3334
extern crate flate;

branches/beta/src/librustc_trans/trans/base.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,9 @@ fn internalize_symbols(cx: &SharedCrateContext, reachable: &HashSet<String>) {
30703070
step: unsafe extern "C" fn(ValueRef) -> ValueRef,
30713071
}
30723072

3073-
impl Iterator<ValueRef> for ValueIter {
3073+
impl Iterator for ValueIter {
3074+
type Item = ValueRef;
3075+
30743076
fn next(&mut self) -> Option<ValueRef> {
30753077
let old = self.cur;
30763078
if !old.is_null() {

branches/beta/src/librustc_trans/trans/context.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ pub struct CrateContextIterator<'a, 'tcx: 'a> {
168168
index: uint,
169169
}
170170

171-
impl<'a, 'tcx> Iterator<CrateContext<'a, 'tcx>> for CrateContextIterator<'a,'tcx> {
171+
impl<'a, 'tcx> Iterator for CrateContextIterator<'a,'tcx> {
172+
type Item = CrateContext<'a, 'tcx>;
173+
172174
fn next(&mut self) -> Option<CrateContext<'a, 'tcx>> {
173175
if self.index >= self.shared.local_ccxs.len() {
174176
return None;
@@ -193,7 +195,9 @@ pub struct CrateContextMaybeIterator<'a, 'tcx: 'a> {
193195
origin: uint,
194196
}
195197

196-
impl<'a, 'tcx> Iterator<(CrateContext<'a, 'tcx>, bool)> for CrateContextMaybeIterator<'a, 'tcx> {
198+
impl<'a, 'tcx> Iterator for CrateContextMaybeIterator<'a, 'tcx> {
199+
type Item = (CrateContext<'a, 'tcx>, bool);
200+
197201
fn next(&mut self) -> Option<(CrateContext<'a, 'tcx>, bool)> {
198202
if self.index >= self.shared.local_ccxs.len() {
199203
return None;

branches/beta/src/librustc_trans/trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ pub fn get_vtable<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
727727
}
728728

729729
/// Helper function to declare and initialize the vtable.
730-
pub fn make_vtable<I: Iterator<ValueRef>>(ccx: &CrateContext,
730+
pub fn make_vtable<I: Iterator<Item=ValueRef>>(ccx: &CrateContext,
731731
drop_glue: ValueRef,
732732
size: ValueRef,
733733
align: ValueRef,

branches/beta/src/librustc_trans/trans/value.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ pub struct Users {
155155
next: Option<Use>
156156
}
157157

158-
impl Iterator<Value> for Users {
158+
impl Iterator for Users {
159+
type Item = Value;
160+
159161
fn next(&mut self) -> Option<Value> {
160162
let current = self.next;
161163

0 commit comments

Comments
 (0)