Add inferred args to typeck
This commit is contained in:
parent
417b098cfc
commit
3605675bb1
18 changed files with 132 additions and 52 deletions
|
@ -272,11 +272,11 @@ impl<'hir> Map<'hir> {
|
|||
GenericParamKind::Type { .. } => DefKind::TyParam,
|
||||
GenericParamKind::Const { .. } => DefKind::ConstParam,
|
||||
},
|
||||
Node::Infer(_) => todo!(),
|
||||
Node::Crate(_) => DefKind::Mod,
|
||||
Node::Stmt(_)
|
||||
| Node::PathSegment(_)
|
||||
| Node::Ty(_)
|
||||
| Node::Infer(_)
|
||||
| Node::TraitRef(_)
|
||||
| Node::Pat(_)
|
||||
| Node::Binding(_)
|
||||
|
|
|
@ -133,11 +133,6 @@ rustc_queries! {
|
|||
cache_on_disk_if { key.is_local() }
|
||||
}
|
||||
|
||||
query generic_arg_for_infer_arg(key: DefId) -> hir::GenericArg<'tcx> {
|
||||
desc { |tcx| "computes concrete type for inference, `{}`", tcx.def_path_str(key) }
|
||||
storage(ArenaCacheSelector<'tcx>)
|
||||
}
|
||||
|
||||
/// Maps from the `DefId` of an item (trait/struct/enum/fn) to the
|
||||
/// predicates (where-clauses) that must be proven true in order
|
||||
/// to reference it. This is almost always the "predicates query"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue