X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_middle%2Fsrc%2Fquery%2Fmod.rs;h=3244c237b4794ecfa29067a67d1fc9ec45e7362b;hb=f713b5017c7ded572933605c08233b5d429d121d;hp=e07b174bc6aaa3cec64da30129f898697391da03;hpb=db374bd440fb19dd697524ff7b317219522dc545;p=rust.git diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index e07b174bc6a..3244c237b47 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -955,12 +955,17 @@ desc { "get a &core::panic::Location referring to a span" } } + // FIXME get rid of this with valtrees query lit_to_const( key: LitToConstInput<'tcx> ) -> Result, LitToConstError> { desc { "converting literal to const" } } + query lit_to_constant(key: LitToConstInput<'tcx>) -> Result, 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() }