summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-07-31Update to 1.45.2Mark Rousskov-1/+1
2020-07-30Fix #[track_caller] shims for trait objects.Adam Perry-1/+26
We were missing an Instance::resolve_for_fn_ptr in resolve_for_vtable. Closes #74764.
2020-07-30Add a test for pattern matching within a tupleMark Rousskov-0/+7
2020-07-30Revert "Fix an ICE on an invalid `binding @ ...` in a tuple struct pattern"Mark Rousskov-40/+1
This reverts commit 174b58287c66a6ad3eaa1897279d769611919960.
2020-07-30Revert "delay_span_bug instead of silent ignore"Mark Rousskov-16/+10
This reverts commit d01e1093baf4d5ebe08a067a2a8e720e7fa7eb22.
2020-07-26Use preinstalled MSYS2Mateusz Mikuła-49/+3
2020-07-25The const propagator cannot trace references.Oliver Scherer-50/+202
Thus we avoid propagation of a local the moment we encounter references to it.
2020-07-23ci: Replace exec-with-shell wrapper with "plain bash"Kristofer Rye-31/+4
Also, promote defaults.run.shell from inside only the primary jobs to the top level. The src/ci/exec-with-shell.py wrapper script was formerly used to change out the shell mid-job by intercepting a CI_OVERRIDE_SHELL environment variable. Now, instead, we just set `bash` as the global default across all jobs, and we also delete the exec-with-shell.py script. Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23ci: Stop setting CI_OVERRIDE_SHELL environment variableKristofer Rye-2/+15
This will render the src/ci/exec-with-shell.py script more or less useless, but we're going to replace that by just using the system bash instead. Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23ci: Set `shell: bash` as a default, remove duplicatesKristofer Rye-20/+3
A follow-up to #74406, this commit merely removes the `shell: bash` lines where they are explicitly added in favor of setting defaults for *all* "run" steps. Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23Set shell for github actions CIMark Rousskov-0/+20
2020-07-23delay_span_bug instead of silent ignoreMark Rousskov-10/+16
2020-07-23Fix an ICE on an invalid `binding @ ...` in a tuple struct patternJakub Adam Wieczorek-1/+40
2020-07-23Bump cargoMark Rousskov-0/+0
This is not a user-visible change as Cargo's library API is not exposed by Rust, but this way the version in 1.45.1 will appropriately match with published Cargo 0.46.1.
2020-07-22rustbuild: drop tool::should_installMarc-Antoine Perennou-17/+4
Always install when the build succeeds Fixes #74431 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-22Use `ReEmpty(U0)` as the implicit region bound in typeckMatthew Jasper-10/+102
2020-07-22Update to rustfmt 1.4.17Mark Rousskov-0/+0
2020-07-221.45.1 releaseMark Rousskov-1/+1
2020-07-13Stable 1.45.0 releaseMark Rousskov-1/+1
2020-07-10ci: fix wasm32 broken due to a NodeJS version bumpPietro Albini-1/+12
Emscripten's SDK recently bumped the version of NodeJS they shipped, but our Dockerfile for the wasm32 builder hardcoded the version number. This will cause consistent CI failures once the currently cached image is rebuilt (either due to a change or due to the cache expiring). This commit fixes the problem by finding the latest version of NodeJS in the Emscripten SDK and symlinking it to a "latest" directory, which is then added to the PATH.
2020-07-10Change how compiler-builtins gets many CGUsAlex Crichton-48/+15
This commit intends to fix an accidental regression from #70846. The goal of #70846 was to build compiler-builtins with a maximal number of CGUs to ensure that each module in the source corresponds to an object file. This high degree of control for compiler-builtins is desirable to ensure that there's at most one exported symbol per CGU, ideally enabling compiler-builtins to not conflict with the system libgcc as often. In #70846, however, only part of the compiler understands that compiler-builtins is built with many CGUs. The rest of the compiler thinks it's building with `sess.codegen_units()`. Notably the calculation of `sess.lto()` consults `sess.codegen_units()`, which when there's only one CGU it disables ThinLTO. This means that compiler-builtins is built without ThinLTO, which is quite harmful to performance! This is the root of the cause from #73135 where intrinsics were found to not be inlining trivial functions. The fix applied in this commit is to remove the special-casing of compiler-builtins in the compiler. Instead the build system is now responsible for special-casing compiler-builtins. It doesn't know exactly how many CGUs will be needed but it passes a large number that is assumed to be much greater than the number of source-level modules needed. After reading the various locations in the compiler source, this seemed like the best solution rather than adding more and more special casing in the compiler for compiler-builtins. Closes #73135
2020-07-10Reoder order in which MinGW libs are linkedMateusz Mikuła-1/+1
2020-07-10Perform obligation deduplication to avoid buggy `ExistentialMismatch`Esteban Küber-3/+39
Fix #59326.
2020-07-10rustc_lexer: Simplify shebang parsing once moreVadim Petrochenkov-20/+21
2020-07-10rustdoc: Rename invalid_codeblock_attribute lint to be pluralOliver Middleton-14/+14
2020-07-10rustdoc: Fix doc aliases with crate filteringOliver Middleton-8/+55
Fix a crash when searching for an alias contained in the currently selected filter crate. Also remove alias search results for crates that should be filtered out. The test suite needed to be fixed to actually take into account the crate filtering and check that there are no results when none are expected.
2020-06-26Beta backport of PR #73005 (obligation error impl candidate)Aaron Hill-181/+55
2020-06-26Ensure stack when building MIR for matchesSimonas Kazlauskas-23/+5233
In particular matching on complex types such as strings will cause deep recursion to happen. Fixes #72933
2020-06-26Don't run test on emscripten which doesn't have threadsAmanieu d'Antras-0/+1
2020-06-26Add -O compile flag to testAmanieu d'Antras-0/+1
2020-06-26Fix link error with #[thread_local] introduced by #71192Amanieu d'Antras-0/+20
2020-06-26Allow inference regions when relating constsTyler Mandry-10/+13
Fixes #73050
2020-06-26Disable the `SimplifyArmIdentity` pass on betaWesley Wiser-62/+87
This pass is buggy so I'm disabling it to fix a stable-to-beta regression. Related to #73223
2020-06-26linker: Never pass `-no-pie` to non-gnu linkersVadim Petrochenkov-2/+2
2020-06-26Add issue number to novel violation warningDylan MacKenzie-2/+5
2020-06-26Add regression test for #73431Dylan MacKenzie-0/+29
2020-06-26Make novel structural match violations a warningDylan MacKenzie-1/+5
2020-06-15Enable lld for Cargo tests on Windows.Eric Huss-2/+2
2020-06-15Update cargo to include rust-lang/cargo#8361Mark Rousskov-0/+0
2020-06-13Bump bootstrap to released stableMark Rousskov-2/+2
2020-06-13further bless tests.Felix S. Klock II-19/+19
2020-06-13placate tidy.Felix S. Klock II-1/+1
2020-06-13Revert "Defer creating drop trees in MIR lowering until leaving that scope"Felix S. Klock II-769/+735
This reverts commit 611988551fba1bcbb33ae2e1e0171cb8d2e70d5a.
2020-06-13Revert "Reduce the number of drop-flag assignments in unwind paths"Felix S. Klock II-12/+39
This reverts commit 54aa418a6082b364b90feee70b07381ea266c4d5.
2020-06-13Revert "Add some more comments"Felix S. Klock II-19/+6
This reverts commit 1a19c1da735eb1cb574ab55a3568e8c13498c490.
2020-06-13Revert "Bless mir-opt tests"Felix S. Klock II-819/+973
This reverts commit a030c923412b0a0f7b02a585debe7bf60357370d.
2020-06-13Revert "Address review comments"Felix S. Klock II-11/+7
This reverts commit b998497bd41d6de71ec035433247dee856d1f3a5.
2020-06-13remove assertBastian Kauschke-2/+1
2020-06-13normalize adt fields during structural match checkBastian Kauschke-1/+28
2020-06-13Add regression test for #73137Dylan MacKenzie-0/+42
Co-authored-by: Aaron1011 <aa1ronham@gmail.com>