1
Fork 0
Commit graph

279221 commits

Author SHA1 Message Date
许杰友 Jieyou Xu (Joe)
5c1e2ec2be tests: cleanup tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs
- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
91bd545475 tests: cleanup tests/ui/panic-runtime/lto-abort.rs
- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
1abb93608f tests: cleanup tests/ui/process/issue-13304.rs
- Remove unnecessary `mut`, remove `#[allow(unused_mut)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
bb36a40557 tests: cleanup tests/ui/panic-runtime/abort.rs
- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
a5d72f45ba tests: cleanup tests/ui/panic-runtime/lto-unwind.rs
- Ignore an unused variable and remove `#![allow(unused_variables)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
0cc392e5fa tests: cleanup tests/ui/process/sigpipe-should-be-ignored.rs
- Unwrap a must-use I/O result and remove `#![allow(unused_must_use)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
7eaa6ec8f7 tests: cleanup tests/ui/process/try-wait.rs
- Remove already stable feature gate and remove
  `#![allow(stable_features)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
c7c1e4d655 tests: cleanup tests/ui/process/issue-14456.rs
- Remove unnecessary `mut` and remove `#![allow(unused_mut)]`.
- Replace `ignore-*` with `needs-process`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
b617aae20e tests: cleanup tests/ui/process/process-panic-after-fork.rs
- Replace `ignore-windows` with `only-unix`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
a4a3acace6 tests: cleanup tests/ui/process/fds-are-cloexec.rs
- Replace `ignore-windows` with `only-unix`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
635a06b595 tests: cleanup tests/ui/process/process-exit.rs
- Remove unnecessary `#![allow(unused_imports)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
02c003b50e tests: cleanup tests/ui/process/issue-20091.rs
- Remove already stable feature gate and remove
  `#![allow(stable_features)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
83226094e7 tests: cleanup tests/ui/process/signal-exit-status.rs
- Replace `ignore-windows` -> `only-unix` since the test exercises Unix
  signals and `ExitStatus::code` behavior that's specific to Unix.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
2632fdc298 tests: cleanup tests/ui/process/core-run-destroy.rs
- Remove redundant `#![allow(stable_features)]`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
bfc553eb53 tests: cleanup tests/ui/command/command-exec.rs
- Remove already stable feature gate and `#![allow(stable_features)]`.
- Replace `ignore-windows` with `only-unix`.
- Replace `ignore-*` with `needs-subprocess`.
2025-01-23 20:51:29 +08:00
许杰友 Jieyou Xu (Joe)
f9addadd71 tests: cleanup tests/ui/command/command-argv0.rs
- Convert `ignore-windows` to `only-unix`.
- Convert `ignore-*` to `needs-subprocess`.
2025-01-23 20:51:28 +08:00
许杰友 Jieyou Xu (Joe)
5f63f2dac9 tests: slightly cleanup tests/ui/command/command-pre-exec.rs
- Remove already stabilized feature gate and
  `#![allow(stable_features)]`.
- Convert `ignore-windows` to `only-unix`.
- Convert `ignore-*` to `needs-subprocess`.
2025-01-23 20:51:28 +08:00
许杰友 Jieyou Xu (Joe)
c7f9c30e33 tests: move tests/ui/issues/issue-39175.rs under suggestions/ and rename 2025-01-23 20:51:28 +08:00
许杰友 Jieyou Xu (Joe)
eee72ba2f1 tests: adjust tests/ui/issues/issue-39175.rs
- Change test to check only.
- Don't ignore `wasm` or `sgx`.
- Gate test to be Unix only because Unix `CommandExt` influences the
  suggestion.
- Run rustfix on the suggestion.
2025-01-23 20:51:28 +08:00
许杰友 Jieyou Xu (Joe)
669f4bce4d rustc-dev-guide: document needs-subprocess directive 2025-01-23 20:51:28 +08:00
许杰友 Jieyou Xu (Joe)
339616b97a compiletest: implement needs-subprocess directive 2025-01-23 20:51:28 +08:00
bors
99768c80a1 Auto merge of #135921 - matthiaskrgr:rollup-5mzn76m, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - #134746 (Don't ICE in coerce when autoderef fails to structurally normalize non-WF type in new solver)
 - #135552 ([AIX] Lint on structs that have a different alignment in AIX's C ABI)
 - #135779 (CI: free disk on linux arm runner)
 - #135790 (Update windows-gnu targets to set `DebuginfoKind::DWARF`)
 - #135879 (fix outdated file path ref in llvm)
 - #135883 (Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`)
 - #135884 (remove implied end of slice)
 - #135887 (improvements on `build_steps::test` implementation)
 - #135898 (rustdoc-json-types: Finalize dyn compatibility renaming)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-01-23 12:39:00 +00:00
bjorn3
49c3aaabaa Add test
Co-Authored-By: Alex Crichton <alex@alexcrichton.com>
2025-01-23 10:55:01 +00:00
bjorn3
4d1c16c09c Make the wasm_c_abi future compat warning a hard error
This is the next step in getting rid of the broken C abi for
wasm32-unknown-unknown.
2025-01-23 10:22:23 +00:00
bjorn3
241f8244e8 Remove outdated sentence 2025-01-23 09:38:58 +00:00
bjorn3
a77776cc1d Remove RunCompiler
It has become nothing other than a wrapper around run_compiler.
2025-01-23 09:38:58 +00:00
bjorn3
974db1a6e4 Remove set_make_codegen_backend and set_file_loader
They can both be set inside the config callback too.
2025-01-23 09:38:58 +00:00
bjorn3
4f9b9a43c1 Remove the need to manually call set_using_internal_features 2025-01-23 09:38:58 +00:00
bors
fc0094f8d4 Auto merge of #135494 - yotamofek:rustdoc-fmt-from_fn, r=fmease
Refactor `fmt::Display` impls in rustdoc

