Closed
Description
Currently the MIR type checker has some kind of hacky code to figure out what sorts of well-formedness constraints are present on a constant. The values of constants now are "post normalization" and don't give us ready access to what we need. As the comment from the code says:
// FIXME(#46702) -- We need some way to get the predicates
// associated with the "pre-evaluated" form of the
// constant. For example, consider that the constant
// may have associated constant projections (`<Foo as
// Trait<'a, 'b>>::SOME_CONST`) that impose
// constraints on `'a` and `'b`. These constraints
// would be lost if we just look at the normalized
// value.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
nikomatsakis commentedon Jul 3, 2018
I'm not really aware of any actual problems linked to this code, but I'll push it to the release milestone.
pnkfelix commentedon Jul 24, 2018
visited for triage. @nikomatsakis believes this continues to be a potential issue of (potentially bad) interaction between miri integration and MIR/NLL. tagging as NLL-deferred
pnkfelix commentedon Nov 8, 2018
Visited for T-compiler triage. I cannot imagine us blocking the release on this, given that there are not known bugs linked directly to this code...
I-nominating for discussion at next WG-compiler-nll meeting. Removing from Release milestone.
pnkfelix commentedon Nov 29, 2018
unnominating. We'll get to this when we get to all the NLL-deferred issues, and right now its just clogging up T-compiler process.
18 remaining items