about summary refs log tree commit diff
path: root/compiler/stable_mir/src/mir/visit.rs
AgeCommit message (Collapse)AuthorLines
2023-12-18Add the function body span to StableMIRCelina G. Val-1/+3
2023-12-13Add spread arg and missing CoroutineKindCelina G. Val-1/+1
2023-12-05Change ty_with_args to return Ty instead of ResultCelina G. Val-1/+1
Although, we would like to avoid crashes whenever possible, and that's why I wanted to make this API fallible. It's looking pretty hard to do proper validation. I think many of our APIs will unfortunately depend on the user doing the correct thing since at the MIR level we are working on, we expect types to have been checked already.
2023-11-30Change SwitchTarget representationCelina G. Val-3/+2
The new structure encodes its invariant, which reduces the likelihood of having an inconsistent representation. It is also more intuitive and user friendly. I encapsulated the structure for now in case we decide to change it back.
2023-11-22Auto merge of #118152 - matthiaskrgr:rollup-bqcck4w, r=matthiaskrgrbors-1/+27
Rollup of 5 pull requests Successful merges: - #117972 (Add VarDebugInfo to Stable MIR) - #118109 (rustdoc-search: simplify `checkPath` and `sortResults`) - #118110 (Document `DefiningAnchor` a bit more) - #118112 (Don't ICE when ambiguity is found when selecting `Index` implementation in typeck) - #118135 (Remove quotation from filename in stable_mir) Failed merges: - #118012 (Add support for global allocation in smir) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-1/+1
`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-21de-structure variable and add stablesouz-a-4/+6
2023-11-21Add VarDebugInfo to Stable MIRouz-a-1/+25
2023-11-17better formatting for statementsOğuz Ağcayazı-1/+1
2023-11-16Fix bug on MIRVisitorCelina G. Val-2/+2
We were not iterating over all local variables due to a typo.
2023-11-10Add SMIR visitor for Places and projectionsKirby Linvill-1/+32
2023-10-30Add a stable MIR visitorCelina G. Val-0/+414
Add a few utility functions as well and extend most `mir` and `ty` ADTs to implement `PartialEq` and `Eq`.