Account for UseCloned on expr_use_visitor
This commit is contained in:
parent
edcbc9b535
commit
b43b700250
6 changed files with 98 additions and 2 deletions
|
@ -683,6 +683,10 @@ impl<'tcx> LateContext<'tcx> {
|
|||
self.tcx.type_is_copy_modulo_regions(self.typing_env(), ty)
|
||||
}
|
||||
|
||||
pub fn type_is_use_cloned_modulo_regions(&self, ty: Ty<'tcx>) -> bool {
|
||||
self.tcx.type_is_use_cloned_modulo_regions(self.typing_env(), ty)
|
||||
}
|
||||
|
||||
/// Gets the type-checking results for the current body,
|
||||
/// or `None` if outside a body.
|
||||
pub fn maybe_typeck_results(&self) -> Option<&'tcx ty::TypeckResults<'tcx>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue