You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mir_utils.rs
    path of file: ./repos/prusti-dev/analysis/src
    
    the code of the file until where you have to start completion: // Â© 2021, ETH Zurich
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

//! Various helper functions for working with `mir` types.
//! copied from prusti-interface/u
    
pub fn get_blocked_place<'tcx>(tcx: TyCtxt<'tcx>, borrowed: Place<'tcx>) -> Place<'tcx> {
    for (place_ref, place_elem) in borrowed.iter_projections() {
        match place_elem {
            mir::ProjectionElem::Deref
            | mir::ProjectionElem::Index(..)
            | mir::ProjectionElem::ConstantIndex { .. }
            | mir::ProjectionElem::Subslice { .. } => {
                return (mir::Place {
                    local: place_ref.local,
                    projection: tcx.mk_place_elems(place_ref.projection),
                })
                .into();
            }
            mir::ProjectionElem::Field(..)
            | mir::ProjectionElem::Downcast(..)
            | mir::ProjectionElem::OpaqueCast(..) => {
                // Continue
            }
        }
    }
    borrowed
}