Rustup to rustc 1.36.0-nightly (e938c2b9a 2019-04-23)

This commit is contained in:
bjorn3 2019-04-24 16:35:00 +02:00
parent 004dc33031
commit 8c2bd3ec64

View file

@ -190,7 +190,7 @@ fn data_id_for_static<'a, 'tcx: 'a, B: Backend>(
linkage: Linkage,
) -> DataId {
let symbol_name = tcx.symbol_name(Instance::mono(tcx, def_id)).as_str();
let is_mutable = if let ::rustc::hir::Mutability::MutMutable = tcx.is_static(def_id).unwrap() {
let is_mutable = if tcx.is_mutable_static(def_id) {
true
} else {
!tcx.type_of(def_id)