rust/compiler
bors ff479b1f3c Auto merge of #100801 - Kobzol:track-pgo-profile-paths, r=michaelwoerister
Track PGO profiles in depinfo

This PR makes sure that PGO profiles (`-Cprofile-use` and `-Cprofile-sample-use`) are tracked in depinfo, so that when they change, the compilation session will be invalidated.

This approach was discussed on [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/Tracking.20PGO.20profile.20files.20in.20cargo).

I tried it locally and it seems that the code is recompiled just with this change, and https://github.com/rust-lang/rust/pull/100413 is not even needed. But it's possible that not everything required is recompiled, so we will probably want to land both changes.

Another approach to implement this could be to store the PGO profiles in `sess.parse_sess.file_depinfo` when the session is being created, but then the paths would have to be converted to a string and then to a symbol, which seemed unnecessarily complicated.

CC `@michaelwoerister`

r? `@Eh2406`
2022-09-07 03:17:10 +00:00
..
rustc Don't rerun the build script for the compiler each time on linux 2022-07-10 23:57:25 -05:00
rustc_apfloat Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Make use of [wrapping_]byte_{add,sub} 2022-08-23 19:32:37 +04:00
rustc_ast Auto merge of #101362 - compiler-errors:unnecessary-let, r=cjgillot 2022-09-06 08:49:54 +00:00
rustc_ast_lowering Rollup merge of #101468 - spastorino:fix-ice-rpit-hrtb-without-dyn, r=cjgillot 2022-09-07 07:43:52 +09:00
rustc_ast_passes Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
rustc_ast_pretty Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_attr Rollup merge of #101486 - asquared31415:invalid_repr_list, r=estebank 2022-09-07 07:43:54 +09:00
rustc_borrowck Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_builtin_macros Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
rustc_codegen_cranelift Auto merge of #97802 - Enselic:add-no_ignore_sigkill-feature, r=joshtriplett 2022-09-02 21:08:08 +00:00
rustc_codegen_gcc Remove dead broken code from const zst handling in backends 2022-09-06 14:09:49 +00:00
rustc_codegen_llvm Rollup merge of #101484 - oli-obk:no_zst, r=eddyb 2022-09-07 07:43:54 +09:00
rustc_codegen_ssa Auto merge of #101508 - JohnTitor:rollup-i5i2vqc, r=JohnTitor 2022-09-07 00:35:54 +00:00
rustc_const_eval Rollup merge of #101402 - saethlin:inline-asm-hook, r=oli-obk 2022-09-06 08:36:04 +09:00
rustc_data_structures Auto merge of #100869 - nnethercote:replace-ThinVec, r=spastorino 2022-09-01 08:01:06 +00:00
rustc_driver tracing::instrument cleanup 2022-09-01 14:54:27 +00:00
rustc_error_codes Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
rustc_error_messages Auto merge of #101479 - Dylan-DPC:rollup-v8ite0y, r=Dylan-DPC 2022-09-06 11:16:02 +00:00
rustc_errors Report number of delayed bugs properly with -Ztreat-err-as-bug 2022-09-06 07:12:52 +00:00
rustc_expand Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
rustc_feature get_attr should check that no duplicates are allowed 2022-09-06 14:16:54 +08:00
rustc_fs_util Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_graphviz Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir change stdlib circular dependencies handling 2022-09-06 14:05:54 +04:00
rustc_hir_pretty Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_incremental Remove trait_of_item query. 2022-08-01 21:39:26 +02:00
rustc_index Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_infer Rollup merge of #101445 - TaKO8Ki:suggest-introducing-explicit-lifetime, r=oli-obk 2022-09-06 17:00:27 +02:00
rustc_interface Auto merge of #100801 - Kobzol:track-pgo-profile-paths, r=michaelwoerister 2022-09-07 03:17:10 +00:00
rustc_lexer Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_lint Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_lint_defs Don't fire rust_2021_incompatible_closure_captures in edition = 2021 2022-09-04 20:04:51 +04:00
rustc_llvm Rollup merge of #101025 - semarie:openbsd-archs, r=petrochenkov 2022-08-31 07:57:58 +02:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_metadata Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_middle Rollup merge of #101473 - nnethercote:mir-size-assertions, r=lqd 2022-09-06 17:00:30 +02:00
rustc_mir_build Rollup merge of #101357 - compiler-errors:variant-sugg-tweak, r=oli-obk 2022-09-06 17:00:25 +02:00
rustc_mir_dataflow Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_mir_transform remap mir before running optimization passes 2022-09-04 20:35:23 +08:00
rustc_monomorphize Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_parse Rollup merge of #101457 - ChayimFriedman2:struct-field-semi, r=fee1-dead 2022-09-06 17:00:28 +02:00
rustc_parse_format Separate CountIsStar from CountIsParam in rustc_parse_format. 2022-08-25 14:49:09 +02:00
rustc_passes Rollup merge of #101486 - asquared31415:invalid_repr_list, r=estebank 2022-09-07 07:43:54 +09:00
rustc_plugin_impl Migrate rustc_plugin_impl to SessionDiagnostic 2022-08-22 16:35:05 +01:00
rustc_privacy Rollup merge of #100147 - Bryanskiy:private-in-public, r=petrochenkov 2022-09-02 11:34:48 +02:00
rustc_query_impl Don't create two new closures for each query 2022-09-01 18:47:54 -05:00
rustc_query_system UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_resolve Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_save_analysis Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_serialize Replace rustc_data_structures::thin_vec::ThinVec with thin_vec::ThinVec. 2022-08-29 15:42:13 +10:00
rustc_session UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_smir Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_span Auto merge of #100759 - fee1-dead-contrib:const_eval_select_real_intrinsic, r=oli-obk,RalfJung 2022-09-05 01:35:01 +00:00
rustc_symbol_mangling Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
rustc_target rustc_target: Refactor internal linker flavors slightly 2022-09-01 16:54:52 +03:00
rustc_trait_selection Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_traits Fix a bunch of typo 2022-08-31 18:24:55 +08:00
rustc_transmute Auto merge of #100726 - jswrenn:transmute, r=oli-obk 2022-09-04 07:55:44 +00:00
rustc_ty_utils Box PatKind::Range. 2022-09-02 07:26:22 +10:00
rustc_type_ir ADD - diagnostic lints to type_ir 2022-08-18 13:33:03 -04:00
rustc_typeck Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00