rust/compiler
bors 661b33f524 Auto merge of #109935 - michaelwoerister:fix-feed-in-eval-always, r=cjgillot
incr.comp.: Make sure dependencies are recorded when feeding queries during eval-always queries.

This PR makes sure we don't drop dependency edges when feeding queries during an eval-always query.

Background: During eval-always queries, no dependencies are recorded because the system knows to unconditionally re-evaluate them regardless of any actual dependencies. This works fine for these queries themselves but leads to a problem when feeding other queries: When queries are fed, we set up their dependency edges by copying the current set of dependencies of the feeding query. But because this set is empty for eval-always queries, we record no edges at all -- which has the effect that the fed query instances always look "green" to the system, although they should always be "red".

The fix is to explicitly add a dependency on the artificial "always red" dep-node when feeding during eval-always queries.

Fixes https://github.com/rust-lang/rust/issues/108481
Maybe also fixes issue https://github.com/rust-lang/rust/issues/88488.

cc `@jyn514`

r? `@cjgillot` or `@oli-obk`
2023-04-12 11:16:35 +00:00
..
rustc
rustc_abi Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_apfloat
rustc_arena Allow clippy::from_mut_ref 2023-04-09 22:29:56 +02:00
rustc_ast
rustc_ast_lowering
rustc_ast_passes Rollup merge of #109923 - ElectrifyPro:visibility, r=wesleywiser 2023-04-11 12:18:50 +09:00
rustc_ast_pretty Remove identity casts 2023-04-09 23:22:14 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck
rustc_builtin_macros Auto merge of #110092 - clubby789:builtin-macros-translatable, r=compiler-errors 2023-04-11 14:40:54 +00:00
rustc_codegen_cranelift
rustc_codegen_gcc Rollup merge of #96971 - zhaixiaojuan:master, r=wesleywiser 2023-04-11 20:28:45 -07:00
rustc_codegen_llvm
rustc_codegen_ssa Rollup merge of #96971 - zhaixiaojuan:master, r=wesleywiser 2023-04-11 20:28:45 -07:00
rustc_const_eval
rustc_data_structures Inline format_args 2023-04-09 23:29:39 +02:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors Auto merge of #110092 - clubby789:builtin-macros-translatable, r=compiler-errors 2023-04-11 14:40:54 +00:00
rustc_expand Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_hir_analysis Allow the elaborator to only filter to real supertraits 2023-04-11 17:45:42 +00:00
rustc_hir_pretty Remove identity casts 2023-04-09 23:22:14 +02:00
rustc_hir_typeck Allow the elaborator to only filter to real supertraits 2023-04-11 17:45:42 +00:00
rustc_incremental
rustc_index Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_infer Allow the elaborator to only filter to real supertraits 2023-04-11 17:45:42 +00:00
rustc_interface Migrate sess.opts.tests uses to sess.is_test_crate() 2023-04-09 21:37:31 +02:00
rustc_lexer
rustc_lint Allow the elaborator to only filter to real supertraits 2023-04-11 17:45:42 +00:00
rustc_lint_defs
rustc_llvm Rollup merge of #96971 - zhaixiaojuan:master, r=wesleywiser 2023-04-11 20:28:45 -07:00
rustc_log
rustc_macros Auto merge of #110092 - clubby789:builtin-macros-translatable, r=compiler-errors 2023-04-11 14:40:54 +00:00
rustc_metadata Split implied and super predicate queries 2023-04-11 17:45:42 +00:00
rustc_middle Auto merge of #107614 - compiler-errors:allow-elaborator-to-filter-only-super-traits, r=oli-obk 2023-04-12 08:39:19 +00:00
rustc_mir_build
rustc_mir_dataflow
rustc_mir_transform Auto merge of #110031 - compiler-errors:generic-elaboration, r=b-naber 2023-04-09 00:18:10 +00:00
rustc_monomorphize
rustc_parse Remove identity casts 2023-04-09 23:22:14 +02:00
rustc_parse_format
rustc_passes Auto merge of #109935 - michaelwoerister:fix-feed-in-eval-always, r=cjgillot 2023-04-12 11:16:35 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system Auto merge of #109935 - michaelwoerister:fix-feed-in-eval-always, r=cjgillot 2023-04-12 11:16:35 +00:00
rustc_resolve Auto merge of #109638 - NotStirred:suggest/non-derive, r=davidtwco 2023-04-10 21:50:46 +00:00
rustc_serialize
rustc_session Rollup merge of #110124 - Nilstrieb:📎-told-me-so, r=compiler-errors 2023-04-10 14:13:16 +05:30
rustc_smir
rustc_span Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_symbol_mangling
rustc_target Rollup merge of #96971 - zhaixiaojuan:master, r=wesleywiser 2023-04-11 20:28:45 -07:00
rustc_trait_selection Auto merge of #107614 - compiler-errors:allow-elaborator-to-filter-only-super-traits, r=oli-obk 2023-04-12 08:39:19 +00:00
rustc_traits
rustc_transmute Some simple clippy::perf fixes 2023-04-09 21:59:28 +02:00
rustc_ty_utils
rustc_type_ir