Skip to content

Commit c2dba85

Browse files
committed
Merge conflicts
1 parent 38fdd50 commit c2dba85

6 files changed

+23
-33
lines changed

src/librustc/middle/ty_relate/mod.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ fn relate_item_substs<'a,'tcx:'a,R>(relation: &mut R,
122122
relate_substs(relation, opt_variances, a_subst, b_subst)
123123
}
124124

125-
fn relate_substs<'a,'tcx,R>(relation: &mut R,
126-
variances: Option<&ty::ItemVariances>,
127-
a_subst: &Substs<'tcx>,
128-
b_subst: &Substs<'tcx>)
129-
-> RelateResult<'tcx, Substs<'tcx>>
125+
fn relate_substs<'a,'tcx:'a,R>(relation: &mut R,
126+
variances: Option<&ty::ItemVariances>,
127+
a_subst: &Substs<'tcx>,
128+
b_subst: &Substs<'tcx>)
129+
-> RelateResult<'tcx, Substs<'tcx>>
130130
where R: TypeRelation<'a,'tcx>
131131
{
132132
let mut substs = Substs::empty();
@@ -161,11 +161,11 @@ fn relate_substs<'a,'tcx,R>(relation: &mut R,
161161
Ok(substs)
162162
}
163163

164-
fn relate_type_params<'a,'tcx,R>(relation: &mut R,
165-
variances: Option<&[ty::Variance]>,
166-
a_tys: &[Ty<'tcx>],
167-
b_tys: &[Ty<'tcx>])
168-
-> RelateResult<'tcx, Vec<Ty<'tcx>>>
164+
fn relate_type_params<'a,'tcx:'a,R>(relation: &mut R,
165+
variances: Option<&[ty::Variance]>,
166+
a_tys: &[Ty<'tcx>],
167+
b_tys: &[Ty<'tcx>])
168+
-> RelateResult<'tcx, Vec<Ty<'tcx>>>
169169
where R: TypeRelation<'a,'tcx>
170170
{
171171
if a_tys.len() != b_tys.len() {
@@ -264,10 +264,10 @@ impl<'a,'tcx:'a> Relate<'a,'tcx> for ty::FnSig<'tcx> {
264264
}
265265
}
266266

267-
fn relate_arg_vecs<'a,'tcx,R>(relation: &mut R,
268-
a_args: &[Ty<'tcx>],
269-
b_args: &[Ty<'tcx>])
270-
-> RelateResult<'tcx, Vec<Ty<'tcx>>>
267+
fn relate_arg_vecs<'a,'tcx:'a,R>(relation: &mut R,
268+
a_args: &[Ty<'tcx>],
269+
b_args: &[Ty<'tcx>])
270+
-> RelateResult<'tcx, Vec<Ty<'tcx>>>
271271
where R: TypeRelation<'a,'tcx>
272272
{
273273
if a_args.len() != b_args.len() {
@@ -629,10 +629,10 @@ impl<'a,'tcx:'a,T> Relate<'a,'tcx> for Box<T>
629629
///////////////////////////////////////////////////////////////////////////
630630
// Error handling
631631

632-
pub fn expected_found<'a,'tcx,R,T>(relation: &mut R,
633-
a: &T,
634-
b: &T)
635-
-> ty::expected_found<T>
632+
pub fn expected_found<'a,'tcx:'a,R,T>(relation: &mut R,
633+
a: &T,
634+
b: &T)
635+
-> ty::expected_found<T>
636636
where R: TypeRelation<'a,'tcx>, T: Clone
637637
{
638638
expected_found_bool(relation.a_is_expected(), a, b)

src/test/auxiliary/coherence_copy_like_lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
#![crate_type = "rlib"]
1212
#![feature(fundamental)]
1313

14-
use std::marker::MarkerTrait;
15-
16-
pub trait MyCopy : MarkerTrait { }
14+
pub trait MyCopy { }
1715
impl MyCopy for i32 { }
1816

1917
pub struct MyStruct<T>(T);

src/test/compile-fail/coherence_copy_like_err_fundamental_struct.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818

1919
extern crate coherence_copy_like_lib as lib;
2020

21-
use std::marker::MarkerTrait;
22-
2321
struct MyType { x: i32 }
2422

25-
trait MyTrait : MarkerTrait { }
23+
trait MyTrait { }
2624
impl<T: lib::MyCopy> MyTrait for T { }
2725

2826
// `MyFundamentalStruct` is declared fundamental, so we can test that

src/test/compile-fail/coherence_copy_like_err_fundamental_struct_ref.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818

1919
extern crate coherence_copy_like_lib as lib;
2020

21-
use std::marker::MarkerTrait;
22-
2321
struct MyType { x: i32 }
2422

25-
trait MyTrait : MarkerTrait { }
23+
trait MyTrait { }
2624
impl<T: lib::MyCopy> MyTrait for T { }
2725

2826
// `MyFundamentalStruct` is declared fundamental, so we can test that

src/test/run-pass/coherence_copy_like.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515

1616
extern crate coherence_copy_like_lib as lib;
1717

18-
use std::marker::MarkerTrait;
19-
2018
struct MyType { x: i32 }
2119

22-
trait MyTrait : MarkerTrait { }
20+
trait MyTrait { }
2321
impl<T: lib::MyCopy> MyTrait for T { }
2422
impl MyTrait for MyType { }
2523
impl<'a> MyTrait for &'a MyType { }

src/test/run-pass/traits-conditional-dispatch.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
#![allow(unknown_features)]
1818
#![feature(box_syntax)]
1919

20-
use std::marker::MarkerTrait;
21-
2220
trait Get {
2321
fn get(&self) -> Self;
2422
}
2523

26-
trait MyCopy : MarkerTrait { fn copy(&self) -> Self; }
24+
trait MyCopy { fn copy(&self) -> Self; }
2725
impl MyCopy for u16 { fn copy(&self) -> Self { *self } }
2826
impl MyCopy for u32 { fn copy(&self) -> Self { *self } }
2927
impl MyCopy for i32 { fn copy(&self) -> Self { *self } }

0 commit comments

Comments
 (0)