about summary refs log tree commit diff
path: root/src/test/incremental
AgeCommit message (Collapse)AuthorLines
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
2018-11-30tests: move all proc_macro tests from -fulldeps.Eduard-Mihai Burtescu-0/+239
2018-10-26Fix tests and assertions; add some commentsNick Cameron-1/+1
2018-10-22fix incremental testNiko Matsakis-1/+1
2018-10-02Improve implicit self mutability suggestions.David Wood-1/+1
This commit adds an `ImplicitSelfKind` to the HIR and the MIR that keeps track of whether a implicit self argument is immutable by-value, mutable by-value, immutable reference or mutable reference so that the addition of the `mut` keyword can be suggested for the immutable by-value case.
2018-09-18incr.comp.: Allow for more fine-grained testing of CGU reuse and use it to ↵Michael Woerister-0/+125
test incremental ThinLTO.
2018-09-12Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakisbors-2/+0
stabilize outlives requirements https://github.com/rust-lang/rust/issues/44493 r? @nikomatsakis
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-2/+0
Co-authored-by: nikomatsakis
2018-09-10fix incremental testNiko Matsakis-1/+1
We are now carrying the user-given type through MIR, so it makes sense that this would change the hash.
2018-09-04Introduce Custom Test FrameworksJohn Renner-3/+2
2018-08-19mv codemap source_mapDonato Sciarra-1/+1
2018-08-19mv FileMap SourceFileDonato Sciarra-1/+1
2018-08-15Clean up CodegenUnit name generation.Michael Woerister-1/+1
2018-07-16rustc: Use link_section, not wasm_custom_sectionAlex Crichton-1/+1
This commit transitions definitions of custom sections on the wasm target from the unstable `#[wasm_custom_section]` attribute to the already-stable-for-other-targets `#[link_section]` attribute. Mostly the same restrictions apply as before, except that this now applies only to statics. Closes #51088
2018-07-16Revert "Clean up CodegenUnit name generation."Michael Woerister-1/+1
This reverts commit 2c5cd9ce53d2d25041db0cb02b40ba460ffa8908.
2018-07-11Clean up CodegenUnit name generation.Michael Woerister-1/+1
2018-06-30Added incremental test for interlinking static references.Alexander Regueiro-0/+25
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-1/+1
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-10create separate dep-nodes for predicates_of and explicit_predicates_oftoidiu-0/+22
2018-06-07Add existential type definitonsOliver Schneider-1/+1
2018-05-18Auto merge of #50653 - oli-obk:bad_const, r=cramertjbors-0/+1
Make the `const_err` lint `deny`-by-default At best these things are runtime panics (debug mode) or overflows (release mode). More likely they are public constants that are unused in the crate declaring them. This is not a breaking change, as dependencies won't break and root crates can `#![warn(const_err)]`, though I don't know why anyone would do that.
2018-05-17Rename trans to codegen everywhere.Irina Popa-29/+29
2018-05-12Make the `const_err` lint `deny`-by-defaultOliver Schneider-0/+1
2018-04-14Don't recurse into allocations, use a global table insteadOliver Schneider-0/+19
2018-04-13Rename must-compile-successfully into compile-passGuillaume Gomez-43/+43