This PR does a couple of things, with the intention of cleaning up and streamlining some of the `fmt::Display` impls in rustdoc:
1. Use the unstable [`fmt::from_fn`](https://github.com/rust-lang/rust/issues/117729) instead of open-coding it.
2. ~~Replace bespoke implementations of `Itertools::format` with the method itself.~~
4. Some more minor cleanups - DRY, remove unnecessary calls to `Symbol::as_str()`, replace some `format!()` calls with lazier options

The changes are mostly cosmetic but some of them might have a slight positive effect on performance.
2025-01-23 09:30:49 +00:00
Matthias Krüger
4b3d7ef888
Rollup merge of #135898 - aDotInTheVoid:dyndoc, r=fmease
rustdoc-json-types: Finalize dyn compatibility renaming

Followup to #131595.

Part of #130852.

Inspired by #135858 (does the same thing but for the rustdoc-types docs).

r? ````@fmease````
2025-01-23 09:49:36 +01:00
Matthias Krüger
76e68ccbb6
Rollup merge of #135887 - onur-ozkan:testing-improvements, r=jieyouxu
improvements on `build_steps::test` implementation

Reviewing commits one-by-one should make it easier to understand.
2025-01-23 09:49:33 +01:00
Matthias Krüger
447824d28f
Rollup merge of #135884 - hkBst:patch-13, r=compiler-errors
remove implied end of slice
2025-01-23 09:49:31 +01:00
Matthias Krüger
d1cfd39362
Rollup merge of #135883 - GrigorenkoPV:btree_set_upper_bound_mut, r=tgross35
Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`

https://github.com/rust-lang/rust/pull/128309#discussion_r1921097773

Tracking issue: https://github.com/rust-lang/rust/issues/107540
2025-01-23 09:49:27 +01:00
Matthias Krüger
e1ee0381a0
Rollup merge of #135879 - onur-ozkan:invalid-file-path, r=jieyouxu
fix outdated file path ref in llvm

This was added years ago and is outdated today.
2025-01-23 09:49:24 +01:00
Matthias Krüger
27155e5ced
Rollup merge of #135790 - wesleywiser:update_windows_gnu_debuginfokind, r=lqd
Update windows-gnu targets to set `DebuginfoKind::DWARF`

These targets have always used DWARF debuginfo and not CodeView/PDB debuginfo like the MSVC Windows targets. However, their target definitions claim to use `DebuginfoKind::PDB` probably to ensure that we do not try to allow the use of split-DWARF debuginfo.

This does not appear to be necessary since the targets set their supported split debug info to `Off`. I've looked at all of the uses of these properties and this patch does not appear to cause any functional changes in compiler behavior. I also added UI tests to attempt to validate there is no change in the behavior of these options on stable compilers.

cc ````@mati865```` since you mentioned this in #135739
cc ````@davidtwco```` for split-dwarf
2025-01-23 09:49:22 +01:00
Matthias Krüger
a6157d3038
Rollup merge of #135779 - marcoieni:free-disk-arm-runner, r=Kobzol
CI: free disk on linux arm runner

try-job: aarch64-gnu
2025-01-23 09:49:21 +01:00
Matthias Krüger
9b40bd70de
Rollup merge of #135552 - amy-kwan:amy-kwan/reprc-struct-diagnostic-power-alignment, r=workingjubilee
[AIX] Lint on structs that have a different alignment in AIX's C ABI

This PR adds a linting diagnostic on AIX for repr(C) structs that are required to follow
the power alignment rule. A repr(C) struct needs to follow the power alignment rule if
the struct:
- Has a floating-point data type (greater than 4-bytes) as its first member, or
- The first member of the struct is an aggregate, whose recursively first member is a
   floating-point data type (greater than 4-bytes).

The power alignment rule for eligible structs is currently unimplemented, so a linting
diagnostic is produced when such a struct is encountered.
2025-01-23 09:49:19 +01:00
Matthias Krüger
73dc08d470
Rollup merge of #134746 - compiler-errors:autoderef-norm-non-wf-coerce-ice, r=lcnr
Don't ICE in coerce when autoderef fails to structurally normalize non-WF type in new solver

r? lcnr
2025-01-23 09:49:18 +01:00
Marijn Schouten
cceb968465
simplify parse_format::Parser::ws by using next_if 2025-01-23 09:44:23 +01:00
Boxy
c58fe21cb9 Handle parenthesised infer args 2025-01-23 06:01:36 +00:00
Boxy
1983c437ce Explain visit_ty_unambig naming 2025-01-23 06:01:36 +00:00
Boxy
23e28d3641 make hir::Ty/ConstArg methods generic where applicable 2025-01-23 06:01:36 +00:00
Boxy
3b5ea05142 inferkind docs 2025-01-23 06:01:36 +00:00
Boxy
744368d83d writeback comment 2025-01-23 06:01:36 +00:00
Boxy
1f5150b11b point to docs for ambig const/ty on intravisit 2025-01-23 06:01:36 +00:00
Boxy
2bdeff2fb8 visit_x_unambig 2025-01-23 06:01:36 +00:00
Boxy
6833c27090 Bless and add tests 2025-01-23 06:01:36 +00:00
Boxy
04d141b1fc The clipper :3c 2025-01-23 06:01:36 +00:00
Boxy
6248294d8b Rustdog :3c 2025-01-23 06:01:36 +00:00
Boxy
7c8c6d2497 Semantic changes from new hir representation
Always lower to `GenericArg::Infer`
Update `PlaceholderCollector`
Update closure lifetime binder infer var visitor
Fallback visitor handle ambig infer args
Ensure type infer args have their type recorded
2025-01-23 06:01:36 +00:00