mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 01:17:39 +00:00
Fix spelling mistake
This commit is contained in:
parent
c6604bb281
commit
90cbc858e9
@ -484,7 +484,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
|
||||
if let Some(&PathResolution { base_def: DefConst(id), ..}) = lcx.tcx.def_map.borrow().get(&e.id) {
|
||||
maybe_id = Some(id);
|
||||
}
|
||||
// separate if lets to avoid doubleborrowing the defmap
|
||||
// separate if lets to avoid double borrowing the def_map
|
||||
if let Some(id) = maybe_id {
|
||||
if let Some(const_expr) = lookup_const_by_id(lcx.tcx, id, None) {
|
||||
let ret = self.expr(const_expr);
|
||||
|
Loading…
Reference in New Issue
Block a user