Commit Graph

285822 Commits

Author SHA1 Message Date
Nicole LeGare
d633d8e074 Format after patches have been applied 2025-03-10 10:00:25 -07:00
Nicole LeGare
7f6ee12526 Apply rustc-0054-Add-std-os-fd-support-for-Trusty.patch 2025-03-10 10:00:24 -07:00
Nicole LeGare
87ca2dbb00 Apply rustc-0023-Add-Trusty-OS-support-to-Rust-std.patch 2025-03-10 10:00:24 -07:00
Philipp Krones
a25cbd50ca Improve needless_pass_by_value suggestion (#13880)
Fixes https://github.com/rust-lang/rust-clippy/issues/13744.

A simple check to check if the type is an `Option` allows to improve the
suggestion.

changelog: Improve `needless_pass_by_value` suggestion
2025-03-10 15:48:43 +00:00
Paul Menage
9e5c942286 Mark some std tests as requiring panic = "unwind"
This allows these test modules to pass on builds/targets without
unwinding support, where `panic = "abort"` - the ignored tests are for
functionality that's not supported on those targets.
2025-03-10 08:31:06 -07:00
onur-ozkan
bf58a3521f stabilize ci_rustc_if_unchanged_logic test for local environments
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-10 18:10:56 +03:00
Matthias Krüger
44ec67fffb Rollup merge of #138306 - jieyouxu:revert-workspace-lints, r=Noratrieb
Revert "Use workspace lints for crates in `compiler/` #138084"

Revert <https://github.com/rust-lang/rust/pull/138084> to buy time to consider options that avoids breaking downstream usages of cargo on distributed `rustc-src` artifacts, where such cargo invocations fail due to inability to inherit `lints` from workspace root manifest's `workspace.lints` (this is only valid for the source rust-lang/rust workspace, but not really the distributed `rustc-src` artifacts). The problem is that the `rustc-src` component doesn't include the root `Cargo.toml` manifest.

This breakage was reported in https://github.com/rust-lang/rust/issues/138304.

This reverts commit 48caf81484, reversing changes made to c6662879b2.

cc `@RalfJung`

r? `@nnethercote` (sorry, I didn't consider this being a thing 💀)
2025-03-10 15:57:22 +01:00
Matthias Krüger
2abeceeb97 Rollup merge of #138305 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-03-10 15:57:19 +01:00
Matthias Krüger
d1a875cd37 Rollup merge of #138281 - saethlin:mergeable-doctests-stacksize, r=GuillaumeGomez
Fix O(tests) stack usage in edition 2024 mergeable doctests

Fixes https://github.com/rust-lang/rust/issues/138248

The important change here is that we are not passing a potentially-large array by value. Between the fact that `TestFn` cannot be `Clone` and `test_main` takes a `Vec<TestDescAndFn>`, the only way to call `test::test_main` without O(tests) stack use is to call `Vec::push` many times.

The normal test harness does not have this problem because it calls `test_main_static` or `test_main_static_abort`, which take `&[TestDescAndFn]`. Changing `test::test_main` to take a slice is not a simple change, so I'm avoiding doing it here.
2025-03-10 15:57:15 +01:00
Matthias Krüger
0d6311931b Rollup merge of #138278 - Bryanskiy:delegation-ice-1, r=petrochenkov
Delegation: fix ICE with invalid `MethodCall` generation

`ExprKind::MethodCall` is now generated instead of `ExprKind::Call` if
- the resolved function has a `&self` argument
- the resolved function is an associated item <- was missed before

Fixes https://github.com/rust-lang/rust/issues/128190
Fixes https://github.com/rust-lang/rust/issues/128119
Fixes https://github.com/rust-lang/rust/issues/127916

r? `@petrochenkov`
2025-03-10 15:57:14 +01:00
Matthias Krüger
5717cc9ef7 Rollup merge of #138268 - Kobzol:fix-summary-nan, r=jieyouxu
Handle empty test suites in GitHub job summary report

Should fix [NaN](https://github.com/rust-lang-ci/rust/actions/runs/13739044506#summary-38426140405)s being printed.

r? `@jieyouxu`
2025-03-10 15:57:12 +01:00
Matthias Krüger
739672cf16 Rollup merge of #138223 - Kobzol:fix-post-merge, r=marcoieni
Fix post-merge workflow

I forgot that `actions/checkout` only checks out a single commit by default. I also forgot to set the environment variable required for the `gh` CLI commands.

I did a few more tests on my fork and hopefully now it should work properly. I also tested it with fake rollup PRs and the comment was sent only to the merged rollup, as it should be.

r? `@marcoieni`
2025-03-10 15:57:10 +01:00
Matthias Krüger
69c7e3664d Rollup merge of #138138 - compiler-errors:inline-asm-tainting, r=oli-obk
Pass `InferCtxt` to `InlineAsmCtxt` to properly taint on error

Pass an `InferCtxt` into the `InlineAsmCtxt` so that we can use the right dcx to taint the infcx properly, so that we don't try to build invalid MIR for inline asm blocks.

Fixes #138130

Shares the first commit with #137502.

r? oli-obk
2025-03-10 15:57:09 +01:00
Matthias Krüger
150e88c549 Rollup merge of #137931 - xizheyin:issue-137421, r=jieyouxu
Add remark for missing `llvm-tools` component re. `rustc_private` linker failures related to not finding LLVM libraries

Fixes #137421
2025-03-10 15:57:08 +01:00
Michael Goulet
bc4f0bb486 Pass InferCtxt to InlineAsmCtxt to properly taint on error
Split up some of the tests bc tainting causes some errors to become
suppressed
2025-03-10 14:28:09 +00:00
clubby789
28bd22c3d9 rustdoc: Gate unstable doc(cfg()) predicates 2025-03-10 14:18:56 +00:00
LemonJ
48a54d026d add missing doc for intrinsic 2025-03-10 22:08:30 +08:00
Bryanskiy
61122d1829 Delegation: fix ICE with invalid MethodCall generation 2025-03-10 17:08:29 +03:00
Folkert de Vries
9213cb80c2 fix ICE in pretty-printing global_asm! 2025-03-10 14:46:01 +01:00
王宇逸
9cab8c25dc Remove stack overflow handler for cygwin 2025-03-10 21:23:32 +08:00
王宇逸
c3c02a517c Use __xpg_strerror_r on cygwin 2025-03-10 21:23:32 +08:00
王宇逸
b9fe8def52 Readd os::cygwin::raw as pub(crate) 2025-03-10 21:23:32 +08:00
王宇逸
c3051b1f5a Unify cygwin & horizon random impl 2025-03-10 21:23:32 +08:00
王宇逸
268e734996 Impl cygwin rand with getrandom 2025-03-10 21:23:31 +08:00
王宇逸
7d80aaaca8 Remove std::os::cygwin::raw 2025-03-10 21:23:31 +08:00
王宇逸
d24c6a29f5 Fix code style 2025-03-10 21:23:31 +08:00
王宇逸
abcbd88175 Revert changes for rtstartup 2025-03-10 21:23:31 +08:00
王宇逸
886fb15c0f Update metadata for cygwin target 2025-03-10 21:23:31 +08:00
王宇逸
1aad114afd Fix building for cygwin 2025-03-10 21:23:31 +08:00
Ookiineko
e3e98c84d3 Fix std::sys::unix::set_linger for Cygwin
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
2025-03-10 21:23:31 +08:00
王宇逸
c9ccec93fa Initial STD support for Cygwin
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
2025-03-10 21:23:31 +08:00
xizheyin
dc576cb67f Add remark for missing llvm-tools component re. rustc_private linker failures related to not finding LLVM libraries
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-10 21:08:25 +08:00
Jakub Beránek
16c08f6113 Ignore job duplicates 2025-03-10 14:07:46 +01:00
Jakub Beránek
dfef1a7b5a Handle backticks in try job patterns 2025-03-10 14:07:46 +01:00
Jakub Beránek
06d86cd60c Modify try-job documentation 2025-03-10 14:07:45 +01:00
Jakub Beránek
3326a9fd27 Allow using glob aliases for custom try jobs 2025-03-10 14:07:45 +01:00
Mara Bos
2ce0205735 Share implementation of expr_u{16,32,size}. 2025-03-10 13:57:23 +01:00
Jakub Beránek
0412507c52 Move job handling to a separate module 2025-03-10 13:44:54 +01:00
morine0122
112f7b01a1 make precise capturing args in rustdoc Json typed 2025-03-10 21:40:09 +09:00
Jakub Beránek
7ca7675b78 Make all keys explicit in citool
Just to avoid surprises, the amount of used keys is not large.
2025-03-10 13:10:53 +01:00
Oli Scherer
240a6d3401 Merge pull request #2258 from fee1-dead-contrib/constck
Rewrite effects checking chapter
2025-03-10 12:35:40 +01:00
Jakub Beránek
dcc2b307dc Add triagebot entry for GCC modifications 2025-03-10 12:26:02 +01:00
Jakub Beránek
2b1b09ce0e Add change tracker entry 2025-03-10 12:26:02 +01:00
Jakub Beránek
bc6302ca6d Implement downloading GCC from CI 2025-03-10 12:26:02 +01:00
Jakub Beránek
3de10b0756 Add download-ci-gcc-stamp file 2025-03-10 12:26:02 +01:00
Jakub Beránek
c68a5ec6c3 Add [gcc] download-ci-gcc option 2025-03-10 12:26:02 +01:00
Jakub Beránek
009aba0aa3 Add gcc bootstrap config section 2025-03-10 12:26:01 +01:00
Jakub Beránek
53237c8656 Refactor GCC compilation 2025-03-10 12:26:01 +01:00
Mara Bos
2647cf17e7 Add #[track_caller] to from_usize. 2025-03-10 12:20:06 +01:00
Mara Bos
7677567e54 Remove unnecessary semicolon. 2025-03-10 12:20:06 +01:00