Unify the names of const eval queries and their return types

This commit is contained in:
Oliver Scherer
2020-08-20 18:55:07 +02:00
parent 69a6be73e6
commit 888afd50d9
12 changed files with 38 additions and 36 deletions

View File

@@ -52,8 +52,8 @@ pub fn provide(providers: &mut Providers) {
transform::provide(providers);
monomorphize::partitioning::provide(providers);
monomorphize::polymorphize::provide(providers);
providers.const_eval_for_ty = const_eval::const_eval_for_ty_provider;
providers.const_eval = const_eval::const_eval_provider;
providers.eval_to_const_value = const_eval::eval_to_const_value_provider;
providers.eval_to_allocation_raw = const_eval::eval_to_allocation_raw_provider;
providers.const_caller_location = const_eval::const_caller_location;
providers.destructure_const = |tcx, param_env_and_value| {
let (param_env, value) = param_env_and_value.into_parts();