| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
this directive prevents compiletest from adding any implicit and
automatic --check-cfg arguments
|
|
take ownership of self and return `io::Result<()>` in `FileDescription::close`
Co-authored-by: Ralf Jung <post@ralfj.de>
|
|
macos: use getentropy from libc
This has been added in the mean time.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
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
|
|
Migrate `run-make/doctests-keep-binaries` to new rmake.rs format
r? ```@jieyouxu```
|
|
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
|
|
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
|
|
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
|
|
|
|
|
|
|
|
|
|
./miri run: support -v flag to print what it is doing
|
|
|
|
Preparing for merge from rustc
Unblocks https://github.com/rust-lang/miri/pull/3526.
|
|
|
|
|
|
|
|
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`
|
|
preserve all UB that the native intrinsic would have
|
|
|
|
Automatic Rustup
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
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
|
|
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.
|
|
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.
|
|
interpret: hide some reexports in rustdoc
Cc https://github.com/rust-lang/rust/issues/124608
|
|
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?
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
clippy-subtree-update
|