summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
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-12include AsciiExt in tests1011X-1/+2
2018-03-11Remove "and may change between Rust releases"Phlosioneer-11/+11
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-1/+10
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-11Document when types have OS-dependent sizesPhlosioneer-0/+33
As per issue #43601, types that can change size depending on the target operating system should say so in their documentation. I used this template when adding doc comments: The size of a(n) <name> struct may vary depending on the target operating system, and may change between Rust releases. For enums, I used "instance" instead of "struct".
2018-03-11Auto merge of #48799 - alexcrichton:more-osx-cores, r=Mark-Simulacrumbors-19/+70
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-10type_alias_bounds lint: If the type alias uses an associated type without ↵Ralf Jung-29/+150
"as", suggest to use the "as" form instead. This is necessary to get rid of the type bound, and hence silence the warning.
2018-03-10Print /proc/cpuinfo and /proc/meminfo before starting to build.kennytm-0/+8
2018-03-10Prevents the crash log printer on macOS from crashing the entire job.kennytm-1/+2
2018-03-10Rename ignored_generic_bounds -> type_alias_boundsRalf Jung-33/+68
First of all, the lint is specific for type aliases. Second, it turns out the bounds are not entirely ignored but actually used when accessing associated types. So change the wording of the lint, and adapt its name to reality. The lint has never been on stable or beta, so renaming is safe.
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-10Split param-bounds-ignored into two, it was testing two independent thingsRalf Jung-62/+95
Also, tweak the test for ignored type aliases such that replacing the type alias by a newtype struct leads to a well-formed type definition, and errors when used the way the type alias is used.
2018-03-10Auto merge of #48755 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavusbors-64/+97
Multiple rustdoc fixes Fixes #48733. r? @QuietMisdreavus
2018-03-10Auto merge of #48901 - alexcrichton:j1-install, r=Mark-Simulacrumbors-1/+1
rustbuild: Pass `-j1` to OpenSSL `make install` 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-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-5/+5
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-09rustbuild: Remove ThinLTO-related configurationAlex Crichton-21/+0
This commit removes some ThinLTO/codegen unit cruft primarily only needed during the initial phase where we were adding ThinLTO support to rustc itself. The current bootstrap compiler knows about ThinLTO and has it enabled by default for multi-CGU builds which are also enabled by default. One CGU builds (aka disabling ThinLTO) can be achieved by configuring the number of codegen units to 1 for a particular builds. This also changes the defaults for our dist builders to go back to multiple CGUs. Unfortunately we're seriously bleeding for cycle time on the bots right now so we need to recover any time we can.
2018-03-09Remove auto trait implementation section when emptyGuillaume Gomez-8/+30
2018-03-09travis: Upgrade dist builders for OSXAlex Crichton-5/+5
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-09Auto merge of #48757 - alexcrichton:fix-msbuild-build, r=Mark-Simulacrumbors-24/+20
rustbuild: Fix MSBuild location of `llvm-config.exe` For LLD integration the path to `llvm-config` needed to change to inside the build directory itself (for whatever reason) but the build directory is different on MSBuild than it is on `ninja` for MSVC builds, so the path to `llvm-config.exe` was actually wrong and not working! This commit removes the `Build::llvm_config` function in favor of the source of truth, the `Llvm` build step itself. The build step was then updated to find the right build directory for MSBuild as well as `ninja` for where `llvm-config.exe` is located. Closes #48749
2018-03-09Check for two_phase_borrows in the right placebobtwinkles-1/+1
Fix a small compilation issue after I missed a critical change after rebasing yesterday (ref c933440)
2018-03-09Fix tests after two-phase borrow rewritebobtwinkles-33/+14
2018-03-09Remove unused field on BorrowDatabobtwinkles-3/+1
2018-03-09Complete re-implementation of 2-phase borrowsbobtwinkles-33/+32
See #48431 for discussion as to why this was necessary and what we hoped to accomplish. A brief summary: - the first implementation of 2-phase borrows was hard to limit in the way we wanted. That is, it was too good at accepting all 2-phase borrows rather than just autorefs =) - Numerous diagnostic regressions were introduced by 2-phase borrow support which were difficult to fix
2018-03-09mir dataflow: change graphviz outputbobtwinkles-142/+149
The new output format is perhaps a little more readable. As a bonus, we get labels on the outgoing edges to more easily corroborate the dataflow with the plain MIR graphviz output.
2018-03-09Finally start down the right pathbobtwinkles-431/+427
2018-03-09Rename BorrowData::location to BorrowData::reserve_locationbobtwinkles-7/+10
in preparation for rewritting two phase borrow support
2018-03-09Fix anchor not always being put at the right placeGuillaume Gomez-0/+3
2018-03-09Fix escape not working when searchbar selectedGuillaume Gomez-3/+6
2018-03-09Add missing items in the sidebar for functionsGuillaume Gomez-55/+71
2018-03-09rustbuild: Fix MSBuild location of `llvm-config.exe`Alex Crichton-24/+20
For LLD integration the path to `llvm-config` needed to change to inside the build directory itself (for whatever reason) but the build directory is different on MSBuild than it is on `ninja` for MSVC builds, so the path to `llvm-config.exe` was actually wrong and not working! This commit removes the `Build::llvm_config` function in favor of the source of truth, the `Llvm` build step itself. The build step was then updated to find the right build directory for MSBuild as well as `ninja` for where `llvm-config.exe` is located. Closes #48749
2018-03-09tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directoriesVadim Petrochenkov-140/+28
2018-03-09Make the default relro level be doing nothing at allJohannes Löthberg-1/+7
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-03-09Add missing urlsGuillaume Gomez-7/+14