about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-03-24Rollup merge of #70359 - kornelski:mustsplit, r=Dylan-DPCMazdak Farrokhzad-2/+4
must_use on split_off A couple more for #70194
2020-03-24Rollup merge of #70355 - GuillaumeGomez:cleanup-e0454, r=Dylan-DPCMazdak Farrokhzad-1/+3
Clean up E0454 r? @Dylan-DPC
2020-03-24Rollup merge of #70350 - workingjubilee:patch-1, r=Dylan-DPCMazdak Farrokhzad-1/+1
Request "-Z unstable-options" for unstable options Explicitly requests the "-Z unstable-options" flag if someone attempts to use a cargo option gated by it. This enhances discoverability, particularly in the instance where the user is on the nightly compiler but isn't using the flag. This relates to, but does not end with or resolve, issue #65770.
2020-03-24Rollup merge of #70342 - withoutboats:io-slice-send-sync, r=Mark-SimulacrumMazdak Farrokhzad-0/+12
IoSlice/IoSliceMut should be Send and Sync Closes #70308
2020-03-24Rollup merge of #70241 - RalfJung:global-mem, r=oli-obkMazdak Farrokhzad-111/+179
Miri: move ModifiedStatic to ConstEval errors Also generally adjust terminology from "static" to "global" where appropriate (to avoid confusion with specifically `static` items).
2020-03-24Rollup merge of #70234 - anp:tracked-std-traits, r=AmanieuMazdak Farrokhzad-0/+32
#[track_caller] on core::ops::{Index, IndexMut}. Applies the attribute to `core::ops::Index(Mut)` and enough std internals to cover the [functions listed in "tier 1" in the original RFC](https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md#survey-of-panicking-standard-functions). Split out from #69251 to allow separate assessment of perf impact. To my knowledge, this is the last piece of implementing RFC 2091. Tracking issue: https://github.com/rust-lang/rust/issues/47809
2020-03-24Rollup merge of #70023 - GuillaumeGomez:cleanup-e0436, r=CentrilMazdak Farrokhzad-3/+4
clean up E0436 explanation r? @Dylan-DPC
2020-03-24must_use on split_offKornel-2/+4
#70194
2020-03-24Auto merge of #70190 - pietroalbini:gha, r=Mark-Simulacrumbors-30/+1994
Add GitHub Actions configuration This PR adds the GitHub Actions configuration to the rust-lang/rust repository. The configuration will be run in parallel with Azure Pipelines until the evaluation finishes: the infrastructure team will then decide whether to switch. Since GitHub Actions doesn't currently have any way to include pieces of configuration, this also adds the `src/tools/expand-yaml-anchors` tool, which serves as a sort of templating system. Otherwise the configuration is a mostly straight port from the Azure Pipelines configuration (thanks to all the PRs opened in the past). There are still a few small things I need to fix before we can land this, but it's mostly complete and ready for an initial review. r? @Mark-Simulacrum
2020-03-24spaces between braces really ruin readabilityWithout Boats-4/+4
2020-03-24ci: add notice on top of the azure pipelines configurationPietro Albini-0/+55
This will inform contributors tweaking the Azure Pipelines configuration that they also need to tweak the GitHub Actions setup.
2020-03-24bootstrap: remove default and only_host from expand-yaml-anchorsPietro Albini-2/+0
2020-03-24ci: run the "bors build finished" jobs only during try and auto runsPietro Albini-6/+8
2020-03-24ci: move the whole workspace directory on gha/linuxPietro Albini-1/+9
Moving just the `obj` directory created problems with mountpoints and Docker containers, so this tries to symlink the parent directory.
2020-03-24ci: run gha workflows for try, auto and master on the forkPietro Albini-6/+6
2020-03-24ci: fix out of disk space errors on linux GHAPietro Albini-4/+8
The /mnt mount point has 53GB of free disk space at the time of writing this commit, so this moves the build there to avoid running out of disk space during builds.
2020-03-24ci: don't move the build to C: on GitHub ActionsPietro Albini-1/+1
On Azure Pipeliones, the C: filesystem is huge with a lot of free space, while D: is small. By default builds happened in D:, so we added a script to symlink the big directories to C:, granting us more space. Filesystem Size Used Avail Use% C: 256G 143G 114G 56% D: 14G 2.0G 13G 15% On GitHub Actions instead C: is almost full, and we have a lot of free space on D:, where the build happens. Filesystem Size Used Avail Use% C: 128G 114G 15G 89% D: 56G 4.8G 52G 9% This commit stops creating the symlink on GitHub Actions, fixing the out of disk space errors we were seeing on some Windows builders.
2020-03-24ci: add github actions configurationPietro Albini-12/+1909
2020-03-24ci: rename script windows-symlink-build-dir to symlink-build-dirPietro Albini-2/+2
There will be a need to symlink the Linux build directory in the future as well, so let's make the script name generic.
2020-03-24ci: fix azure pipeline specific code in install-awscliPietro Albini-1/+1
2020-03-24actually we can reject all reads from mutable allocs in const-propRalf Jung-6/+5
2020-03-24Clean up E0454Guillaume Gomez-1/+3
2020-03-24Auto merge of #70163 - nikic:llvm-10-preparation, r=cuviperbors-12/+37
Prepare for LLVM 10 upgrade This is #67759 minus the submodule update. * Fix two compatibility issues in the rustllvm wrapper. * Update data layout strings in tests. * Fix LLVM version comparison (this become a problem because the major version has two digits now). r? @cuviper
2020-03-24Auto merge of #69894 - vtbassmatt:master, r=nellshamrellbors-23/+36
establish immutable source for RUST_CONFIGURE_ARGS fixes https://github.com/rust-lang/rust/issues/68671
2020-03-24fix const_prop ICERalf Jung-8/+15
2020-03-24bless youRalf Jung-1/+1
2020-03-24get back the more precise error messageRalf Jung-4/+10
2020-03-24bless; add test for mutating a staticRalf Jung-4/+48
2020-03-24move ModifiedStatic error to ConstEval errors, and generally adjust ↵Ralf Jung-105/+117
terminology from "static" to "global" where appropriate
2020-03-24Auto merge of #70351 - Centril:rollup-tveoq3w, r=Centrilbors-654/+1527
Rollup of 8 pull requests Successful merges: - #68884 (Make the `type_of` return a generic type for generators) - #69788 (Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book) - #70074 (Expand: nix all fatal errors) - #70077 (Store idents for `DefPathData` into crate metadata) - #70213 (traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet).) - #70259 (Use Reveal::All in MIR optimizations) - #70284 (correctly handle const params in type_of) - #70289 (Refactor `codegen`) Failed merges: r? @ghost
2020-03-24Rollup merge of #70289 - nnethercote:refactor-codegen, r=eddybMazdak Farrokhzad-109/+104
Refactor `codegen` `codegen` in `src/librustc_codegen_llvm/back/write.rs` is long and has complex control flow. These commits refactor it and make it easier to understand.
2020-03-24Rollup merge of #70284 - lcnr:issue70273-what-the-heck-git, r=eddybMazdak Farrokhzad-15/+73
correctly handle const params in type_of extends #70223, retry of #70276 fixes #70273 r? @eddyb cc @varkor
2020-03-24Rollup merge of #70259 - wesleywiser:use_reveal_all, r=eddybMazdak Farrokhzad-18/+68
Use Reveal::All in MIR optimizations Resolves some code review feedback in #67662. Fixes #68855 r? @eddyb
2020-03-24Rollup merge of #70213 - eddyb:stalled-on-ty-or-const, r=nikomatsakisMazdak Farrokhzad-67/+121
traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet). This PR addresses the representation side of #70180, but only *actually collects* `ty::Infer`s via `Ty::walk` into `stalled_on` (collecting `ty::ConstKind::Infer`s requires #70164). However, it should be enough to handle #70107's needs (WF obligations are stalled only on the outermost type/const being an inference variable, no `walk`-ing is involved). This is my second attempt, see #70181 for the previous one, which unacceptably regressed perf. r? @nikomatsakis cc @nnethercote
2020-03-24Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, r=petrochenkovMazdak Farrokhzad-75/+345
Store idents for `DefPathData` into crate metadata Previously, we threw away the `Span` associated with a definition's identifier when we encoded crate metadata, causing us to lose location and hygiene information. We now store the identifier's `Span` in a side table, which gets encoded into the crate metadata. When we decode items from the metadata, we combine the name and span back into an `Ident`. This improves the output of several tests, which previously had messages suppressed due to dummy spans. This is a prerequisite for #68686, since throwing away a `Span` means that we lose hygiene information.
2020-03-24Rollup merge of #70074 - Centril:unpanictry, r=petrochenkovMazdak Farrokhzad-274/+584
Expand: nix all fatal errors Basically, we go after all `.span_fatal` / `FatalError.raise()` and similar things and remove them one by one until there are no fatal errors left. r? @petrochenkov
2020-03-24Rollup merge of #69788 - ArekPiekarz:unstable_book_optin_builtin_traits, ↵Mazdak Farrokhzad-1/+1
r=Dylan-DPC Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book A simple fix in docs - the sequence of words in basic example of negative trait implementation was reversed.
2020-03-24Rollup merge of #68884 - Zoxc:gen-type, r=nikomatsakisMazdak Farrokhzad-95/+231
Make the `type_of` return a generic type for generators Fixes https://github.com/rust-lang/rust/issues/67651. r? @nikomatsakis
2020-03-23Request "-Z unstable-options" for unstable optionsJubilee-1/+1
Explicitly requests the "-Z unstable-options" flag if someone attempts to use a cargo option gated by it. This enhances discoverability, particularly in the instance where the user is on the nightly compiler but isn't using the flag.
2020-03-24pacify missing sysroot spans issueMazdak Farrokhzad-4/+9
2020-03-24fix rebase fallout due to #69497.Mazdak Farrokhzad-10/+25
2020-03-24fix rebase falloutMazdak Farrokhzad-0/+2
2020-03-24expand: address review commentsMazdak Farrokhzad-64/+64
2020-03-24expand: add recovery for parse_ntMazdak Farrokhzad-16/+63
2020-03-24defatalize expand_test_or_benchMazdak Farrokhzad-10/+26
2020-03-24defatalize get_test_runnerMazdak Farrokhzad-10/+10
2020-03-24expand: nix unused methodMazdak Farrokhzad-4/+1
2020-03-24defatalize `compile_declarative_macro`Mazdak Farrokhzad-16/+54
2020-03-24mbe::transcribe: defatalize errors.Mazdak Farrokhzad-37/+68
2020-03-24remove ExtCxt::struct_span_warnMazdak Farrokhzad-3/+2