Skip to content

post const args in type dependent paths cleanup #74360

Closed
@lcnr

Description

@lcnr

#74113 has some open FIXMEs

  • consider caching opt_const_param_of on disk (perf)
  • consider first calling tcx.def_kind(def_id) in opt_const_param_of to improve incremental
  • add a helper method for
if def.const_param_did.is_none() {
    if let const_param_did @ Some(_) = tcx.opt_const_param_of(def.did) {
        return tcx.query(ty::WithOptConstParam { const_param_did, ..def });
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-genericsArea: const generics (parameters and arguments)C-enhancementCategory: An issue proposing an enhancement or a PR with one.F-const_generics`#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions