about summary refs log tree commit diff
path: root/src/test/incremental
AgeCommit message (Collapse)AuthorLines
2019-08-26Auto merge of #63580 - wesleywiser:move_promoted_out, r=oli-obkbors-4/+10
Move promoted MIR out of `mir::Body` r? @oli-obk
2019-08-25Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-08-23Fix incremental testsWesley Wiser-4/+10
2019-08-22Changed testsWesley Wiser-1/+1
2019-08-19Cherry-pick src/test changes with Centril's changessd234678-157/+156
2019-07-20normalize use of backticks in compiler messages for librustc_incrementalSamy Kacimi-4/+4
https://github.com/rust-lang/rust/issues/60532
2019-07-06while_{let_}loops/change_{break,continue}: typeck_tables_of clean.Mazdak Farrokhzad-4/+4
2019-07-06Adjust incremental test while_loops.rsMazdak Farrokhzad-2/+2
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-48/+48
2019-06-23Auto merge of #61778 - petrochenkov:pass, r=Mark-Simulacrumbors-4/+4
compiletest: Introduce `// {check,build,run}-pass` pass modes Pass UI tests now have three modes ``` // check-pass // build-pass // run-pass ``` mirroring equivalent well-known `cargo` commands. `// check-pass` will compile the test skipping codegen (which is expensive and isn't supposed to fail in most cases). `// build-pass` will compile and link the test without running it. `// run-pass` will compile, link and run the test. Tests without a "pass" annotation are still considered "fail" tests. Most UI tests would probably want to switch to `check-pass`. Tests validating codegen would probably want to run the generated code as well and use `run-pass`. `build-pass` should probably be rare (linking tests?). https://github.com/rust-lang/rust/pull/61755 will provide a way to run the tests with any mode, e.g. bump `check-pass` tests to `run-pass` to satisfy especially suspicious people, and be able to make sure that codegen doesn't breaks in some entirely unexpected way. Tests marked with any mode are expected to pass with any other mode, if that's not the case for some legitimate reason, then the test should be made a "fail" test rather than a "pass" test. Perhaps some secondary CI can verify this invariant, but that's not super urgent. `// compile-pass` still works and is equivalent to `build-pass`. Why is `// compile-pass` bad - 1) it gives an impression that the test is only compiled, but not linked, 2) it doesn't mirror a cargo command. It can be removed some time in the future in a separate PR. cc https://github.com/rust-lang/rust/issues/61712
2019-06-19Rename regression test to link it to the corresponding issueOliver Scherer-0/+0
2019-06-19Remove the `AllocId` from `ByRef` valuesOliver Scherer-0/+17
`ByRef` const values have no identity beyond their value, we should not treat them as having identity. The `AllocId` often differed between equal constants, because of the way that the miri-engine evaluates constants.
2019-06-16compiletest: Remove `skip-codegen`Vadim Petrochenkov-1/+1
2019-06-16compiletest: Validate pass modes harderVadim Petrochenkov-2/+2
2019-06-16compiletest: Introduce `// {check,build,run}-pass` pass modesVadim Petrochenkov-1/+1
2019-05-23Remove subtle Default impl for ValueJohn Kåre Alsaker-1/+0
2019-05-20Rollup merge of #60823 - oli-obk:used_unused_no_mangle, r=michaelwoeristerMazdak Farrokhzad-0/+10
Fix incremental compilation of cdylib emitting spurious unused_attributes lint fixes #60050
2019-05-18Auto merge of #60386 - Goirad:sgx-ignore-tests, r=nikomatsakisbors-0/+1
Added ignore-sgx for appropriate tests in src/test These are all the tests that make sense to ignore when targeting fortanix-unknonw-sgx, at least in test/runpass. Other suites not yet covered.
2019-05-16Added ignore-sgx for appropriate testsDario Gonzalez-0/+1
2019-05-14Fix incremental compilation of cdylib emitting spurious unused_attributes lintOliver Scherer-0/+10
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-2/+2
2019-05-10Auto merge of #59288 - Centril:hir-if-to-match, r=oli-obkbors-2/+2
[let_chains, 1/6] Remove hir::ExprKind::If Per https://github.com/rust-lang/rust/issues/53667#issuecomment-471583239. r? @oli-obk
2019-05-10Various test changesMazdak Farrokhzad-2/+2
2019-05-10add regression test for #60629Marcel Hellwig-0/+10
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2019-04-23Auto merge of #60172 - varkor:tidy-double-trailing-newline, r=kennytmbors-7/+0
Disallow double trailing newlines in tidy This wasn't done previously in https://github.com/rust-lang/rust/pull/47064#issuecomment-354533010 as it affected too many files, but I think it's best to fix it now so that the number of files with double trailing newlines doesn't keep increasing. r? kennytm
2019-04-22Remove leading newlinesvarkor-1/+0
2019-04-22Remove double trailing newlinesvarkor-7/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-4/+4
2019-03-30Update testsJohn Kåre Alsaker-184/+184
2019-03-29Regression test for incremental treatment of ↵Felix S. Klock II-0/+19
rustc_scalar_valid_range_{start,end}.
2019-03-29Regression test for incremental treatment of rustc_on_unimplemented.Felix S. Klock II-0/+27
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-159/+159
2019-03-18Add load_cached query modifier and keep dep node names consistent with query ↵John Kåre Alsaker-175/+175
names
2019-03-18Define queries using a proc macroJohn Kåre Alsaker-77/+77
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-3/+3
2019-03-06Regression test for #58813Felix S. Klock II-0/+14
(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
2019-02-14Rollup merge of #58378 - alexcrichton:incremental-lto, r=michaelwoeristerMazdak Farrokhzad-0/+40
rustc: Implement incremental "fat" LTO Currently the compiler will produce an error if both incremental compilation and full fat LTO is requested. With recent changes and the advent of incremental ThinLTO, however, all the hard work is already done for us and it's actually not too bad to remove this error! This commit updates the codegen backend to allow incremental full fat LTO. The semantics are that the input modules to LTO are all produce incrementally, but the final LTO step is always done unconditionally regardless of whether the inputs changed or not. The only real incremental win we could have here is if zero of the input modules changed, but that's so rare it's unlikely to be worthwhile to implement such a code path. cc #57968 cc rust-lang/cargo#6643
2019-02-13Rollup merge of #58386 - Zoxc:fix-54242, r=michaelwoeristerMazdak Farrokhzad-0/+17
Fix #54242 r? @michaelwoerister
2019-02-12rustc: Implement incremental "fat" LTOAlex Crichton-0/+40
Currently the compiler will produce an error if both incremental compilation and full fat LTO is requested. With recent changes and the advent of incremental ThinLTO, however, all the hard work is already done for us and it's actually not too bad to remove this error! This commit updates the codegen backend to allow incremental full fat LTO. The semantics are that the input modules to LTO are all produce incrementally, but the final LTO step is always done unconditionally regardless of whether the inputs changed or not. The only real incremental win we could have here is if zero of the input modules changed, but that's so rare it's unlikely to be worthwhile to implement such a code path. cc #57968 cc rust-lang/cargo#6643
2019-02-12Set the query in the ImplicitCtxt before trying to mark it greenJohn Kåre Alsaker-0/+17
2019-02-10tests: doc commentsAlexander Regueiro-9/+9
2019-02-08Allow a dirty MirBuilt for make_extern and make_method_externJohn Kåre Alsaker-2/+2
2019-02-08Update testsJohn Kåre Alsaker-153/+153
2019-01-17Fix typo bug in DepGraph::try_mark_green().Michael Woerister-0/+17
2018-12-30Fix unresolved inference variable ICE.David Wood-1/+1
This commit moves well-formedness check for the `UserTypeAnnotation::Ty(..)` case from always running to only when the code is reachable. This solves the ICE that resulted from `src/test/ui/issue-54943-1.rs` (a minimal repro of `dropck-eyepatch` run-pass tests that failed). The main well-formedness check that was intended to be run despite unreachable code still is, that being the `UserTypeAnnotation::TypeOf(..)` case. Before this PR, the other case wasn't being checked at all. It is possible to fix this ICE while still always checking well-formedness for the `UserTypeAnnotation::Ty(..)` case but that solution will ICE in unreachable code for that case, the diff for that change [can be found here](0). [0]: https://gist.github.com/davidtwco/f9751ffd9c0508f7251c0f17adc3af53
2018-12-25Remove licensesMark Rousskov-1216/+0
2018-12-11std: Depend directly on crates.io cratesAlex Crichton-1/+1
Ever since we added a Cargo-based build system for the compiler the standard library has always been a little special, it's never been able to depend on crates.io crates for runtime dependencies. This has been a result of various limitations, namely that Cargo doesn't understand that crates from crates.io depend on libcore, so Cargo tries to build crates before libcore is finished. I had an idea this afternoon, however, which lifts the strategy from #52919 to directly depend on crates.io crates from the standard library. After all is said and done this removes a whopping three submodules that we need to manage! The basic idea here is that for any crate `std` depends on it adds an *optional* dependency on an empty crate on crates.io, in this case named `rustc-std-workspace-core`. This crate is overridden via `[patch]` in this repository to point to a local crate we write, and *that* has a `path` dependency on libcore. Note that all `no_std` crates also depend on `compiler_builtins`, but if we're not using submodules we can publish `compiler_builtins` to crates.io and all crates can depend on it anyway! The basic strategy then looks like: * The standard library (or some transitive dep) decides to depend on a crate `foo`. * The standard library adds ```toml [dependencies] foo = { version = "0.1", features = ['rustc-dep-of-std'] } ``` * The crate `foo` has an optional dependency on `rustc-std-workspace-core` * The crate `foo` has an optional dependency on `compiler_builtins` * The crate `foo` has a feature `rustc-dep-of-std` which activates these crates and any other necessary infrastructure in the crate. A sample commit for `dlmalloc` [turns out to be quite simple][commit]. After that all `no_std` crates should largely build "as is" and still be publishable on crates.io! Notably they should be able to continue to use stable Rust if necessary, since the `rename-dependency` feature of Cargo is soon stabilizing. As a proof of concept, this commit removes the `dlmalloc`, `libcompiler_builtins`, and `libc` submodules from this repository. Long thorns in our side these are now gone for good and we can directly depend on crates.io! It's hoped that in the long term we can bring in other crates as necessary, but for now this is largely intended to simply make it easier to manage these crates and remove submodules. This should be a transparent non-breaking change for all users, but one possible stickler is that this almost for sure breaks out-of-tree `std`-building tools like `xargo` and `cargo-xbuild`. I think it should be relatively easy to get them working, however, as all that's needed is an entry in the `[patch]` section used to build the standard library. Hopefully we can work with these tools to solve this problem! [commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-2/+2
2018-11-30tests: use `force-host` and `no-prefer-dynamic` in all proc_macro tests.Eduard-Mihai Burtescu-0/+3