1
Fork 0
Commit graph

284024 commits

Author SHA1 Message Date
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
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
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
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
Mara Bos
ce512c2e4d Fix rust-analyzer for 16-bit fmt width and precision. 2025-03-10 12:20:05 +01:00
Mara Bos
4374d5461e Update tests. 2025-03-10 12:20:05 +01:00
Mara Bos
fb9ce02976 Limit formatting width and precision to 16 bits. 2025-03-10 12:20:05 +01:00
许杰友 Jieyou Xu (Joe)
063ef18fdc 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).

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

This reverts commit 48caf81484, reversing
changes made to c6662879b2.
2025-03-10 18:12:47 +08:00
Laurențiu Nicola
52f39ffe83
Merge pull request #19331 from lnicola/sync-from-rust
minor: Sync from downstream
2025-03-10 09:52:17 +00:00
Laurențiu Nicola
1d983bf794 Format code 2025-03-10 11:37:21 +02:00
Oli Scherer
f87e58f194 Allow int literals for pattern types with int base types 2025-03-10 09:33:33 +00:00
Lukas Wirth
af32b22982
Merge pull request #19328 from Veykril/push-umwykvoskvyp
internal: Run proc-macro server tests as separate CI job
2025-03-10 09:30:22 +00:00
Oli Scherer
9d87d4e4f5 Add tests for pattern type literals 2025-03-10 09:27:13 +00:00
Oli Scherer
916f9552e9 Reject wrapping ranges of pattern types 2025-03-10 09:27:13 +00:00
Oli Scherer
f38819ce17 Add some layout tests for pattern type edge cases 2025-03-10 09:27:13 +00:00
Laurențiu Nicola
c372c55f2b Fix simd layout test 2025-03-10 11:21:03 +02:00
Laurențiu Nicola
87d5bf2b92 Bump rustc crates 2025-03-10 11:20:56 +02:00
Lukas Wirth
ee79f3e9dc Run proc-macro server tests are separate CI job
Touch tt
2025-03-10 10:16:32 +01:00
Lukas Wirth
1c8acd4b7f
Merge pull request #19330 from ChayimFriedman2/normalize-projection
fix: Normalize projections in evaluated const display and layout calculation
2025-03-10 09:15:35 +00:00
Jakub Beránek
1483cb67d9 Handle empty test suites in job summary report 2025-03-10 10:07:03 +01:00
Lukas Wirth
44fad0b1d6
Merge pull request #19079 from ChayimFriedman2/rename-conflict
feat: Warn the user when a rename will change the meaning of the program
2025-03-10 08:59:43 +00:00
Bastian Kersting
e5dc1e3786 Add comments for #[no_sanitize(cfi)] in stdlib 2025-03-10 08:59:24 +00:00
Bastian Kersting
02bb2d4410 Disable CFI for weakly linked syscalls
Currently, when enabling CFI via -Zsanitizer=cfi and executing e.g.
std::sys::random::getrandom, we can observe a CFI violation. This is
the case for all consumers of the std::sys::pal::weak::weak macro,
as it is defining weak functions which don't show up in LLVM IR
metadata. CFI fails for all these functions.

Similar to other such cases in
https://github.com/rust-lang/rust/issues/115199, this change stops
emitting the CFI typecheck for consumers of the macro via the
\#[no_sanitize(cfi)] attribute.
2025-03-10 08:51:04 +00:00
Lukas Wirth
f53d1eba48
Merge pull request #19327 from Veykril/push-qyyvkulltzpz
Fix `path` macro hygiene
2025-03-10 08:45:04 +00:00
Laurențiu Nicola
e1da1b09bf Merge from rust-lang/rust 2025-03-10 10:41:53 +02:00
Laurențiu Nicola
fdee1c1455 Preparing for merge from rust-lang/rust 2025-03-10 10:41:28 +02:00
Matthias Krüger
49ca431c6c
Rollup merge of #138286 - aDotInTheVoid:aDotInTheVoid-patch-3, r=compiler-errors
triagebot.toml: Don't label `test/rustdoc-json` as A-rustdoc-search (…

Followup to #137958. I managed to miss a place, as shown by the questionable labeling of #138285.
2025-03-10 09:32:16 +01:00
Matthias Krüger
86065acbc3
Rollup merge of #138270 - StevenMia:master, r=compiler-errors
chore: Fix some comments

 Fix some comments
2025-03-10 09:32:15 +01:00
Matthias Krüger
1ae083ddd5
Rollup merge of #138238 - compiler-errors:dyn-suggestion-in-struct, r=nnethercote
Fix dyn -> param suggestion in struct ICEs

Makes the logic from #138042 a bit less ICEy and more clean. Also fixes an incorrect suggestion when the struct already has generics. I'll point out the major changes and observations in the code.

Fixes #138229
Fixes #138211

r? nnethercote since you reviewed the original pr, or re-roll if you don't want to review this
2025-03-10 09:32:14 +01:00