about summary refs log tree commit diff
path: root/src/test/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-54/+0
2022-11-02Ban dashes in miropt test file namesJakob Degen-30/+30
2022-09-26address reviewb-naber-1/+1
2022-09-17Auto merge of #98588 - b-naber:valtrees-cleanup, r=lcnrbors-1/+1
Use only ty::Unevaluated<'tcx, ()> in type system r? `@lcnr`
2022-09-13Use tcx.hir() utils for spans in MIR building.Camille GILLOT-2/+2
This corrects the `span_with_body` in the case of closures, which was incorrectly shortened to the `def_span`.
2022-09-13rebaseb-naber-1/+1
2022-08-22bless mir-opt testsNilstrieb-2/+2
2022-07-28bless mir opt testsNilstrieb-27/+27
2022-07-09tweak names and output and blessRalf Jung-1/+1
2022-07-01Shorten def_span for more items.Camille GILLOT-2/+2
2022-02-22change `mir::Constant` in mir dumpslcnr-6/+1
2022-02-20Revert "Auto merge of #93800 - b-naber:static-initializers-mir-val, r=oli-obk"Mark Rousskov-1/+3
This reverts commit a240ccd81c74c105b6f5fe84c46f8d36edb7e306, reversing changes made to 393fdc10483da930cdbb00eabc3635030d2e776f. This PR was likely responsible for a relatively large regression in dist-x86_64-msvc-alt builder times, from approximately 1.7 to 2.8 hours, bringing that builder into the pool of the slowest builders we currently have. This seems to be limited to the alt builder due to needing parallel-compiler enabled, likely leading to slow LLVM compilation for some reason.
2022-02-15bless mir-opt testsb-naber-2/+4
2022-02-15bless testsb-naber-7/+3
2022-01-21Override rustc version in ui and mir-opt tests to get stable hashesThe 8472-1/+1
Building a dozen separate regexps for each test in compiletest consumes significant amounts of CPU cycles. Using `RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER` stabilizes hashes calcuated for the individual tests so no test-dependent normalization is needed. Hashes for the standard library still change so some normalizations are still needed.
2022-01-15initial revertEllen-1/+1
2021-12-13Include rustc version in `rustc_span::StableCrateId`pierwill-1/+1
Normalize symbol hashes in compiletest. Remove DefId sorting
2021-09-25Use larger span for adjustments on method callsAaron Hill-10/+10
Currently, we use a relatively 'small' span for THIR expressions generated by an 'adjustment' (e.g. an autoderef, autoborrow, unsizing). As a result, if a borrow generated by an adustment ends up causing a borrowcheck error, for example: ```rust let mut my_var = String::new(); let my_ref = &my_var my_var.push('a'); my_ref; ``` then the span for the mutable borrow may end up referring to only the base expression (e.g. `my_var`), rather than the method call which triggered the mutable borrow (e.g. `my_var.push('a')`) Due to a quirk of the MIR borrowck implementation, this doesn't always get exposed in migration mode, but it does in many cases. This commit makes THIR building consistently use 'larger' spans for adjustment expressions The intent of this change it make it clearer to users when it's the specific way in which a variable is used (for example, in a method call) that produdes a borrowcheck error. For example, an error message claiming that a 'mutable borrow occurs here' might be confusing if it just points at a usage of a variable (e.g. `my_var`), when no `&mut` is in sight. Pointing at the entire expression should help to emphasize that the method call itself is responsible for the mutable borrow. In several cases, this makes the `#![feature(nll)]` diagnostic output match up exactly with the default (migration mode) output. As a result, several `.nll.stderr` files end up getting removed entirely.
2021-08-26update mir diffslcnr-1/+1
2021-07-14bless mir-opt, codegen, and remaining ui testsRalf Jung-4/+4
2021-07-06Revert "Revert "Update mir opt tests""bjorn3-1/+1
This reverts commit 8d5fb5bf7d5c63dcfaea381e00ded67c21fab3a3.
2021-06-07Revert "Update mir opt tests"bjorn3-1/+1
This reverts commit e0e0cfa6492292d0b905b07a4ed727f4e1aefc80.
2021-05-30Update mir opt testsbjorn3-1/+1
2021-03-31Make unevaluated DefId rendering deterministicOli Scherer-1/+1
2021-03-20bless mir-opt testslcnr-2/+2
2020-12-09Also generate `StorageDead` in constantsoli-0/+3
2020-10-19fix Rvalue::ty for ThreadLocalRefRalf Jung-4/+4
2020-10-04Bless mir-opt testsAaron Hill-6/+6
2020-09-25Move from {{closure}}#0 syntax to {closure#0} for (def) path componentsmarmeladema-2/+2
2020-08-21Suppress "const" prefix of FnDef in MIR dumpLzu Tao-1/+1
2020-08-20Suppress MIR comments for FnDef in ty::ConstLzu Tao-3/+0
2020-07-29Move mir-opt tests to toplevelXavier Denis-0/+59