summary refs log tree commit diff
path: root/src/librustc_driver/driver.rs
AgeCommit message (Collapse)AuthorLines
2018-03-28[incremental] Don't panic if decoding the cache failsWesley Wiser-1/+3
If the cached data can't be loaded from disk, just issue a warning to the user so they know why compilation is taking longer than usual but don't fail the entire compilation since we can recover by ignorning the on disk cache. In the same way, if the disk cache can't be deserialized (because it has been corrupted for some reason), report the issue as a warning and continue without failing the compilation. `Decodable::decode()` tends to panic with various errors like "entered unreachable code" or "index out of range" if the input data is corrupted. Work around this by catching panics from the `decode()` calls when joining the thread and continuing without the cached data. Fixes #48847
2018-03-20rename epoch to editionKurtis Nusbaum-1/+1
2018-03-18Auto merge of #48985 - scalexm:lowering, r=nikomatsakisbors-0/+4
MVP for chalkification r? @nikomatsakis
2018-03-17AST/HIR: Clarify what the optional name in extern crate items meanVadim Petrochenkov-1/+1
2018-03-16Checks for unknown attributes before abortingShotaro Yamada-4/+6
...due to unresolved macros.
2018-03-14Add crate name to "main function not found" error message.Eric Huss-1/+1
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14Move code into librustc_traitsscalexm-1/+3
2018-03-14Address niko's nitsscalexm-1/+1
2018-03-14Add MVP for chalkificationscalexm-0/+2
2018-03-13introduce `infcx.at(..).normalize(..)` operation [VIC]Niko Matsakis-0/+2
It is backed by the new `normalize_projection_ty` query, which uses canonicalization.
2018-03-09Move PROFQ_CHAN to a Session fieldJohn Kåre Alsaker-46/+40
2018-03-08Make it possible to ungate features by epochManish Goregaokar-1/+3
2018-03-08Regenerate testsOliver Schneider-1/+1
2018-03-08rustc_passes::consts -> rvalue_promotionOliver Schneider-2/+2
2018-03-08Merge const linting pass into const propOliver Schneider-7/+0
2018-03-08Move the pattern checking code to hairOliver Schneider-1/+1
2018-03-08The `const_eval` module is no moreOliver Schneider-3/+2
2018-03-08Nuke the entire ctfe from orbit, it's the only way to be sureOliver Schneider-0/+7
2018-03-08Move librustc_const_eval to librustc_mirOliver Schneider-2/+1
2018-03-05Turn features() into a query.Michael Woerister-6/+6
2018-03-02Replace Rc with Lrc for shared dataJohn Kåre Alsaker-2/+2
2018-02-28Rollup merge of #48461 - Manishearth:epoch-dyn-trait, r=nmatsakisManish Goregaokar-1/+1
Fixes #47311. r? @nrc
2018-02-24Rollup merge of #48353 - michaelwoerister:monoitem-static-defid, r=eddybManish Goregaokar-0/+1
Allow for instantiating statics from upstream crates This PR makes the infrastructure around translating statics a bit more flexible so that it can also instantiate statics from upstream crates if the need arises. This is preparatory work for a MIR-only RLIBs prototype, where the instantiation of a `static` may be deferred until a leaf crate. r? @eddyb (feel free to assign to someone else if you're busy)
2018-02-24Rollup merge of #48143 - nikomatsakis:termination_trait_in_tests, r=eddybManish Goregaokar-1/+2
Termination trait in tests Support the `Termination` trait in unit tests (cc https://github.com/rust-lang/rust/issues/43301) Also, a drive-by fix for #47075. This is joint work with @bkchr.
2018-02-24Rollup merge of #47987 - Zoxc:rm-recursion-checking, r=eddybManish Goregaokar-5/+1
Remove "static item recursion checking" in favor of relying on cycle checks in the query engine Tests are changed to use the cycle check error message instead. Some duplicate tests are removed. r? @eddyb
2018-02-23Allow future-incompat lints to mention an epochManish Goregaokar-1/+1
2018-02-22support unit tests with return values that implement `Terminaton`Niko Matsakis-1/+2
Extend `Termination` trait with a method to determine what happens with a unit test. This commit incorporates work by Bastian Köcher <git@kchr.de>.
2018-02-20Do not run the default panic hook inside procedural macros. Fixes #47812John Kåre Alsaker-1/+3
2018-02-19Implement describe_def query for LOCAL_CRATEMichael Woerister-0/+1
2018-02-13incr.comp.: Run cache directory garbage collection before loading dep-graph.Michael Woerister-0/+9
2018-02-10Rollup merge of #47854 - varkor:create-out-dir, r=pnkfelixkennytm-0/+7
Create a directory for --out-dir if it does not already exist Currently if `--out-dir` is set to a non-existent directory, the compiler will throw unfriendly messages like `error: could not write output to subdir/example.crate.allocator.rcgu.o: No such file or directory`, which, while not completely unreadable, isn’t very user-friendly either. This change creates the directory automatically if it does not yet exist.
2018-02-10Remove "static item recursion checking" in favor of relying on cycle checks ↵John Kåre Alsaker-5/+1
in the query engine
2018-01-29Create a directory for --out-dir if it does not already existvarkor-0/+7
Currently if `--out-dir` is set to a non-existent directory, the compiler will throw unfriendly messages like `error: could not write output to subdir/example.crate.allocator.rcgu.o: No such file or directory`, which, while not completely unreadable, isn’t very user-friendly either. This change creates the directory automatically if it does not yet exist.
2018-01-29Specify output filenames for compatibility with Windowsvarkor-6/+9
2018-01-29Warn when `-C extra-filename` flag is used with `-o`varkor-0/+3
2018-01-29Minor refactoringvarkor-19/+16
2018-01-29Fix tidy errorvarkor-1/+1
2018-01-29Use correct output file paths for error checkingvarkor-27/+69
2018-01-29Fix quotation markvarkor-1/+1
2018-01-29Fix tidy errorvarkor-1/+2
2018-01-29Warn when rustc output conflicts with existing directoriesvarkor-5/+14
When the compiled executable would conflict with a directory, display a rustc error instead of a verbose and potentially-confusing linker error. This is a usability improvement, and doesn’t actually change behaviour with regards to compilation success. This addresses the concern in #35887.
2018-01-23Auto merge of #47678 - kennytm:rollup, r=kennytmbors-21/+9
Rollup of 14 pull requests - Successful merges: #47423, #47425, #47440, #47541, #47549, #47554, #47558, #47610, #47635, #47655, #47661, #47662, #47667, #47672 - Failed merges:
2018-01-22Inline some rustc_driver functionbjorn3-21/+9
2018-01-22cleanupQuietMisdreavus-4/+5
2018-01-22Split out creation of the resolver arena in phase_2_configure_and_expandManish Goregaokar-24/+55
2018-01-22Move resolve arenas/crate loader outside of the core of ↵Manish Goregaokar-11/+16
phase_2_configure_and_expand
2018-01-19Allow runtime switching between trans backendsbjorn3-86/+16
2018-01-15Add `-Z dep-info-omit-d-target` to control dep-info styleAdam C. Foltzer-2/+3
This avoids a breaking change to dep-info output, putting the gcc/clang-compliant dep-info behavior behind a flag
2018-01-15remove dep-info files as targets in themselvesAdam C. Foltzer-0/+2
2018-01-15Rollup merge of #47417 - petrochenkov:noasm, r=estebankkennytm-5/+1
Move "no asm" check into AST validation