[breaking-change] don't glob export ast::Mutablity variants
This commit is contained in:
parent
14e09ad468
commit
73fa9b2da2
21 changed files with 87 additions and 73 deletions
|
|
@ -105,8 +105,8 @@ impl<'a,'tcx:'a> Relate<'a,'tcx> for ty::TypeAndMut<'tcx> {
|
|||
} else {
|
||||
let mutbl = a.mutbl;
|
||||
let variance = match mutbl {
|
||||
ast::MutImmutable => ty::Covariant,
|
||||
ast::MutMutable => ty::Invariant,
|
||||
ast::Mutability::MutImmutable => ty::Covariant,
|
||||
ast::Mutability::MutMutable => ty::Invariant,
|
||||
};
|
||||
let ty = try!(relation.relate_with_variance(variance, &a.ty, &b.ty));
|
||||
Ok(ty::TypeAndMut {ty: ty, mutbl: mutbl})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue