dont use a query for lit_to_constant

This commit is contained in:
b-naber 2022-03-23 19:41:35 +01:00
parent 1b5fbe2076
commit 19041d995d
5 changed files with 9 additions and 18 deletions

View file

@ -962,10 +962,6 @@ rustc_queries! {
desc { "converting literal to const" }
}
query lit_to_constant(key: LitToConstInput<'tcx>) -> Result<mir::ConstantKind<'tcx>, LitToConstError> {
desc { "converting literal to mir constant"}
}
query check_match(key: DefId) {
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key) }
cache_on_disk_if { key.is_local() }