about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/util/mod.rs
AgeCommit message (Collapse)AuthorLines
2021-09-07Rename rustc_mir to rustc_const_eval.Camille GILLOT-8/+0
2021-09-07Move the dataflow framework to its own crate.Camille GILLOT-12/+0
2021-09-07Move rustc_mir::transform to rustc_mir_transform.Camille GILLOT-2/+2
2021-09-07Move rustc_mir::borrow_check to new crate rustc_borrowck.Camille GILLOT-2/+1
2021-08-17Expose graphviz modulesWill Crichton-1/+1
2020-11-10formattingVishnunarayan K I-1/+1
2020-11-09make MIR graphviz generation use gsgdtVishnunarayan K I-2/+3
gsgdt [https://crates.io/crates/gsgdt] is a crate which provides an interface for stringly typed graphs. It also provides generation of graphviz dot format from said graph.
2020-11-05Adds coverage graphvizRich Kadel-0/+1
2020-10-17Remove the old copy propagation passJonas Schievink-1/+0
2020-09-07Add CONST_ITEM_MUTATION lintAaron Hill-0/+2
Fixes #74053 Fixes #55721 This PR adds a new lint `CONST_ITEM_MUTATION`. Given an item `const FOO: SomeType = ..`, this lint fires on: * Attempting to write directly to a field (`FOO.field = some_val`) or array entry (`FOO.array_field[0] = val`) * Taking a mutable reference to the `const` item (`&mut FOO`), including through an autoderef `FOO.some_mut_self_method()` The lint message explains that since each use of a constant creates a new temporary, the original `const` item will not be modified.
2020-08-31Add new `-Z dump-mir-spanview` optionRich Kadel-0/+1
Similar to `-Z dump-mir-graphviz`, this adds the option to write HTML+CSS files that allow users to analyze the spans associated with MIR elements (by individual statement, just terminator, or overall basic block). This PR was split out from PR #76004, and exposes an API for spanview HTML+CSS files that is also used to analyze code regions chosen for coverage instrumentation (in a follow-on PR). Rust compiler MCP rust-lang/compiler-team#278 Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
2020-08-30mv compiler to compiler/mark-0/+17