about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir/spanview.rs
AgeCommit message (Collapse)AuthorLines
2024-01-04Remove `-Zdump-mir-spanview`Zalathar-642/+0
2023-12-10remove redundant importssurechen-3/+1
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-3/+3
`x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now.
2023-11-15Re-format code with new rustfmtMark Rousskov-5/+1
2023-08-20sync printing of MIR terminators with their new names (and dedup some to-str ↵Ralf Jung-42/+3
logic)
2023-08-20give some unwind-related terminators a more clear nameRalf Jung-2/+2
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-9/+8
2023-06-17Add `<meta charset="utf-8">` to `-Zdump-mir-spanview` outputZalathar-2/+3
2023-06-16Add `SyntaxContext::is_root`Maybe Waffle-2/+2
2023-04-06Rename `Abort` terminator to `Terminate`Gary Guo-1/+1
Unify terminology used in unwind action and terminator, and reflect the fact that a nounwind panic is triggered instead of an immediate abort is triggered for this terminator.
2023-03-09Introduce a no-op PlaceMention statement for `let _ =`.Camille GILLOT-0/+1
2023-03-07Remove DropAndReplace terminatorGiacomo Pasini-1/+0
PR 107844 made DropAndReplace unused, let's remove it completely from the codebase.
2023-03-03Match unmatched backticks in comments in compiler/est31-1/+1
2023-01-29Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obkbors-0/+1
Use stable metric for const eval limit instead of current terminator-based logic This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only. The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made). Also see: #103877
2023-01-28Remove `HirId -> LocalDefId` map from HIR.Camille GILLOT-1/+1
2023-01-23Create stable metric to measure long computation in Const EvalBryan Garza-0/+1
This patch adds a `MirPass` that tracks the number of back-edges and function calls in the CFG, adds a new MIR instruction to increment a counter every time they are encountered during Const Eval, and emit a warning if a configured limit is breached.
2022-12-20rustc: Remove needless lifetimesJeremy Stucki-12/+7
2022-09-06Generalize the Assume intrinsic statement to a general Intrinsic statementOli Scherer-2/+1
2022-09-06Lower the assume intrinsic to a MIR statementOli Scherer-0/+1
2022-08-26Replace `Body::basic_blocks()` with field accessTomasz Miąsko-1/+1
2022-06-19Use `Span::eq_ctxt` method instead of `.ctxt() == .ctxt()`Michael Goulet-1/+1
2022-04-11Add new `Deinit` statement kindJakob Degen-0/+1
2022-01-27try apply `rustc_pass_by_value` to `Span`lcnr-3/+3
2022-01-17Auto merge of #92816 - tmiasko:rm-llvm-asm, r=Amanieubors-1/+0
Remove deprecated LLVM-style inline assembly The `llvm_asm!` was deprecated back in #87590 1.56.0, with intention to remove it once `asm!` was stabilized, which already happened in #91728 1.59.0. Now it is time to remove `llvm_asm!` to avoid continued maintenance cost. Closes #70173. Closes #92794. Closes #87612. Closes #82065. cc `@rust-lang/wg-inline-asm` r? `@Amanieu`
2022-01-15Reduce use of local_def_id_to_hir_id.Camille GILLOT-3/+1
2022-01-12Remove deprecated LLVM-style inline assemblyTomasz Miąsko-1/+0
2021-12-14fix clippy::single_char_pattern perf findingsMatthias Krüger-6/+6
2021-11-04clippy::perf fixesMatthias Krüger-2/+2
2021-09-07Move the dataflow framework to its own crate.Camille GILLOT-0/+693