about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
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-1483/+1621
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-04Auto merge of #100151 - matthiaskrgr:rollup-irqwvj2, r=matthiaskrgrbors-121/+381
Rollup of 7 pull requests Successful merges: - #98796 (Do not exclusively suggest `;` when `,` is also a choice) - #99772 (Re-enable submodule archive downloads.) - #100058 (Suggest a positional formatting argument instead of a captured argument) - #100093 (Enable unused_parens for match arms) - #100095 (More EarlyBinder cleanups) - #100138 (Remove more Clean trait implementations) - #100148 (RustWrapper: update for TypedPointerType in LLVM) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-04Rollup merge of #100148 - durin42:llvm-16-pointertype, r=nikicMatthias Krüger-1/+6
RustWrapper: update for TypedPointerType in LLVM This is a result of https://reviews.llvm.org/D130592. r? `@nikic`
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 #100095 - jackh726:early-binder, r=lcnrMatthias Krüger-68/+94
More EarlyBinder cleanups Each commit is independent r? types
2022-08-04Rollup merge of #100093 - wcampbell0x2a:unused-parens-for-match-arms, ↵Matthias Krüger-3/+58
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-8/+182
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-13/+23
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-04RustWrapper: update for TypedPointerType in LLVMAugie Fackler-1/+6
This is a result of https://reviews.llvm.org/D130592.
2022-08-04Auto merge of #100087 - JakobDegen:mir-patch, r=tmiaskobors-209/+32
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-04add a comment about what we can parse nowTakayuki Maeda-0/+2
2022-08-04Enable unused_parens for match armswcampbell-3/+58
2022-08-04Auto merge of #99953 - cjgillot:in-path-always, r=petrochenkovbors-23/+37
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 #99843 - oli-obk:is_useful_perf, r=compiler-errorsbors-46/+43
Some `is_useful` cleanups #98582 was reverted because it was a perf regression. https://github.com/rust-lang/rust/pull/99806 reintroduces the changes, but this PR picks individual ones that have no regressions.
2022-08-04Auto merge of #100120 - matthiaskrgr:rollup-g6ycykq, r=matthiaskrgrbors-102/+496
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
2022-08-03doc: s390x also requires glibc 2.17Josh Stone-1/+1
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
2022-08-03Clarify the comment about CentOS 7's kernel versionJosh Stone-2/+6
2022-08-03Increase the minimum linux-gnu versionsJosh Stone-1483/+1627
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-04return when captured argument is not a struct fieldTakayuki Maeda-20/+20
2022-08-04Auto merge of #100123 - matthiaskrgr:rollup-aylwvyc, r=matthiaskrgrbors-94/+208
Rollup of 9 pull requests Successful merges: - #98877 (Set llvm configs when building lld) - #100068 (Fix backwards-compatibility check for tests with `+whole-archive`) - #100083 (rustdoc: use a more compact encoding for source-files.js) - #100102 (Fix typo) - #100104 (Remove more Clean trait implementations) - #100105 (Add regression test for #90871) - #100107 (fix trailing whitespace in error message) - #100111 (Provide suggestion on missing `let` in binding statement) - #100119 (FilesTimes support does not build for ESP-IDF) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-03Auto merge of #100065 - ehuss:update-cargo, r=ehussbors-2/+0
Update cargo, rls 14 commits in 85b500ccad8cd0b63995fd94a03ddd4b83f7905b..4fd148c47e733770c537efac5220744945d572ef 2022-07-24 21:10:46 +0000 to 2022-08-03 15:03:52 +0000 - Revert "Drop check for mingw32-make." (rust-lang/cargo#10934) - Add reasons to all ignored tests. (rust-lang/cargo#10929) - Grammar fixup unused patch message (rust-lang/cargo#10933) - Always allow hg to be missing on CI. (rust-lang/cargo#10931) - Fix formats_source test requiring rustfmt. (rust-lang/cargo#10918) - Disable scrape_examples_complex_reverse_dependencies (rust-lang/cargo#10921) - Contrib: Add docs on the rustbot ready command (rust-lang/cargo#10916) - Support for negative --jobs parameter, counting backwards from max CPUs (rust-lang/cargo#10844) - Add requirements to cargo_test. (rust-lang/cargo#9892) - Contrib: Document submodule update process (rust-lang/cargo#10913) - Contrib: Add docs on how to use crater (rust-lang/cargo#10912) - Contrib: Document new-release process (rust-lang/cargo#10914) - Override to resolver=1 in published package (rust-lang/cargo#10911) - fix(add): Update the lock file (rust-lang/cargo#10902) 1 commits in fcf1f94c9ab2acc18cfd4368a4aeb38e77da9649..4d8b0a19986a4daab37287a5b5fe2da0775d1873 2022-07-14 17:19:11 +0200 to 2022-08-02 22:34:34 -0400 - Update cargo (rust-lang/rls#1782)
2022-08-03Rollup merge of #100119 - ivmarkov:master, r=joshtriplettMatthias Krüger-3/+7
FilesTimes support does not build for ESP-IDF Commit https://github.com/rust-lang/rust/commit/1f5d8d49eb6111931091f700d07518cd2b80bc18 broke STD for `target_os = "espidf"`. In future, we might come up with something more sophisticated (as in using the `utime` function which *is* available on the ESP-IDF platform), but for now we are treating ESP-IDF just like `Redox` in that the new API fails at runtime. Most important for us ATM is to restore successful compilation of STD on our platform.
2022-08-03Rollup merge of #100111 - estebank:missing-let, r=compiler-errorsMatthias Krüger-3/+53
Provide suggestion on missing `let` in binding statement Fix #78907. Fallout from the type ascription syntax.
2022-08-03Rollup merge of #100107 - klensy:tr-w, r=compiler-errorsMatthias Krüger-2/+2
fix trailing whitespace in error message
2022-08-03Rollup merge of #100105 - TaKO8Ki:add-regression-test-for-90871, ↵Matthias Krüger-0/+28
r=compiler-errors Add regression test for #90871 closes #90871
2022-08-03Rollup merge of #100104 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPCMatthias Krüger-42/+34
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? ``@notriddle``
2022-08-03Rollup merge of #100102 - b-naber:typo-higher-ranked-sub, r=Dylan-DPCMatthias Krüger-1/+1
Fix typo r? ```@jackh726```
2022-08-03Rollup merge of #100083 - notriddle:notriddle/source-files-js, r=GuillaumeGomezMatthias Krüger-20/+31
rustdoc: use a more compact encoding for source-files.js This reduces the compiler-doc file from 40K to 36K, a 10% reduction in size.
2022-08-03Rollup merge of #100068 - dcsommer:master, r=petrochenkovMatthias Krüger-4/+31
Fix backwards-compatibility check for tests with `+whole-archive` Fixes #100066
2022-08-03Rollup merge of #98877 - topjohnwu:fix-lld, r=jyn514Matthias Krüger-19/+21
Set llvm configs when building lld Several LLVM configs applied when building LLVM should also be applied when building LLD. For example, without the fix, setting both `llvm.thin-lto=true` and `rust.lld=true` when building on Linux will fail, since we need to manually override the compiler and linker to `clang`, but those will not be used when building LLD, causing link errors. r? ```@jyn514```
2022-08-03Rollup merge of #100029 - hdelc:master, r=cjgillotMatthias Krüger-60/+109
Prevent ICE for `doc_alias` on match arm, statement, expression Fixes #99777. This is a pretty minimal fix that should be safe, since rustdoc doesn't generate documentation for match arms, statements, or expressions. I mentioned in the linked issue that the `doc_alias` target checking should probably be improved to avoid future ICEs, but as a new contributor, I'm not confident enough with the HIR types to make a larger change.
2022-08-03Rollup merge of #99795 - ↵Matthias Krüger-4/+64
compiler-errors:delay-specialization-normalize-error, r=spastorino Delay a bug when failed to normalize trait ref during specialization The error messages still kinda suck here but they don't ICE anymore... Fixes #45814 Fixes #43037 r? types
2022-08-03Rollup merge of #99786 - obeis:issue-99625, r=compiler-errorsMatthias Krüger-0/+53
Recover from C++ style `enum struct` Closes #99625
2022-08-03Rollup merge of #99746 - compiler-errors:more-trait-engine, r=jackh726Matthias Krüger-22/+23
Use `TraitEngine` in more places that don't specifically need `FulfillmentContext::new_in_snapshot` Not sure if this change is worthwhile, but couldn't hurt re: chalkification r? types
2022-08-03Rollup merge of #98835 - aliemjay:relate_closure_substs, r=nikomatsakisMatthias Krüger-1/+146
relate `closure_substs.parent_substs()` to parent fn in NLL Fixes #98589 The discrepancy between early- and late-bound lifetimes is because we map early-bound lifetimes into those found in the `closure_substs` while late-bound lifetimes are mapped into liberated free regions: https://github.com/rust-lang/rust/blob/5f98537eb7b5f42c246a52c550813c3cff336069/compiler/rustc_borrowck/src/universal_regions.rs#L255-L261 r? `@rust-lang/types`
2022-08-03Rollup merge of #98771 - Thog:rust-lld-apple-target, r=petrochenkovMatthias Krüger-15/+101
Add support for link-flavor rust-lld for iOS, tvOS and watchOS This adds support for rust-lld for Apple *OS targets. This was tested against targets ``aarch64-apple-ios`` and ``aarch64-apple-ios-sim`` with [a simple test program](https://github.com/Thog/rust-lld-apple-target_test). It currently doesn't work with targets ``armv7-apple-ios`` and ``armv7s-apple-ios`` because of ``symbols.o`` not being generated with the correct CPU subtype. This will require changes in the ``object`` crate to expose an API. As ``ld64.lld`` requires ``-platform_version`` with the minimal version supported and an sdk version, I made ``rustc_target::apple_base`` public to get access to ``*os_deployment_target`` helper functions and also added ``tvos_deployment_target`` as it was missing.
2022-08-03Update cargoEric Huss-0/+0