about summary refs log tree commit diff
path: root/src/test/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-83/+0
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-7/+7
2022-11-02Ban dashes in miropt test file namesJakob Degen-44/+44
2022-09-06Shrink span for bindings with subpatterns.Camille GILLOT-8/+8
2022-07-28bless mir opt testsNilstrieb-44/+44
2021-08-25Fix debugger stepping behavior around `match` expressionsWesley Wiser-6/+6
Previously, we would set up the source lines for `match` expressions so that the code generated to perform the test of the scrutinee was matched to the line of the arm that required the test and then jump from the arm block to the "next" block was matched to all of the lines in the `match` expression. While that makes sense, it has the side effect of causing strange stepping behavior in debuggers. I've changed the source information so that all of the generated tests are sourced to `match {scrutinee}` and the jumps are sourced to the last line of the block they are inside. This resolves the weird stepping behavior in all debuggers and resolves some instances of "ambiguous symbol" errors in WinDbg preventing the user from setting breakpoints at `match` expressions.
2021-04-02Fix diagnostic issue when using FakeReads in closuresRoxane-1/+1
2021-03-19update testsmark-44/+44
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-08-17Update MIR tests with comment verbosity fixAustin Lasher-30/+0
2020-07-29Move mir-opt tests to toplevelXavier Denis-0/+113