This query is not doing anything anymore and only used in two locations.
Steps for resolving this issue:
- grep for
const_to_allocation and remember where the two tcx.const_to_allocation calls are
- remove every mention of it
- grep for
ConstToAllocation
- remove every mentioon of it
- start building (this takes some time before it hits your use sites, let the computer work in parallel to you)
- go back to the former call sites and replace them by pattern matching on the argument to extract the necessary data from the
ByRef and panic if it's not ByRef.
- remove all the comments at the call sites talking about the query
- open a PR
- ping @RalfJung on the PR and watch his happiness meter go up
This query is not doing anything anymore and only used in two locations.
Steps for resolving this issue:
const_to_allocationand remember where the twotcx.const_to_allocationcalls areConstToAllocationByRefand panic if it's notByRef.