diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-06-21 14:32:52 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-03 15:02:51 -0600 |
| commit | e11d9ddb7d53ae13df447ddb1ebfd2fe380fde88 (patch) | |
| tree | 805637725d14e953fb07c5d9842c621b82479134 /src/librustc/middle/mem_categorization.rs | |
| parent | 77e7352bbe64e7142a41cff1ca7a8bbff3e215bb (diff) | |
| download | rust-e11d9ddb7d53ae13df447ddb1ebfd2fe380fde88.tar.gz rust-e11d9ddb7d53ae13df447ddb1ebfd2fe380fde88.zip | |
use `pat_ty_adjusted` from `expr_use_visitor` to type of arguments
Diffstat (limited to 'src/librustc/middle/mem_categorization.rs')
| -rw-r--r-- | src/librustc/middle/mem_categorization.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/mem_categorization.rs b/src/librustc/middle/mem_categorization.rs index b717986dce9..fa668678ece 100644 --- a/src/librustc/middle/mem_categorization.rs +++ b/src/librustc/middle/mem_categorization.rs @@ -517,7 +517,7 @@ impl<'a, 'gcx, 'tcx> MemCategorizationContext<'a, 'gcx, 'tcx> { /// implicit deref patterns attached (e.g., it is really /// `&Some(x)`). In that case, we return the "outermost" type /// (e.g., `&Option<T>). - fn pat_ty_adjusted(&self, pat: &hir::Pat) -> McResult<Ty<'tcx>> { + pub fn pat_ty_adjusted(&self, pat: &hir::Pat) -> McResult<Ty<'tcx>> { // Check for implicit `&` types wrapping the pattern; note // that these are never attached to binding patterns, so // actually this is somewhat "disjoint" from the code below |
