Rustup to rustc 1.36.0-nightly (e938c2b9a
2019-04-23)
This commit is contained in:
parent
004dc33031
commit
8c2bd3ec64
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue