rust/compiler
Jubilee cd084abb73
Rollup merge of #131121 - lqd:dataflow-viz, r=compiler-errors
A couple of fixes for dataflow graphviz dumps

A couple of trivial drive-by fixes to issues I noticed while debugging my buggy borrowck code:

One is a fix of the `-Zdump-mir-dataflow` file extensions, the dataflow graphviz files are currently dumped  as `..dot`.

<details>

```console
-rw-rw-r-- 1 lqd lqd 13051 Oct  1 23:21 mir_dump/issue_47680.main.-------.borrows.borrowck..dot
-rw-rw-r-- 1 lqd lqd 13383 Oct  1 23:21 mir_dump/issue_47680.main.-------.ever_init.borrowck..dot
-rw-rw-r-- 1 lqd lqd 13591 Oct  1 23:21 mir_dump/issue_47680.main.-------.maybe_init.borrowck..dot
-rw-rw-r-- 1 lqd lqd  9257 Oct  1 23:21 mir_dump/issue_47680.main.-------.maybe_init.elaborate_drops..dot
-rw-rw-r-- 1 lqd lqd 14086 Oct  1 23:21 mir_dump/issue_47680.main.-------.maybe_uninit.borrowck..dot
-rw-rw-r-- 1 lqd lqd  9257 Oct  1 23:21 mir_dump/issue_47680.main.-------.maybe_uninit.elaborate_drops..dot
```

<summary>Some examples on nightly</summary>

</details>

And the other is for the specific `Borrows` dataflow analysis, whose domain is loans but shows locations when dumped (the location where the loan is introduced). It's not a huge deal but we didn't even print these locations in MIR dumps, and in general cross-referencing loan data (like loan liveness) is more annoying without this change.

<details>

![Untitled](https://github.com/user-attachments/assets/b325a6e9-1aee-4655-8441-d3b1b55ded3c)

<summary>Here's how it'll look in case inquisitive minds want to know</summary>

</details>

The visualization state diff display is still suboptimal in loops for some of the effects escaping a block, e.g. a gen that's not dominated/postdominated by a kill will not show up in statement diffs. (This happens in the previous screenshot, there's no `+bw1` anywhere). We can fix that in the future.
2024-10-01 23:16:00 -07:00
..
rustc
rustc_abi
rustc_arena
rustc_ast
rustc_ast_ir
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr add stable_since convenience 2024-09-30 20:55:37 +00:00
rustc_baked_icu_data
rustc_borrowck make Borrows dataflow dumps about its loan domain 2024-10-02 00:30:50 +00:00
rustc_builtin_macros Reject leading unsafe in cfg!(...) and --check-cfg. 2024-09-30 12:15:08 +02:00
rustc_codegen_cranelift fix cranelift CI 2024-09-29 07:32:08 +02:00
rustc_codegen_gcc Auto merge of #131111 - matthiaskrgr:rollup-n6do187, r=matthiaskrgr 2024-10-01 19:29:26 +00:00
rustc_codegen_llvm Auto merge of #131111 - matthiaskrgr:rollup-n6do187, r=matthiaskrgr 2024-10-01 19:29:26 +00:00
rustc_codegen_ssa Unpin cc and upgrade to the latest version 2024-09-30 13:31:42 -04:00
rustc_const_eval make InterpResult a dedicated type to avoid accidentally discarding the error 2024-10-01 21:45:35 +02:00
rustc_data_structures Auto merge of #130874 - klensy:bumpme, r=jieyouxu 2024-09-28 05:15:29 +00:00
rustc_driver
rustc_driver_impl
rustc_error_codes Rollup merge of #130826 - fmease:compiler-mv-obj-safe-dyn-compat, r=compiler-errors 2024-09-27 21:35:08 +02:00
rustc_error_messages
rustc_errors
rustc_expand Stabilize expr_2021 fragment in all editions 2024-10-01 07:51:58 +00:00
rustc_feature Stabilize expr_2021 fragment in all editions 2024-10-01 07:51:58 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Rollup merge of #131038 - onkoe:fix/adt_const_params_leak_118179, r=compiler-errors 2024-09-30 18:25:14 +02:00
rustc_hir_pretty
rustc_hir_typeck cleanup: don't manually unwrap_or_default() 2024-09-29 12:51:28 +02:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Get rid of a_is_expected from ToTrace 2024-09-27 15:43:18 -04:00
rustc_interface Replace -Z default-hidden-visibility with -Z default-visibility 2024-10-01 22:32:13 +10:00
rustc_lexer
rustc_lint Rollup merge of #131035 - dingxiangfei2009:tweak-if-let-rescope-lint, r=jieyouxu 2024-09-30 18:25:14 +02:00
rustc_lint_defs
rustc_llvm Unpin cc and upgrade to the latest version 2024-09-30 13:31:42 -04:00
rustc_log
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #130885 - RalfJung:interp-error-discard, r=oli-obk 2024-10-01 23:15:59 -07:00
rustc_mir_build tweak Const::identity_unevaluated name and docs 2024-09-28 21:28:08 +02:00
rustc_mir_dataflow fix extension for -Zdump-mir-dataflow graphviz files 2024-10-01 23:16:35 +00:00
rustc_mir_transform make InterpResult a dedicated type to avoid accidentally discarding the error 2024-10-01 21:45:35 +02:00
rustc_monomorphize Replace -Z default-hidden-visibility with -Z default-visibility 2024-10-01 22:32:13 +10:00
rustc_next_trait_solver Rollup merge of #130866 - compiler-errors:dyn-instantiate-binder, r=lcnr 2024-09-28 09:35:09 +02:00
rustc_parse
rustc_parse_format
rustc_passes
rustc_pattern_analysis cleanup: don't clone types that are Copy 2024-09-29 13:31:30 +02:00
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve cleanup: don't clone types that are Copy 2024-09-29 13:31:30 +02:00
rustc_sanitizers
rustc_serialize
rustc_session Replace -Z default-hidden-visibility with -Z default-visibility 2024-10-01 22:32:13 +10:00
rustc_smir Rollup merge of #130826 - fmease:compiler-mv-obj-safe-dyn-compat, r=compiler-errors 2024-09-27 21:35:08 +02:00
rustc_span Rollup merge of #130630 - taiki-e:s390x-clobber-abi, r=Amanieu 2024-10-01 17:32:07 +02:00
rustc_symbol_mangling
rustc_target Auto merge of #131111 - matthiaskrgr:rollup-n6do187, r=matthiaskrgr 2024-10-01 19:29:26 +00:00
rustc_trait_selection Also fix first_method_vtable_slot 2024-09-30 13:17:33 -04:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir Auto merge of #129499 - fee1-dead-contrib:supereffects, r=compiler-errors 2024-09-30 00:30:09 +00:00
rustc_type_ir_macros
stable_mir Auto merge of #130946 - matthiaskrgr:rollup-ia4mf0y, r=matthiaskrgr 2024-09-27 21:23:29 +00:00