about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-03-13refactor `ParamEnv::empty(Reveal)` into two distinct methodsNiko Matsakis-72/+77
- `ParamEnv::empty()` -- does not reveal all, good for typeck - `ParamEnv::reveal_all()` -- does, good for trans - `param_env.with_reveal_all()` -- converts an existing parameter environment
2018-03-13add handy helper for Cell<usize>, used for perf statsNiko Matsakis-0/+10
2018-03-13random reformattingNiko Matsakis-17/+16
2018-03-13comment the purpose of `TransNormalize`Niko Matsakis-0/+4
2018-03-13make regions "traceable" so you can do `infcx.at(..).eq(r1, r2)`Niko Matsakis-22/+23
2018-03-13fix typo in commentNiko Matsakis-1/+1
2018-03-13add `TypeRelation` and `Lift` impls for `Kind`Niko Matsakis-11/+35
2018-03-13improve TypeFoldable/Lift macros and make a bunch of stuff use themNiko Matsakis-813/+551
Improvements: - Use Clone not Copy for the "simple cases" - Separate TypeFoldable and Lift for the "simple cases" - Support generics type parameters - Support named fields in enum variants - etc
2018-03-13require `Lifted` types to outlive `'tcx`Niko Matsakis-1/+1
2018-03-13Auto merge of #48958 - alexcrichton:update-rls-rustc, r=sfacklerbors-3/+3
Update the rls-rustc package Should hopefully fix compiling the rls!
2018-03-13Rollup merge of #48954 - GuillaumeGomez:missing-links-fmt, r=QuietMisdreavuskennytm-4/+8
Add missing links
2018-03-13Rollup merge of #48898 - GuillaumeGomez:remove-empty-section, r=QuietMisdreavuskennytm-8/+30
Remove auto trait implementation section when empty Fixes #48882.
2018-03-13Rollup merge of #48631 - focusaurus:remember-collapse-setting, r=QuietMisdreavuskennytm-0/+6
Remember state of top-level collapse toggle widget This change allows the big top-right expand/collapse toggle to remember its setting across navigation or page reloads. Prior to this change, there was this annoyance: - browse to some docs - Click the minus button to collapse them - browse to other docs (or reload the page) - Everything is expanded again The solution is based on storing a simple boolean flag in localStorage. I think it's a good improvement, but it does introduce the following potentially surprising behavior: - browse to some docs - click the minus button to collapse them - click to expand a particular item (not the main top-right big one) - reload the page, everything is collapsed Paired with @debugsteven on this.
2018-03-13Rollup merge of #48480 - jethrogb:patch-5, r=alexcrichtonkennytm-0/+4
Clarify interfaction between File::set_len and file cursor
2018-03-12Update the rls-rustc packageAlex Crichton-3/+3
Should hopefully fix compiling the rls!
2018-03-12Add missing linksGuillaume Gomez-4/+8
2018-03-13Rollup merge of #48934 - Phlosioneer:42453-debug-hygene, r=petrochenkovkennytm-1/+18
Fix hygene issue when deriving Debug The code for several of the core traits doesn't use hygenic macros. This isn't a problem, except for the Debug trait, which is the only one that uses a variable, named "builder". Variables can't share names with unit structs, so attempting to [derive(Debug)] on any type while a unit struct with the name "builder" was in scope would result in an error. This commit just changes the name of the variable to "__debug_trait_builder", because I couldn't figure out how to get a list of all unit structs in-scope from within the derive expansion function. If someone wants to have a unit struct with the exact name "__debug_trait_builder", they'll just have to do it without a [derive(Debug)]. I also checked the implementations of the other built-in derives to ensure they didn't declare any variables.
2018-03-13Rollup merge of #48928 - zackmdavis:span_suggestion_field_day, r=estebankkennytm-29/+46
in which some labels and notes are upgraded to structured suggestions (Meanwhile, a couple of parse-fail tests are moved to UI tests so that the reader can see the new output, and an existing UI test is given a more evocative name.) r? @estebank
2018-03-13Rollup merge of #48887 - alexcrichton:update-stdsimd, r=kennytmkennytm-0/+2
Update stdsimd module Pulls in a redesigned `std::simd` module as well as a replacement for the `is_target_feature_detected!` macro
2018-03-13Rollup merge of #48880 - petrochenkov:badstderr, r=kennytmkennytm-140/+28
tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directories
2018-03-13Rollup merge of #48877 - GuillaumeGomez:vec-missing-links, r=QuietMisdreavuskennytm-7/+14
Add missing urls r? @QuietMisdreavus
2018-03-13Rollup merge of #48725 - humenda:master, r=nikomatsakiskennytm-56/+23
Update L4Re target specification Due to the dynamically generated linker arguments of the L4Re build system, it is not a good idea to hard-code them in Rust. This PR undoes this step. It also adds an empty implementation to retrieve the number of CPUs.
2018-03-13Rollup merge of #48201 - NovemberZulu:master, r=steveklabnikkennytm-15/+36
rephrase UnsafeCell doc As shown by discussions on users.rust-lang.org [[1]], [[2]], UnsafeCell doc is not totally clear. I tried to made the doc univocal regarding what is allowed and what is not. The edits are based on my understanding following [[1]]. [1]: https://users.rust-lang.org/t/unsafecell-behavior-details/1560 [2]: https://users.rust-lang.org/t/is-there-a-better-way-to-overload-index-indexmut-for-a-rc-refcell/15591/12
2018-03-12Auto merge of #48770 - bobtwinkles:two_phase_borrows_rewrite, r=pnkfelixbors-600/+572
Two phase borrows rewrite This definitely needs a careful review. Both @pnkfelix and @nikomatsakis were involved with the design of this so they're natural choices here. I'm r?'ing @pnkfelix since they wrote the original two-phase borrow implementation. Also ping @KiChjang who expressed interest in working on this. I'm going to leave a few comments below pointing out some of the more dangerous changes I made (i.e. what I would like reviewers to pay special attention too.) r? @pnkfelix
2018-03-12Auto merge of #48295 - Keruspe:master, r=alexcrichtonbors-3/+10
rustbuild: pass datadir to rust-installer This fixes zsh completion install when $datadir != $prefix/share
2018-03-12Auto merge of #48938 - alexcrichton:no-leak-makeflags, r=kennytmbors-1/+8
test: Forcibly remove MAKEFLAGS in compiletest When executing run-make tests we run a risk of leaking the `MAKEFLAGS` environment variable if `./x.py` itself was called from `make` (aka `make check -j3` as the OSX bots do). We may then leak accidentally fds into the child process and trick it into thinking it's got a jobserver! Hopefully addresses [this] spurious failure [this]: https://github.com/rust-lang/rust/pull/48295#issuecomment-372134717
2018-03-11Auto merge of #48549 - alexcrichton:update-cargo, r=Mark-Simulacrumbors-742/+674
Update Cargo submodule Hopefully a routine update...
2018-03-11test: Forcibly remove MAKEFLAGS in compiletestAlex Crichton-1/+8
When executing run-make tests we run a risk of leaking the `MAKEFLAGS` environment variable if `./x.py` itself was called from `make` (aka `make check -j3` as the OSX bots do). We may then leak accidentally fds into the child process and trick it into thinking it's got a jobserver! Hopefully addresses [this] spurious failure [this]: https://github.com/rust-lang/rust/pull/48295#issuecomment-372134717
2018-03-11Update Cargo submoduleAlex Crichton-742/+674
Required moving all fulldeps tests depending on `rand` to different locations as now there's multiple `rand` crates that can't be implicitly linked against.
2018-03-11Update stdsimd moduleAlex Crichton-0/+2
Pulls in a redesigned `std::simd` module as well as a replacement for the `is_target_feature_detected!` macro
2018-03-11Auto merge of #48599 - Mark-Simulacrum:rustbuild-updates-step-1, r=alexcrichtonbors-59/+46
Remove ONLY_BUILD and ONLY_BUILD_TARGETS Primarily removes `ONLY_BUILD` and `ONLY_BUILD_TARGETS`. These aren't actually needed in the new system since we can simply not take the relevant `host` and `target` fields if we don't want to run with them in `Step::make_run`. This PR also includes a few other commits which generally clean up the state of rustbuild, but are not related to the `Step` changes.
2018-03-11Fix hygene issue when deriving DebugPhlosioneer-1/+18
The code for several of the core traits doesn't use hygenic macros. This isn't a problem, except for the Debug trait, which is the only one that uses a variable, named "builder". Variables can't share names with unit structs, so attempting to [derive(Debug)] on any type while a unit struct with the name "builder" was in scope would result in an error. This commit just changes the name of the variable to "__debug_trait_builder", because I couldn't figure out how to get a list of all unit structs in-scope from within the derive expansion function. If someone wants to have a unit struct with the exact name "__debug_trait_builder", they'll just have to do it without a [derive(Debug)].
2018-03-11Auto merge of #48907 - kennytm:minor-ci-stuff, r=alexcrichtonbors-0/+8
Some minor CI changes 1. On macOS, ensure crash log printing won't error, and only real crash logs are printed. This may avoid the `find` process exiting abnormally and truncated the Travis log (I guess). 2. Print `/proc/cpuinfo` and `/proc/meminfo`. To determine if there's any variation in the reported clock rate between jobs.
2018-03-11Auto merge of #48799 - alexcrichton:more-osx-cores, r=Mark-Simulacrumbors-17/+68
travis: Upgrade OSX builders This upgrades the OSX builders to the `xcode9.3-moar` image which has 3 cores as opposed to the 2 that our builders currently have. Should help make those OSX builds a bit speedier!
2018-03-11in which some labels and notes are upgraded to structured suggestionsZack M. Davis-29/+46
(Meanwhile, a couple of parse-fail tests are moved to UI tests so that the reader can see the new output, and an existing UI test is given a more evocative name.)
2018-03-11Auto merge of #48908 - varkor:bss-undefined-globals, r=alexcrichtonbors-1/+1
Merge LLVM fix for undefined bss globals This fixes #41315. r? @japaric
2018-03-11Auto merge of #48691 - Zoxc:profq-chan, r=michaelwoeristerbors-170/+175
Move PROFQ_CHAN to a Session field r? @michaelwoerister
2018-03-10Auto merge of #48419 - bobtwinkles:fix_late_bound_reg_self, r=nikomatsakisbors-0/+75
Use free regions when determining self type in `compare_impl_method` The ExplicitSelf::determine function expects to be able to compare regions. However, when the compare_self_type error reporting code runs we haven't resolved bound regions yet. Thus we replace them with free regions first. Fixes #48276
2018-03-10add stub for retrieving number of CPUsSebastian Humenda-1/+7
2018-03-10remove linker arguments from L4Re targetSebastian Humenda-56/+17
These change from release to release and are impossible to get right, since they are generated by Make magic.
2018-03-10Auto merge of #48388 - kyrias:relro-level-cg, r=alexcrichtonbors-7/+62
Add relro-level tests The `relro-level` debugging flag was added in #43170 which was merged in July 2017. This PR moves this flag to be a proper codegen flag.
2018-03-10Merge LLVM fix for undefined bss globalsvarkor-1/+1
This fixes #41315.
2018-03-10Print /proc/cpuinfo and /proc/meminfo before starting to build.kennytm-0/+8
2018-03-10Auto merge of #47574 - zilbuz:issue-14844, r=nikomatsakisbors-43/+309
Show the used type variable when issuing a "can't use type parameters from outer function" error message Fix #14844 r? @estebank
2018-03-10Auto merge of #48755 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavusbors-64/+97
Multiple rustdoc fixes Fixes #48733. r? @QuietMisdreavus
2018-03-09rustbuild: Pass `-j1` to OpenSSL `make install`Alex Crichton-1/+1
We explicitly do this when compiling OpenSSL itself due to weird racy issues in its build system, and now we've started seeing issues in the `make install` step so let's try and see what ratcheting down the parallelism does here...
2018-03-09Remove some commented out codebobtwinkles-12/+0
Left over from prior experimentation, no longer required.
2018-03-09Remove added two-phase-borrows flagbobtwinkles-1/+1
It seems whatever was causing problems has been fixed.
2018-03-09Auto merge of #48891 - alexcrichton:dist-osx-9.3, r=kennytmbors-2/+2
travis: Upgrade dist builders for OSX This commit upgrades the dist builders for OSX to Travis's new `xcode9.3-moar` image which has 3 cores available to it instead of 2. This should help us provide speedier builds on OSX and hit timeouts less in theory! Note that historically the dist builders for OSX have been a different version than the ones that are running tests. I had forgotten why this was the case and digging around brought up 307615567 where apparently Xcode 8 wasn't able to compile LLVM with `MACOSX_DEPLOYMENT_TARGET=10.7` which we desired. On a whim I gave this PR a spin and it [looks like][green] this has since been fixed (maybe in LLVM?). In any case those green builds should hopefully mean that we can safely upgrade and get faster infrastructure to boot. This commit also includes an upgrade of OpenSSL. This is not done for security reasons but rather build system reasons. Originally builds with the new image [did not succeed][red] due to weird build failures in OpenSSL, but upgrading seems to have made the spurious errors go away to here's to also hoping that's fixed! [green]: https://travis-ci.org/rust-lang/rust/builds/351353412 [red]: https://travis-ci.org/rust-lang/rust/builds/350969248
2018-03-09Remove auto trait implementation section when emptyGuillaume Gomez-8/+30