Remove unused code from rustc_middle
This commit is contained in:
parent
f243a2ad90
commit
d7791f485b
12 changed files with 7 additions and 214 deletions
|
@ -534,10 +534,6 @@ impl<'tcx> TypeckResults<'tcx> {
|
|||
self.node_type(pat.hir_id)
|
||||
}
|
||||
|
||||
pub fn pat_ty_opt(&self, pat: &hir::Pat<'_>) -> Option<Ty<'tcx>> {
|
||||
self.node_type_opt(pat.hir_id)
|
||||
}
|
||||
|
||||
// Returns the type of an expression as a monotype.
|
||||
//
|
||||
// NB (1): This is the PRE-ADJUSTMENT TYPE for the expression. That is, in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue