summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-07-31Auto merge of #74988 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.45.2bors-1/+1
[stable] Update to 1.45.2 This just bumps the release number, which I forgot to do in the previous PR (#74958). r? @ghost
2020-07-31Update to 1.45.2Mark Rousskov-1/+1
2020-07-31Auto merge of #74958 - Mark-Simulacrum:stable-next, r=pnkfelixbors-53/+49
[stable] 1.45.2 release This is intended to fix the stable breakage noted in #74954, but does *not* close that issue -- there remains investigation and likely nightly/beta fixes need to be issued as well. r? @pnkfelix
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-301.45.2 release notesMark Rousskov-0/+9
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-26Auto merge of #74746 - wesleywiser:stable_backport_73669, r=Mark-Simulacrum 1.45.1bors-108/+207
Stable backport of #73613 This is the backport of #73613 to stable. r? @ghost cc @Mark-Simulacrum In addition the tests added in the original PR passing, I've also confirmed that the test case in #74739 works correctly.
2020-07-26Use preinstalled MSYS2Mateusz Mikuła-58/+3
2020-07-25Update release notesMark Rousskov-0/+2
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-24Auto merge of #74574 - Mark-Simulacrum:stable-next, r=Mark-Simulacrumbors-72/+194
[stable] 1.45.1 release See RELEASES.md for details on what this contains.
2020-07-23ci: Replace exec-with-shell wrapper with "plain bash"Kristofer Rye-41/+5
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-80/+12
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/+78
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-1/+1
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-1/+1
2020-07-221.45.1 releaseMark Rousskov-1/+12
2020-07-13Auto merge of #74297 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.45.0bors-6/+169
[stable] 1.45 release
2020-07-13Stable 1.45.0 releaseMark Rousskov-1/+1
2020-07-13Cherry-pick release notes from masterMark Rousskov-5/+168
2020-07-13Auto merge of #74219 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-95/+157
[beta] next Backports of: * rustdoc: Fix doc aliases with crate filtering #73644 * rustdoc: Rename invalid_codeblock_attribute lint to be plural #74131 * rustc_lexer: Simplify shebang parsing once more #73596 * Perform obligation deduplication to avoid buggy `ExistentialMismatch` #73485 * Reorder order in which MinGW libs are linked to fix recent breakage #73184 * Change how compiler-builtins gets many CGUs #73136 * Fix wasm32 being broken due to a NodeJS version bump #73885
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-27Auto merge of #73766 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-279/+5449
[beta] backports This PR backports the following: * Make novel structural match violations not a `bug` #73446 * linker: Never pass `-no-pie` to non-gnu linkers #73384 * Disable the `SimplifyArmIdentity` pass #73262 * Allow inference regions when relating consts #73225 * Fix link error with #[thread_local] introduced by #71192 #73065 * Ensure stack when building MIR for matches #72941 * Don't create impl candidates when obligation contains errors #73005 r? @ghost
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-15Auto merge of #73326 - Mark-Simulacrum:beta-next, ↵bors-1939/+2223
r=ecstatic-morse,Mark-Simulacrum [beta] backport This is a beta backport rollup of the following: * [beta] Revert heterogeneous SocketAddr PartialEq impls #73318 * Fix emcc failure for wasm32. #73213 * Revert #71956 #73153 * [beta] Update cargo #73141 * Minor: off-by-one error in RELEASES.md #72914 * normalize adt fields during structural match checking #72897 * Revert pr 71840 #72989 * rust-lang/cargo#8361 * e658200 from #72901 r? @ghost
2020-06-15Enable lld for Cargo tests on Windows.Eric Huss-3/+3
2020-06-15Update cargo to include rust-lang/cargo#8361Mark Rousskov-0/+0