File tree 1 file changed +0
-45
lines changed
compiler/rustc_hir_typeck/src
1 file changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -150,51 +150,6 @@ pub trait TypeInformationCtxt<'tcx> {
150
150
fn tcx ( & self ) -> TyCtxt < ' tcx > ;
151
151
}
152
152
153
- impl < ' tcx > TypeInformationCtxt < ' tcx > for ( TyCtxt < ' tcx > , LocalDefId ) {
154
- type TypeckResults < ' a >
155
- = & ' tcx ty:: TypeckResults < ' tcx >
156
- where
157
- Self : ' a ;
158
-
159
- type Error = !;
160
-
161
- fn typeck_results ( & self ) -> Self :: TypeckResults < ' _ > {
162
- self . 0 . typeck ( self . 1 )
163
- }
164
-
165
- fn resolve_vars_if_possible < T : TypeFoldable < TyCtxt < ' tcx > > > ( & self , t : T ) -> T {
166
- t
167
- }
168
-
169
- fn try_structurally_resolve_type ( & self , _span : Span , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
170
- ty
171
- }
172
-
173
- fn report_error ( & self , span : Span , msg : impl ToString ) -> Self :: Error {
174
- span_bug ! ( span, "{}" , msg. to_string( ) )
175
- }
176
-
177
- fn error_reported_in_ty ( & self , _ty : Ty < ' tcx > ) -> Result < ( ) , Self :: Error > {
178
- Ok ( ( ) )
179
- }
180
-
181
- fn tainted_by_errors ( & self ) -> Result < ( ) , Self :: Error > {
182
- Ok ( ( ) )
183
- }
184
-
185
- fn type_is_copy_modulo_regions ( & self , ty : Ty < ' tcx > ) -> bool {
186
- ty. is_copy_modulo_regions ( self . 0 , self . 0 . param_env ( self . 1 ) )
187
- }
188
-
189
- fn body_owner_def_id ( & self ) -> LocalDefId {
190
- self . 1
191
- }
192
-
193
- fn tcx ( & self ) -> TyCtxt < ' tcx > {
194
- self . 0
195
- }
196
- }
197
-
198
153
impl < ' tcx > TypeInformationCtxt < ' tcx > for & FnCtxt < ' _ , ' tcx > {
199
154
type TypeckResults < ' a >
200
155
= Ref < ' a , ty:: TypeckResults < ' tcx > >
You can’t perform that action at this time.
0 commit comments