summary refs log tree commit diff
path: root/src/librustc_driver/driver.rs
AgeCommit message (Collapse)AuthorLines
2018-07-28Auto merge of #52355 - pietroalbini:zfeature, r=eddybbors-1/+5
Add the -Zcrate-attr=foo unstable rustc option This PR adds a new unstable option to `rustc`: `-Zcrate-attr=foo`. The option can be used to inject crate-level attributes from the CLI, and it's meant to be used by tools like Crater that needs to add their own attributes to a crate without changing the source code. The exact reason I need this is to implement "edition runs" in Crater: we need to add the preview feature flag to every crate, and editing the crates' source code on the fly might produce unexpected results, while a compiler flag is more reliable. cc https://github.com/rust-lang-nursery/crater/issues/282 @Mark-Simulacrum
2018-07-27Add the -Zcrate-attr=foo nightly rustc flag to inject crate attributesPietro Albini-1/+5
2018-07-27Use slices where a vector is not necessaryljedrz-4/+4
2018-07-23dump lints _after_ parsing macrosmark-7/+9
2018-07-23Extend ParseSess to support buffering lintsmark-0/+8
2018-07-18Auto merge of #52375 - oli-obk:the_early_lint_pass_gets_the_worm, r=Manishearthbors-1/+5
Lint `async` identifiers in 2018 preparation mode r? @Manishearth fixes https://github.com/rust-lang/rust/issues/49716
2018-07-14Lint the use of async as an identifierOliver Schneider-1/+5
2018-07-12Add missing dyn in driver.rsljedrz-1/+1
2018-07-12Deny bare trait objects in librustc_driverljedrz-11/+11
2018-07-05Do not run AST borrowck when -Zborrowck=mirSantiago Pastorino-1/+5
2018-06-24Attempt to fix hygiene for global_allocatorMark Mansi-1/+10
2018-06-19Parallel codeJohn Kåre Alsaker-5/+3
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-6/+6
2018-06-06Reduce the amount of unsafe code and mark handle_deadlock as unsafeJohn Kåre Alsaker-3/+4
2018-06-06Make queries block and handle query cyclesJohn Kåre Alsaker-3/+10
2018-06-05Add commentbjorn3-0/+12
2018-06-05Impl CompilerCalls for CompileController instead of AdHocCompilerCallsbjorn3-0/+57
2018-05-17Rename trans to codegen everywhere.Irina Popa-21/+21
2018-05-13Add a Rayon thread poolJohn Kåre Alsaker-1/+46
2018-05-13Add Sync bounds to the crate storeJohn Kåre Alsaker-2/+2
2018-05-07Make DepGraph::previous_work_products immutableWesley Wiser-9/+10
Fixes #50501
2018-04-23in unit tests, use `note` to dump multiple program clausesNiko Matsakis-4/+4
(rather than issuing multiple errors) Also, reorder so that the annotations are considered "used" when the lint runs.
2018-04-19add EDITIONS_NAME_LIST, make edition tracked, enforce that only stable ↵Kurtis Nusbaum-1/+1
editions are allowed to be used on non-nightly builds
2018-04-17run rustfmt on rustc_driver/driver.rsMark Mansi-526/+610
2018-04-17Auto merge of #49882 - Zoxc:sync-misc2, r=michaelwoeristerbors-2/+6
More thread-safety changes r? @michaelwoerister
2018-04-16Auto merge of #49433 - varkor:metadata-skip-mir-opt, r=michaelwoeristerbors-1/+1
Skip MIR encoding for cargo check Resolves #48662. r? @michaelwoerister
2018-04-15Add misc timingsJohn Kåre Alsaker-2/+6
2018-04-10Make Session.crate_types thread-safeJohn Kåre Alsaker-1/+2
2018-04-10Make Session.crate_disambiguator thread-safeJohn Kåre Alsaker-1/+1
2018-04-10Make recursion_limit and type_length_limit thread-safeJohn Kåre Alsaker-1/+1
2018-04-04Add len() method to OutputTypesvarkor-1/+1
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