rust/compiler/rustc_passes/src
bors 701496384f Auto merge of #86571 - fee1-dead:const-trait-impl-fix, r=jackh726
deny using default function in impl const Trait

Fixes #79450.

I don't know if my implementation is correct:

 - The check is in `rustc_passes::check_const`, should I put it somewhere else instead?
 - Is my approach (to checking the impl) optimal? It works for the current tests, but it might have some issues or there might be a better way of doing this.
2021-07-03 07:24:24 +00:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Check that #[cmse_nonsecure_entry] is applied to a function definition 2021-06-25 17:49:41 +02:00
check_const.rs Do the check even when the feature is not enabled 2021-07-01 11:29:49 +08:00
dead.rs Auto merge of #85178 - cjgillot:local-crate, r=oli-obk 2021-05-17 01:42:03 +00:00
diagnostic_items.rs Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
entry.rs Fix ICE when main is declared in an extern block 2021-06-09 23:14:02 -04:00
hir_id_validator.rs GenericParam does not need to be a HIR owner. 2021-03-23 22:47:22 +01:00
hir_stats.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
intrinsicck.rs Remove support for floating-point constants in asm! 2021-05-14 14:58:21 +01:00
lang_items.rs Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
layout_test.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
lib_features.rs Use () for lang items. 2021-05-12 13:58:45 +02:00
lib.rs deny using default function in impl const Trait 2021-06-23 19:21:57 +08:00
liveness.rs Split span_to_string into span_to_diagnostic/embeddable_string 2021-05-11 00:04:12 +01:00
loops.rs Do not suggest using a break label when one is already present 2021-01-21 21:43:29 -08:00
naked_functions.rs Do not store attrs in FnKind. 2021-03-09 19:09:33 +01:00
reachable.rs Auto merge of #85178 - cjgillot:local-crate, r=oli-obk 2021-05-17 01:42:03 +00:00
region.rs Split span_to_string into span_to_diagnostic/embeddable_string 2021-05-11 00:04:12 +01:00
stability.rs Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
upvars.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00