rust/compiler
Jack Huey 3aed8b17a8
Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr
Add better diagnostic for unbounded Abst. Const

~~In the case where a generic abst. const requires a trivial where bound: `where TypeWithConst<const_fn(N)>: ,`,
instead of requiring a where bound, just check that only consts are being substituted in to skip over where check.~~

~~This is pretty sketchy, but I think it works. Presumably, if there is checking for type bounds added later, it can first check nested requirements, and see if they're satisfied by the current `ParamEnv`.~~

Changed the diagnostic to add a better example, which is more practical than what was previously proposed.

r? ```@lcnr```
2021-02-02 16:01:39 -05:00
..
rustc
rustc_apfloat
rustc_arena Rollup merge of #80470 - SimonSapin:array-intoiter-type, r=m-ou-se 2021-01-31 01:47:25 +01:00
rustc_ast Assert the size of the refactored enums 2021-02-01 09:23:40 +01:00
rustc_ast_lowering Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_ast_passes Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_ast_pretty Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_attr Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_builtin_macros Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_codegen_cranelift Rollup merge of #81618 - bjorn3:sync_cg_clif-2021-02-01, r=bjorn3 2021-02-01 14:29:47 +01:00
rustc_codegen_llvm Rollup merge of #81455 - Amanieu:aarch64_ilp32, r=sanxiyn 2021-02-02 16:01:35 -05:00
rustc_codegen_ssa Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_data_structures Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_driver Indicate both start and end of pass RSS in time-passes output 2021-01-29 12:46:29 -08:00
rustc_error_codes Rollup merge of #81572 - pierwill:edit-error-codes-1, r=jonas-schievink 2021-01-31 16:36:54 +01:00
rustc_errors Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_expand Improve handling of spans around macro result parse errors 2021-01-31 15:24:34 -05:00
rustc_feature Remove const_in_array_rep_expr 2021-01-30 23:20:24 +00:00
rustc_fs_util Optimize away a fs::metadata call. 2021-01-06 08:33:15 -08:00
rustc_graphviz remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
rustc_hir Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_hir_pretty Add loop head span to hir 2021-01-21 21:41:46 -08:00
rustc_incremental Auto merge of #80957 - tgnottingham:direct_serialize_depgraph, r=michaelwoerister 2021-01-19 19:36:41 +00:00
rustc_index Switch compiler/ to intra-doc links 2020-12-18 15:22:51 -05:00
rustc_infer Rollup merge of #80593 - jackh726:chalk-upgrade, r=nikomatsakis 2021-02-02 16:01:32 -05:00
rustc_interface Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_lexer Return EOF_CHAR constant instead of magic char. 2021-01-07 13:20:04 +01:00
rustc_lint Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_lint_defs Mark the lint doc as compile_fail 2021-02-01 22:13:42 -05:00
rustc_llvm Use probe-stack=inline-asm in LLVM 11+ 2021-01-14 22:49:16 -05:00
rustc_macros Indent the code correctly again after removing the query categories. 2021-01-31 21:40:03 +01:00
rustc_metadata Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
rustc_middle Rollup merge of #80593 - jackh726:chalk-upgrade, r=nikomatsakis 2021-02-02 16:01:32 -05:00
rustc_mir Rollup merge of #81463 - matsujika:nll-ensure-c-case, r=varkor 2021-02-01 14:29:35 +01:00
rustc_mir_build Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_parse Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_parse_format rustc_parse_format: Fix character indices in find_skips 2021-01-17 17:40:58 +03:00
rustc_passes Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_plugin_impl Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
rustc_privacy more things are const evaluatable *sparkles* 2021-02-01 20:05:50 +00:00
rustc_query_system Auto merge of #80692 - Aaron1011:feature/query-result-debug, r=estebank 2021-01-26 05:47:23 +00:00
rustc_resolve Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_save_analysis Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
rustc_serialize stabilize int_bits_const 2021-01-31 21:50:47 +10:00
rustc_session Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_span Rollup merge of #81608 - Aaron1011:macro-res-parse-err, r=davidtwco 2021-02-02 12:15:02 +01:00
rustc_symbol_mangling Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se 2021-01-30 13:36:44 +09:00
rustc_target Rollup merge of #81455 - Amanieu:aarch64_ilp32, r=sanxiyn 2021-02-02 16:01:35 -05:00
rustc_trait_selection Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr 2021-02-02 16:01:39 -05:00
rustc_traits Update Chalk 2021-02-02 12:37:22 -05:00
rustc_ty_utils Infallible version of def_span. 2021-01-23 13:35:22 +01:00
rustc_type_ir Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
rustc_typeck Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00