summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2018-12-04Bump stack size to 32MBOliver Scherer-4/+6
2018-10-24Add `extern crate` items to extern preludeVadim Petrochenkov-1/+3
2018-10-19Prefer unwrap_or_else to unwrap_or in case of function calls/allocationsljedrz-1/+1
2018-10-17Auto merge of #54671 - petrochenkov:extpre2015, r=nikomatsakisbors-0/+1
resolve: Scale back hard-coded extern prelude additions on 2015 edition https://github.com/rust-lang/rust/pull/54404 stabilized `feature(extern_prelude)` on 2015 edition, including the hard-coded parts not passed with `--extern`. First of all, I'd want to confirm that this is intended stabilization, rather than a part of the "extended beta" scheme that's going to be reverted before releasing stable. (EDIT: to clarify - this is a question, I'm \*asking\* for confirmation, rather than give it.) Second, on 2015 edition extern prelude is not so fundamentally tied to imports and is a mere convenience, so this PR scales them back to the uncontroversial subset. The "uncontroversial subset" means that if libcore is injected it brings `core` into prelude, if libstd is injected it brings `std` and `core` into prelude. On 2015 edition this can be implemented through the library prelude (rather than hard-coding in the compiler) right now, I'll do it in a follow-up PR. UPDATE: The change is done for both 2015 and 2018 editions now as discussed below. Closes https://github.com/rust-lang/rust/issues/53166
2018-10-15rustc/session: improve allocationsljedrz-1/+1
2018-10-15Auto merge of #55008 - ljedrz:cleanup_rustc_driver, r=estebankbors-246/+208
Cleanup rustc/driver - improve/remove allocations - simplify `profile::trace::cons*` - don't sort `base` if it only has one element - use `Cow<str>` where applicable - use `unwrap_or_else` with function calls - remove an explicit `return`, add an explicit `None` - remove lifetimes from `const`s - improve common patterns - improve macro calls - whitespace & formatting fixes
2018-10-13Copy extern prelude from resolver to global contextVadim Petrochenkov-0/+1
2018-10-13rustc/driver: whitespace & formatting fixesljedrz-86/+87
2018-10-13rustc/driver: unwrap_or_else with function callsljedrz-7/+5
2018-10-13rustc/driver: remove explicit return, add explicit Noneljedrz-2/+2
2018-10-13rustc/driver: don't sort base if it only has one elementljedrz-2/+3
2018-10-13rustc/driver: remove lifetimes from constsljedrz-15/+8
2018-10-13rustc/driver: improve common patternsljedrz-58/+33
2018-10-13rustc/driver: use Cow<str> where applicableljedrz-7/+8
2018-10-13rustc/driver: improve/remove allocationsljedrz-32/+30
2018-10-12rustc/driver: improve macro callsljedrz-30/+25
2018-10-12rustc/driver: simplify profile::trace::consljedrz-8/+8
2018-10-08Stabilize the `Option::replace` methodClément Renault-1/+0
2018-09-30Re-export `getopts` so custom drivers can reference it.Richard Diamond-1/+1
Otherwise, custom drivers will have to use their own copy of `getopts`, which won't match the types used in `CompilerCalls`.
2018-09-30Auto merge of #54601 - cuviper:prep-1.31, r=Mark-Simulacrumbors-1/+1
Bump to 1.31.0 and bootstrap from 1.30 beta Closes #54594.
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+1
2018-09-28Remap only source files in the command lineIgor Matuszewski-0/+1
2018-09-26rustc_driver/test.rs: rustfmtNiko Matsakis-163/+219
2018-09-26fix rustc_driver testsNiko Matsakis-2/+2
2018-09-26Remove OneVectorljedrz-3/+5
2018-09-15Fix missing struct nameMarshall Bowers-1/+1
2018-09-15Make rustc::middle::region::Scope's fields publicMarshall Bowers-3/+9
2018-09-14Rollup merge of #54173 - phansch:suggest_valid_crate_type, r=estebankkennytm-7/+41
Suggest valid crate type if invalid crate type is found This adds a suggestion to the `invalid_crate_types` lint. The suggestion is based on the Levenshtein distance to existing crate types. If no suggestion is found it will show the lint without any suggestions. Closes #53958
2018-09-14Rollup merge of #54095 - kenta7777:kenta7777#53719, r=davidtwcokennytm-1/+1
Rename all mentions of `nil` to `unit` Fixes #53719. Renamed keywords nil to unit.
2018-09-13Suggest valid crate type if invalidPhilipp Hansch-7/+41
This adds a suggestion to the `invalid_crate_types` lint. The suggestion is based on the Levenshtein distance to existing crate types. If no suggestion is found it will show the lint without any suggestions.
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-1/+0
Co-authored-by: nikomatsakis
2018-09-11Revert "renamed t_nil to t_unit"kenta7777-9/+9
This reverts commit 69deed9dc17cfd1c3e02d9e662ebc164885321a6.
2018-09-10renamed t_nil to t_unitkenta7777-9/+9
2018-09-10renamed mk_nil to mk_unitkenta7777-1/+1
2018-09-07switch to using `NonZeroU32` to represent indicesNiko Matsakis-9/+14
2018-09-04Move #[test_case] to a syntax extensionJohn Renner-1/+0
2018-08-31Add deprecated_name argument to the register lint group functionsflip1995-2/+2
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-4/+4
2018-08-27Remove Node* prefix from AnnNodevarkor-19/+19
2018-08-27Auto merge of #53441 - toidiu:ak-fix53419, r=nikomatsakisbors-0/+1
fix for late-bound regions Fix for https://github.com/rust-lang/rust/issues/53419 r? @nikomatsakis
2018-08-27Move with_globals setup from run_compiler to runJohn Kåre Alsaker-28/+28
2018-08-24check that adding infer-outlives requirement to all crates worksNiko Matsakis-0/+1
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-1/+1
or "".into()
2018-08-19mv codemap source_mapDonato Sciarra-3/+3
2018-08-19mv codemap() source_map()Donato Sciarra-8/+8
2018-08-19mv (mod) codemap source_mapDonato Sciarra-2/+2
2018-08-19mv filemap source_fileDonato Sciarra-1/+1
2018-08-19mv CodeMap SourceMapDonato Sciarra-4/+4
2018-08-14Auto merge of #53354 - kennytm:rollup, r=kennytmbors-4/+6
Rollup of 11 pull requests Successful merges: - #53112 (pretty print BTreeSet) - #53208 (Don't panic on std::env::vars() when env is null.) - #53226 (driver: set the syntax edition in phase 1) - #53229 (Make sure rlimit is only ever increased) - #53233 (targets: aarch64: Add bare-metal aarch64 target) - #53239 (rustc_codegen_llvm: Restore the closure env alloca hack for LLVM 5.) - #53246 (A few cleanups) - #53257 (Idiomatic improvements to IP method) - #53274 (Remove statics field from CodegenCx) - #53290 (Make LLVM emit assembly comments with -Z asm-comments) - #53317 (Mark prior failure to avoid ICE)
2018-08-14Rollup merge of #53229 - varkor:rlimits_min, r=nikomatsakiskennytm-1/+3
Make sure rlimit is only ever increased `libc::setrlimit` will fail if we try to set the rlimit to a value lower than it is currently, so make sure we're never trying to do this. Fixes #52801.