summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-09-19[beta] Update cargoWeihang Lo-0/+0
3 commits in 4bcb3c65e440a12044092b85ffea8fac6cb96f42..387270bc7f446d17869c7f208207c73231d6a252 2022-08-17 21:01:34 +0000 to 2022-09-16 20:18:27 +0000 - Beta backport rust-lang/cargo#11082 (rust-lang/cargo#11097) - [Beta] Run `reach_max_unpack_size` test only on debug build (rust-lang/cargo#11090) - [beta] Fix for CVE-2022-36113 and CVE-2022-36114 (rust-lang/cargo#11088)
2022-09-19fix RPIT ICE for implicit HRTB when missing dynSantiago Pastorino-0/+43
2022-09-19Use getuid to check instead of USER env var in rustbuildSamyak Sarnayak-4/+11
This makes it consistent with `x.py` as changed in #95671 Fixes #100459
2022-09-19bump channel to stablePietro Albini-1/+1
2022-09-14Fix hang in `vec_init_then_push`Jason Newcomb-2/+15
2022-09-02CTFE: more informative error message on ReadPointerAsBytes troubleRalf Jung-13/+249
2022-08-31Auto merge of #101050 - pnkfelix:revert-mir-inline-policy-for-beta-1.64, ↵bors-0/+93
r=compiler-errors revert mir inlining policy for beta-1.64 revert mir inlining policy for beta-1.64 Fix #101004
2022-08-30Auto merge of #99860 - oli-obk:revert_97346, r=pnkfelixbors-57/+47
Revert "Rollup merge of #97346 - JohnTitor:remove-back-compat-hacks, … …r=oli-obk" This reverts commit c703d11dccb4a895c7aead3b2fcd8cea8c483184, reversing changes made to 64eb9ab869bc3f9ef3645302fbf22e706eea16cf. it didn't apply cleanly, so now it works the same for RPIT and for TAIT instead of just working for RPIT, but we should keep those in sync anyway. It also exposed a TAIT bug (see the feature gated test that now ICEs). r? `@pnkfelix` fixes #99536
2022-08-30Rollup merge of #100155 - compiler-errors:issue-100154, r=jackh726Dylan DPC-2/+44
Use `node_type_opt` to skip over generics that were not expected Fixes #100154
2022-08-30Auto merge of #99893 - compiler-errors:issue-99387, r=davidtwcobors-0/+24
Delay formatting trimmed path until lint/error is emitted Fixes #99387 r? `@davidtwco`
2022-08-30[beta] Update cargoEric Huss-0/+0
2022-08-29regression tests for problems that are exposed by mir-inlining policy that ↵Felix S. Klock II-0/+81
we are reverting for 1.64-beta.
2022-08-26ignore std/test/codegen/mem-replace-direct-memcpy.rs in the 1.64-beta.Felix S. Klock II-0/+12
2022-08-15Revert let_chains stabilizationNilstrieb-391/+715
This reverts commit 326646074940222d602f3683d0559088690830f4. It was discovered that they are not implemented correctly, which does not make them ready for stabilization.
2022-08-11Update cargo to include rust-lang/cargo#10970Mark Rousskov-0/+0
2022-08-11Add regression test for issue 100187Santiago Pastorino-0/+12
2022-08-11Bump to released stableMark Rousskov-342/+285
2022-08-08Add regression test commentNoah Lev-0/+2
2022-08-08Synthetize a trait ref when none is available.Camille GILLOT-7/+15
2022-08-08Avoid ICE in rustdoc.Camille GILLOT-5/+24
2022-08-08Put explicit_auto_deref into nurseryPhilipp Krones-3/+2
2022-08-08Enable RUSTC_BOOTSTRAP for a few stepsMark Rousskov-0/+3
2022-08-08rustdoc: do not mark the contents of a skipped module as inlinedMichael Howell-21/+70
2022-08-08Move `significant_drop_in_scrutinee` into `nursey`Jason Newcomb-3/+2
2022-08-08Switch channel to betaMark Rousskov-1/+1
2022-08-05Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebankbors-219/+309
Warn about dead tuple struct fields Continuation of #92972. Fixes #92790. The language team has already commented on this in https://github.com/rust-lang/rust/pull/92972#issuecomment-1021511970; I have incorporated their requests here. Specifically, there is now a new allow-by-default `unused_tuple_struct_fields` lint (name bikesheddable), and fields of unit type are ignored (https://github.com/rust-lang/rust/pull/92972#issuecomment-1021815408), so error messages look like this: ``` error: field is never read: `1` --> $DIR/tuple-struct-field.rs:6:21 | LL | struct Wrapper(i32, [u8; LEN], String); | ^^^^^^^^^ | help: change the field to unit type to suppress this warning while preserving the field numbering | LL | struct Wrapper(i32, (), String); | ~~ ``` r? `@joshtriplett`
2022-08-05Auto merge of #99867 - spastorino:refactor-remap-lifetimes, r=nikomatsakisbors-0/+7
Split create_def and lowering of lifetimes for opaque types and bare async fns r? `@cjgillot` This work is kind of half-way, but I think it could be merged anyway. I think we should be able to remove all the vacant arms in `new_named_lifetime_with_res`, if I'm not wrong that requires visiting more nodes. We can do that as a follow up. In follow-up PRs, besides the thing mentioned previously, I'll be trying to remove `LifetimeCaptureContext`, `captured_lifetimes` as a global data structure, global `binders_to_ignore` and all their friends :). Also try to remap in a more general way based on def-ids.
2022-08-05Auto merge of #97085 - rylev:test-issue-33172, r=wesleywiserbors-0/+40
Add a test for issue #33172 Adds a test confirming that #33172 has been fixed. CDB has some surprising results as it looks like the supposedly unmangled static's symbol name is prefixed when it shouldn't be. r? `@wesleywiser` Closes #33172
2022-08-04Auto merge of #95026 - cuviper:bump-linux-min, r=Mark-Simulacrumbors-1482/+1620
Increase the minimum linux-gnu versions This is implementing the MCP from rust-lang/compiler-team#493. It is increasing the minimum requirements of a couple Tier 1 targets, and others at lower tiers, so this should go through FCP sign-offs for both `T-compiler` and `T-release`. The new `linux-gnu` baseline is kernel 3.2 and glibc 2.17. We will also take that kernel as the minimum floor for _all_ `*-linux-*` targets, so it may be broadly assumed in the implementation of the standard library. That does not preclude specific targets from having greater requirements where it makes sense, like a new arch needing something newer, or a platform like `linux-android` choosing a newer baseline.
2022-08-04Link /rustroot/lib stuff for clang -m32 to seeJosh Stone-0/+5
2022-08-04Rollup merge of #100138 - GuillaumeGomez:rm-clean-impls, r=notriddleMatthias Krüger-18/+11
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? `@notriddle`
2022-08-04Rollup merge of #100093 - wcampbell0x2a:unused-parens-for-match-arms, ↵Matthias Krüger-0/+41
r=petrochenkov Enable unused_parens for match arms Fixes: https://github.com/rust-lang/rust/issues/92751 Currently I can't get the `stderr` to work with `./x.py test`, but this should fix the issue. Help would be appreciated!
2022-08-04Rollup merge of #100058 - ↵Matthias Krüger-0/+115
TaKO8Ki:suggest-positional-formatting-argument-instead-of-format-args-capture, r=estebank Suggest a positional formatting argument instead of a captured argument This patch fixes a part of #96999. fixes #98241 fixes #97311 r? `@estebank`
2022-08-04Rollup merge of #99772 - ehuss:reenable-submodule-archive, r=Mark-SimulacrumMatthias Krüger-10/+7
Re-enable submodule archive downloads. This is effectively a revert of #98423 (though it keeps the `--depth 1` flag since that is still helpful). GitHub has indicated that they have been working on the original issue, and my testing shows that the llvm-project archive download now succeeds 100% of the time. This should save about a minute on every job.
2022-08-04Rollup merge of #98796 - compiler-errors:no-semi-if-comma, r=estebankMatthias Krüger-12/+21
Do not exclusively suggest `;` when `,` is also a choice Fixes #96791
2022-08-04Downgrade dist-powerpc-linux binutils to 2.30Josh Stone-20/+5
With binutils 2.32, we were getting errors like this: relocation truncated to fit: R_PPC_PLTREL24 against symbol `__cxa_atexit@@GLIBC_2.1.3' defined in .plt section in /x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sysroot/usr/lib/crt1.o but it builds okay with binutils 2.30.
2022-08-04Completely remove captures flagSantiago Pastorino-0/+7
2022-08-04Auto merge of #100087 - JakobDegen:mir-patch, r=tmiaskobors-172/+0
Avoid invalidating the CFG in `MirPatch` As a part of this change, we adjust `MirPatch` to not needlessly create unnecessary resume blocks. r? `@tmiasko`
2022-08-04Enable unused_parens for match armswcampbell-0/+41
2022-08-04Auto merge of #99953 - cjgillot:in-path-always, r=petrochenkovbors-0/+17
Always create elided lifetimes, even if inferred. `PathSource` gives the context in which a path is encountered. The same `PathSource` is used for the full path and the `QSelf` part. Therefore, we can only rely on `PathSource` to know whether typechecking will be able to infer the lifetimes, not whether we need to insert them at all. Fixes https://github.com/rust-lang/rust/issues/99949
2022-08-04Add min-gdb-versionRyan Levick-0/+1
2022-08-04remove Clean trait implementation for hir::TraitRefGuillaume Gomez-8/+6
2022-08-04remove Clean trait implementation for hir::FnRetTyGuillaume Gomez-10/+5
2022-08-04Update FIXME commentRyan Levick-1/+1
Co-authored-by: Wesley Wiser <wwiser@gmail.com>
2022-08-04Add comment about issue caused with multiple staticsRyan Levick-0/+2
2022-08-04Fix linux testsRyan Levick-7/+7
2022-08-04Turn CDB test back on and all clarifying testRyan Levick-6/+18
2022-08-04Turn off cdb test for now, link to issueRyan Levick-6/+5
2022-08-04Add a test for issue #33172Ryan Levick-0/+26
2022-08-04Auto merge of #100120 - matthiaskrgr:rollup-g6ycykq, r=matthiaskrgrbors-13/+229
Rollup of 6 pull requests Successful merges: - #98771 (Add support for link-flavor rust-lld for iOS, tvOS and watchOS) - #98835 (relate `closure_substs.parent_substs()` to parent fn in NLL) - #99746 (Use `TraitEngine` in more places that don't specifically need `FulfillmentContext::new_in_snapshot`) - #99786 (Recover from C++ style `enum struct`) - #99795 (Delay a bug when failed to normalize trait ref during specialization) - #100029 (Prevent ICE for `doc_alias` on match arm, statement, expression) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup