about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-04speed up Windows runner: don't run GC_STRESS testRalf Jung-2/+2
2024-05-04compiletest: add enable-by-default check-cfgUrgau-3/+22
2024-05-04compiletest: add no-auto-check-cfg directiveUrgau-0/+7
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
2024-05-04Make file descriptors into refcount referencesLuv-Ray-201/+193
take ownership of self and return `io::Result<()>` in `FileDescription::close` Co-authored-by: Ralf Jung <post@ralfj.de>
2024-05-04Auto merge of #3551 - RalfJung:getentropy, r=RalfJungbors-7/+0
macos: use getentropy from libc This has been added in the mean time.
2024-05-04macos: use getentropy from libcRalf Jung-7/+0
2024-05-04tls dtors: treat all unixes uniformlyRalf Jung-6/+6
2024-05-04Rewrite `rustdoc-determinism` test in RustJover Zhang-1/+0
2024-05-04Auto merge of #3548 - RalfJung:many-seeds, r=RalfJungbors-96/+134
make many-seeds a mode of ./miri run rather than a separate command Also parallelize it so we use all cores to try seeds at the same time. Fixes https://github.com/rust-lang/miri/issues/3509 by not alternating between different build modes (with/without dev-dependencies) all the time.
2024-05-04remove a hack that is no longer neededRalf Jung-9/+0
2024-05-04make many-seeds a mode of ./miri run rather than a separate commandRalf Jung-87/+134
2024-05-04Auto merge of #124694 - compiler-errors:rollup-pfou5uu, r=compiler-errorsbors-6/+7
Rollup of 8 pull requests Successful merges: - #124418 (Use a proof tree visitor to refine the `Obligation` for error reporting in new solver) - #124480 (Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`) - #124648 (Trim crate graph) - #124656 (release notes 1.78: add link to interior-mut breaking change) - #124658 (Migrate `run-make/doctests-keep-binaries` to new rmake.rs format) - #124678 (Stabilize `split_at_checked`) - #124681 (zkvm: fix run_tests) - #124687 (Make `Bounds.clauses` private) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-03Rollup merge of #124658 - GuillaumeGomez:migrate-to-run-make, r=jieyouxuMichael Goulet-1/+6
Migrate `run-make/doctests-keep-binaries` to new rmake.rs format r? ```@jieyouxu```
2024-05-03Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxuMichael Goulet-5/+1
Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...` In the stabilization [attempt](https://github.com/rust-lang/rust/pull/120832) of `#[unix_sigpipe = "sig_dfl"]`, a concern was [raised ](https://github.com/rust-lang/rust/pull/120832#issuecomment-2007394609) related to using a language attribute for the feature: Long term, we want `fn lang_start()` to be definable by any crate, not just libstd. Having a special language attribute in that case becomes awkward. So as a first step towards the next stabilization attempt, this PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag `-Zon-broken-pipe=...` to remove that concern, since now the language is not "contaminated" by this feature. Another point was [also raised](https://github.com/rust-lang/rust/pull/120832#issuecomment-1987023484), namely that the ui should not leak **how** it does things, but rather what the **end effect** is. The new flag uses the proposed naming. This is of course something that can be iterated on further before stabilization. Tracking issue: https://github.com/rust-lang/rust/issues/97889
2024-05-04Auto merge of #124684 - Muscraft:update-cargo, r=Muscraftbors-0/+0
Update cargo 18 commits in 6087566b3fa73bfda29702632493e938b12d19e5..05364cb2f61a2c2b091e061c1f42b207dfb5f81f 2024-04-30 20:45:20 +0000 to 2024-05-03 16:48:59 +0000 - chore(deps): update msrv (3 versions) to v1.76 (rust-lang/cargo#13857) - Stabilize `-Zcheck-cfg` as always enabled (rust-lang/cargo#13571) - fix(lints): Prevent inheritance from bring exposed for published packages (rust-lang/cargo#13852) - refactor: remove unnecessary branch for link binary on macOS (rust-lang/cargo#13851) - perf(toml): Avoid inferring when targets are known (rust-lang/cargo#13849) - Update continuous-integration.md: Include CircleCI reference (rust-lang/cargo#13850) - chore(deps): update msrv (1 version) to v1.78 (rust-lang/cargo#13848) - Workaround copying file returning EAGAIN on ZFS on mac OS (rust-lang/cargo#13845) - Clean package perf improvements (rust-lang/cargo#13818) - fix(toml): Validate crates_types/proc-macro for bin like others (rust-lang/cargo#13841) - fix(toml): On 2024 Edition, disallow ignored `default-features` when inheriting (rust-lang/cargo#13839) - chore(ci): Ignore openssl deps (rust-lang/cargo#13840) - fix(lints): Remove ability to specify `-` in lint name (rust-lang/cargo#13837) - fix(resolver): Treat unset MSRV as compatible (rust-lang/cargo#13791) - fix(toml): Don't lose 'public' when inheriting a dep (rust-lang/cargo#13836) - chore(deps): update compatible (rust-lang/cargo#13834) - Error when unstable lints are specified but not enabled (rust-lang/cargo#13805) - fix(lint): Warn not Error on unsupported lint tool (rust-lang/cargo#13833) r? ghost Note: this includes the fix that was beta backported in #124647
2024-05-04Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillotbors-2/+2
Some hir cleanups It seemed odd to not put `AnonConst` in the arena, compared with the other types that we did put into an arena. This way we can also give it a `Span` without growing a lot of other HIR data structures because of the extra field. r? compiler
2024-05-03Update cargoScott Schafer-0/+0
2024-05-03CI: no need to surround if: condition in expansion bracesRalf Jung-3/+3
2024-05-03Migrate `run-make/doctests-keep-binaries` to new `rmake.rs` formatGuillaume Gomez-1/+0
2024-05-03Add `Rustdoc::current_dir` method to run-make-supportGuillaume Gomez-0/+6
2024-05-03Auto merge of #3545 - RalfJung:miri-run, r=RalfJungbors-24/+29
./miri run: support -v flag to print what it is doing
2024-05-03./miri run: support -v flag to print what it is doingRalf Jung-24/+29
2024-05-03Auto merge of #3544 - RalfJung:rustup, r=RalfJungbors-1/+1
Preparing for merge from rustc Unblocks https://github.com/rust-lang/miri/pull/3526.
2024-05-03Preparing for merge from rustcRalf Jung-1/+1
2024-05-03run clippy on a Windows hostRalf Jung-0/+6
2024-05-03Bump peaceiris/actions-gh-pagesLaurențiu Nicola-1/+1
2024-05-03Rollup merge of #124612 - Urgau:run-make-stdin, r=jieyouxuMatthias Krüger-18/+94
Add support for inputing via stdin with run-make-support This PR adds the facility to set a input bytes that will be passed via the standard input. This is useful for testing `rustc -` (and soon `rustdoc -`). In #124611 took the approach of having a dedicated `run` method but it is not very convenient to use and would necessitate many functions, one for success, one for fail, ... Instead this PR takes a different approach and allows setting the input bytes as if it were a parameter and when calling the (now custom) `output` function, we write the input bytes into stdin. I think this gives us maximum flexibility in the implementation and a simple interface for users. To test this new logic I ported `tests/run-make/stdin-non-utf8/` to an `rmake.rs` one. r? `@jieyouxu`
2024-05-03Ensure miri only uses fallback bodies that have manually been vetted to ↵Oli Scherer-0/+38
preserve all UB that the native intrinsic would have
2024-05-03Let miri and const eval execute intrinsics' fallback bodiesOli Scherer-33/+26
2024-05-03Auto merge of #3537 - rust-lang:rustup-2024-05-03, r=RalfJungbors-1250/+2027
Automatic Rustup
2024-05-03update lockfileRalf Jung-1/+0
2024-05-03run-make: port stdin-rustc to Rust-based rmake.rsUrgau-1/+0
2024-05-03update comments and URLRalf Jung-6/+2
2024-05-03Merge from rustcThe Miri Cronjob Bot-1248/+2026
2024-05-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-03Rollup merge of #124594 - jieyouxu:rmake-cc, r=fmeaseMatthias Krüger-2/+3
run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS In #123149 when trying to add a command wrapper for `cc`, I didn't preserve the behavior of tools.mk completely: tools.mk had ```makefile # Extra flags needed to compile a working executable with the standard library ifdef IS_WINDOWS ifdef IS_MSVC #EXTRACFLAGS := ws2_32.lib userenv.lib advapi32.lib bcrypt.lib ntdll.lib synchronization.lib else #EXTRACFLAGS := -lws2_32 -luserenv -lbcrypt -lntdll -lsynchronization EXTRACXXFLAGS := -lstdc++ #EXTRARSCXXFLAGS := -l static:-bundle=stdc++ endif else ifeq ($(UNAME),Darwin) #EXTRACFLAGS := -lresolv EXTRACXXFLAGS := -lc++ #EXTRARSCXXFLAGS := -lc++ else ifeq ($(UNAME),FreeBSD) #EXTRACFLAGS := -lm -lpthread -lgcc_s else ifeq ($(UNAME),SunOS) #EXTRACFLAGS := -lm -lpthread -lposix4 -lsocket -lresolv else ifeq ($(UNAME),OpenBSD) #EXTRACFLAGS := -lm -lpthread -lc++abi #RUSTC := $(RUSTC) -C linker="$(word 1,$(CC:ccache=))" else #EXTRACFLAGS := -lm -lrt -ldl -lpthread EXTRACXXFLAGS := -lstdc++ #EXTRARSCXXFLAGS := -lstdc++ endif endif endif endif endif ``` Note that for {`FreeBSD`, `SunOs`, `OpenBSD`} the `-lstdc++` flag is *not* passed, so `EXTRACXXFLAGS` for those platforms should be an empty `vec![]`. r? ghost (testing this with PR CI)
2024-05-02Update clippy tests for stable exclusive_rangeRoss Smyth-72/+66
2024-05-03Add assigntiif-0/+9
2024-05-02run-make-support: add support for stdin input with rustc/rustdocUrgau-17/+94
2024-05-02Auto merge of #124629 - matthiaskrgr:rollup-gttvzrg, r=matthiaskrgrbors-47/+27
Rollup of 7 pull requests Successful merges: - #124138 (Ignore LLVM ABI in dlltool tests since those targets don't use dlltool) - #124414 (remove extraneous note on `UnableToRunDsymutil` diagnostic) - #124579 (Align: add bytes_usize and bits_usize) - #124622 (Cleanup: Rid the `rmake` test runners of `extern crate run_make_support;`) - #124623 (shallow resolve in orphan check) - #124624 (Use `tcx.types.unit` instead of `Ty::new_unit(tcx)`) - #124627 (interpret: hide some reexports in rustdoc) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-02Fix Run lens showing when lenses are disabledhermannm-1/+1
The documentation for `lens.run.enable` states that it only applies when `lens.enable` is set. However, the config setting whether to show the Run lens did not check `lens.enable`, so the Run lens would show even though lenses were disabled.
2024-05-02Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`Martin Nordholts-5/+1
In the stabilization attempt of `#[unix_sigpipe = "sig_dfl"]`, a concern was raised related to using a language attribute for the feature: Long term, we want `fn lang_start()` to be definable by any crate, not just libstd. Having a special language attribute in that case becomes awkward. So as a first step towards towards the next stabilization attempt, this PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag `-Zon-broken-pipe=...` to remove that concern, since now the language is not "contaminated" by this feature. Another point was also raised, namely that the ui should not leak **how** it does things, but rather what the **end effect** is. The new flag uses the proposed naming. This is of course something that can be iterated on further before stabilization.
2024-05-02Rollup merge of #124627 - RalfJung:interpret-doc-no-inline, r=fmeaseMatthias Krüger-0/+2
interpret: hide some reexports in rustdoc Cc https://github.com/rust-lang/rust/issues/124608
2024-05-02Rollup merge of #124624 - WaffleLapkin:old_unit, r=fmeaseMatthias Krüger-1/+1
Use `tcx.types.unit` instead of `Ty::new_unit(tcx)` I don't think there is any need for the function, given that we can just access the `.types`, similarly to all other primitives?
2024-05-02Rollup merge of #124138 - mati865:ignore-llvm-abi-in-dlltool-tests, r=davidtwcoMatthias Krüger-46/+24
Ignore LLVM ABI in dlltool tests since those targets don't use dlltool Otherwise those two tests fail when running `./x.py test` with this target.
2024-05-02Auto merge of #3535 - RalfJung:host-float, r=RalfJungbors-16/+16
update host-float comments Turns out most of these do not have guaranteed precision anyway so it's fine to use host floats (see https://github.com/rust-lang/rust/pull/121793 and https://github.com/rust-lang/rust/pull/118217). The exception are sqrt and mul_add, tracked at https://github.com/rust-lang/miri/issues/3534 and https://github.com/rust-lang/miri/issues/2995.
2024-05-02update host-float commentsRalf Jung-16/+16
2024-05-02interpret: hide some reexports in rustdocRalf Jung-0/+2
2024-05-02Don't use `Ty::new_unit` in miriWaffle Lapkin-1/+1
2024-05-02Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into ↵Philipp Krones-755/+1664
clippy-subtree-update