about summary refs log tree commit diff
path: root/src/librustc_driver
AgeCommit message (Collapse)AuthorLines
2018-12-03Bump stack size to 32MBOliver Scherer-4/+6
2018-12-02Auto merge of #56198 - bjorn3:cg_ssa_refactor, r=eddybbors-1/+0
Refactor rustc_codegen_ssa cc #56108 (not all things are done yet) This removes an unsafe method from cg_ssa. r? @eddyb cc @sunfishcode
2018-12-01Rollup merge of #56336 - nnethercote:clean-up-pp, r=nikomatsakiskennytm-1/+1
Clean up and streamline the pretty-printer Some minor improvements.
2018-11-30proc_macro: introduce a "bridge" between clients (proc macros) and servers ↵Eduard-Mihai Burtescu-10/+10
(compiler front-ends).
2018-11-29Remove __build_diagnostic_array! from cg_utilsbjorn3-1/+0
2018-11-29Use `Cow` in `Token::String`.Nicholas Nethercote-1/+1
`Printer::word` takes a `&str` and converts it into a `String`, which causes an allocation. But that allocation is rarely necessary, because `&str` is almost always a `&'static str` or a `String` that won't be used again. This commit changes `Token::String` so it holds a `Cow<'static, str>` instead of a `String`, which avoids a lot of allocations.
2018-11-26rustc-guide has movedMark Mansi-1/+1
2018-11-15Rollup merge of #55901 - euclio:speling, r=petrochenkovPietro Albini-2/+2
fix various typos in doc comments
2018-11-13fix various typos in doc commentsAndy Russell-2/+2
2018-11-12Fix fallout it rustc_driver testsOliver Scherer-5/+5
2018-11-12Turn `HirLocalId` into a `newtype_index`Oliver Scherer-4/+4
2018-11-12Make `NodeId` a `newtype_index` to enable niche optimizationsOliver Scherer-1/+1
2018-11-07Rollup merge of #55495 - wesleywiser:opt_fuel_rustbuild, r=nikomatsakiskennytm-1/+1
Don't print opt fuel messages to stdout because it breaks Rustbuild Rustbuild passes `--message-format json` to the compiler invocations which causes JSON to be emitted on stdout. Printing optimization fuel messages to stdout breaks the json and causes Rustbuild to fail. Work around this by emitting optimization fuel related messages on stderr instead.
2018-11-03Auto merge of #55330 - scalexm:bound-ty, r=nikomatsakisbors-6/+6
Add support for bound types This PR may have some slight performance impacts, I don't know how hot is the code I touched. Also, this breaks clippy and miri. r? @nikomatsakis
2018-11-03Shift both late bound regions and bound typesscalexm-6/+6
2018-11-02Use `jemalloc-sys` on Linux and OSX compilersAlex Crichton-0/+13
This commit adds opt-in support to the compiler to link to `jemalloc` in the compiler. When activated the compiler will depend on `jemalloc-sys`, instruct jemalloc to unprefix its symbols, and then link to it. The feature is activated by default on Linux/OSX compilers for x86_64/i686 platforms, and it's not enabled anywhere else for now. We may be able to opt-in other platforms in the future! Also note that the opt-in only happens on CI, it's otherwise unconditionally turned off by default. Closes #36963
2018-10-29Don't print opt fuel messages to stdout because it breaks RustbuildWesley Wiser-1/+1
Rustbuild passes `--message-format json` to the compiler invocations which causes JSON to be emitted on stdout. Printing optimization fuel messages to stdout breaks the json and causes Rustbuild to fail. Work around this by emitting optimization fuel related messages on stderr instead.
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