You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
We might just have a small helper function in librustc_mir/const_eval.rs doing this extraction. Depends on how often it is used, I guess.
Activity
RalfJung commentedon Aug 31, 2018
We might just have a small helper function in
librustc_mir/const_eval.rsdoing this extraction. Depends on how often it is used, I guess.Rollup merge of rust-lang#53850 - csmoe:const_to_alloc, r=RalfJung
RalfJung commentedon Sep 1, 2018
Happiness meter up :)