mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
Merge pull request #377 from bjorn3/rustup_2018-05-10
Rustup to 1.27.0-nightly (acd3871ba 2018-05-10)
This commit is contained in:
+2
-6
@@ -401,7 +401,7 @@ fn field_with_lifetimes(
|
||||
}
|
||||
|
||||
// Potentially-fat pointers.
|
||||
ty::TyRef(_, ty::TypeAndMut { ty: pointee, .. }) |
|
||||
ty::TyRef(_, pointee, _) |
|
||||
ty::TyRawPtr(ty::TypeAndMut { ty: pointee, .. }) => {
|
||||
assert!(i < 2);
|
||||
|
||||
@@ -658,11 +658,7 @@ fn validate(
|
||||
}
|
||||
}
|
||||
TyNever => return err!(ValidationFailure(format!("The empty type is never valid."))),
|
||||
TyRef(region,
|
||||
ty::TypeAndMut {
|
||||
ty: pointee_ty,
|
||||
mutbl,
|
||||
}) => {
|
||||
TyRef(region, pointee_ty, mutbl) => {
|
||||
let val = self.read_place(query.place.1)?;
|
||||
// Sharing restricts our context
|
||||
if mutbl == MutImmutable {
|
||||
|
||||
Reference in New Issue
Block a user