use rustc::ty::{self, query::TyCtxtAt, Instance, ParamEnv};
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
-use syntax::ast::Mutability;
+use rustc_ast::ast::Mutability;
use super::{
AllocId, AllocMap, Allocation, AllocationExtra, CheckInAllocMsg, ErrorHandled, GlobalAlloc,
// # Function pointers
// (both global from `alloc_map` and local from `extra_fn_ptr_map`)
- if let Some(_) = self.get_fn_alloc(id) {
+ if self.get_fn_alloc(id).is_some() {
return if let AllocCheck::Dereferenceable = liveness {
// The caller requested no function pointers.
throw_unsup!(DerefFunctionPointer)