about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-03-24Add richer printingMark Rousskov-1/+9
2020-03-24Remove attribute `#[structural_match]` and any references to itVadim Petrochenkov-48/+43
2020-03-24Mark hotplug_codegen_backend as ignore-stage1bjorn3-0/+2
2020-03-24Implement Fuse with OptionJosh Stone-255/+340
The former `done` flag was roughly similar to an `Option` tag, but left the possibity of misuse. By using a real `Option`, we can set `None` when the iterator is exhausted, removing any way to call it again. We also allow niche layout this way, so the `Fuse` may be smaller. The `FusedIterator` specialization does want to ignore the possibility of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }` to optimize that branch away. The entire `Fuse` implementation is now isolated in its own module to contain that unsafety.
2020-03-24Move rustc-guide submodule to rustc-dev-guideSantiago Pastorino-8/+8
2020-03-24resolve: Remove `rustc_attrs` as a standalone feature gateVadim Petrochenkov-98/+75
Now it only gates specific built-in attributes
2020-03-24Fix placement of suggested generic param when bounds are presentEsteban Küber-5/+7
2020-03-24fmtJeremy Stucki-1/+1
2020-03-24must_use on split_offKornel-2/+4
#70194
2020-03-24update mir opt testBastian Kauschke-1/+1
2020-03-24Auto merge of #70190 - pietroalbini:gha, r=Mark-Simulacrumbors-29/+1157
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-2/+4
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-3/+3
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-11/+1072
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-24Remove unknown lint from deny attributebishtpawan-18/+0
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-24Add explanation for inner attributebishtpawan-7/+35
2020-03-24improve normalize cycle errorBastian Kauschke-19/+29
2020-03-24Update tools_lintsbishtpawan-2/+3
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-24rustc: remove rustc_hir_pretty dependency.Mazdak Farrokhzad-98/+100
2020-03-24Refactor changesbishtpawan-3/+0
2020-03-24rustc_typeck: remove rustc_hir_pretty usageMazdak Farrokhzad-55/+53
2020-03-24fix const_prop ICERalf Jung-8/+15
2020-03-24Add long error explanation for E0710 #61137bishtpawan-1/+29
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-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