1
Fork 0

remove redundant clones

This commit is contained in:
Matthias Krüger 2020-12-05 12:59:54 +01:00
parent 0781b4474b
commit 1734f9c291
3 changed files with 3 additions and 3 deletions

View file

@ -581,7 +581,7 @@ impl<'tcx> TyCtxt<'tcx> {
let mut const_map = FxHashMap::default();
if !value.has_escaping_bound_vars() {
(value.clone(), region_map)
(value, region_map)
} else {
let mut real_fld_r = |br| *region_map.entry(br).or_insert_with(|| fld_r(br));