We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 009389f commit 3bd0a37Copy full SHA for 3bd0a37
src/librustc/middle/typeck/mod.rs
@@ -264,15 +264,6 @@ pub fn write_substs_to_tcx(tcx: &ty::ctxt,
264
tcx.node_type_substs.borrow_mut().insert(node_id, substs);
265
}
266
267
-pub fn write_tpt_to_tcx(tcx: &ty::ctxt,
268
- node_id: ast::NodeId,
269
- tpt: &ty::ty_param_substs_and_ty) {
270
- write_ty_to_tcx(tcx, node_id, tpt.ty);
271
- if !tpt.substs.tps.is_empty() {
272
- write_substs_to_tcx(tcx, node_id, tpt.substs.tps.clone());
273
- }
274
-}
275
-
276
pub fn lookup_def_tcx(tcx:&ty::ctxt, sp: Span, id: ast::NodeId) -> ast::Def {
277
match tcx.def_map.borrow().find(&id) {
278
Some(&x) => x,
0 commit comments