about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-04-27Bump version to 1.80Mark Rousskov-1/+1
2024-04-27Auto merge of #124405 - RalfJung:miri-core-alloc-tests, r=clubby789bors-3/+0
miri core/alloc tests: do not test a 2nd target check-aux seems to be one of the slowest runners since we started running standard library tests in Miri on it. So maybe it'd be better to reduce test coverage a bit by not doing cross-target testing of core and alloc? I don't recall finding target-specific issues in these libraries ever (and we still have the extra test coverage via our [out-of-tree nightly tests](https://github.com/rust-lang/miri-test-libstd)). This gives us more buffer to deal with the fact that the number of tests we run will only grow over time. Cc `@rust-lang/miri` `@rust-lang/infra`
2024-04-27Auto merge of #124430 - RalfJung:miri, r=RalfJungbors-568/+675
Miri subtree update r? `@ghost`
2024-04-27Rollup merge of #124382 - petrochenkov:itemvisit, r=lcnrMatthias Krüger-24/+24
ast: Generalize item kind visiting And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign). The diff is better viewed with whitespace ignored.
2024-04-27Auto merge of #124416 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 9 commits in c9392675917adc2edab269eea27c222b5359c637..b60a1555155111e962018007a6d0ef85207db463 2024-04-23 19:35:19 +0000 to 2024-04-26 16:37:29 +0000 - fix(toml): Remove underscore field support in 2024 (rust-lang/cargo#13804) - fix: emit 1.77 syntax error only when msrv is incompatible (rust-lang/cargo#13808) - docs(ref): Index differences between virtual / real manifests (rust-lang/cargo#13794) - refactor(toml): extract dependency-to-source-id to function (rust-lang/cargo#13802) - Add where lint was set (rust-lang/cargo#13801) - fix(toml): Don't double-warn when underscore is used in workspace dep (rust-lang/cargo#13800) - fix(toml): Be more forceful with underscore/dash redundancy (rust-lang/cargo#13798) - Fix warning suppression for config.toml vs config compat symlinks (rust-lang/cargo#13793) - Cleanup linting system (rust-lang/cargo#13797) r? ghost
2024-04-27Auto merge of #124424 - jhpratt:rollup-o3ngkjy, r=jhprattbors-1/+0
Rollup of 5 pull requests Successful merges: - #124341 (resolve: Remove two cases of misleading macro call visiting) - #124383 (Port run-make `--print=native-static-libs` to rmake.rs) - #124391 (`rustc_builtin_macros` cleanups) - #124408 (crashes: add more tests) - #124410 (PathBuf: replace transmuting by accessor functions) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-26Rollup merge of #124383 - Urgau:port-print-native-static-libs, r=jieyouxuJacob Pratt-1/+0
Port run-make `--print=native-static-libs` to rmake.rs This PR port the run-make `--print=native-static-libs` test to rmake.rs The dedup was really awful in the `Makefile`, I'm glad to finally have a proper dedup detection for this. Related to https://github.com/rust-lang/rust/issues/121876 r? `@jieyouxu`
2024-04-26Auto merge of #124296 - cuviper:dist-cargo-tests, r=onur-ozkanbors-0/+6
bootstrap: keep all cargo test files in dist rustc-src Cargo tests use some files that we would otherwise exclude, especially the `cargo init` tests that are meant to deal with pre-existing `.git` and `.hg` repos and their ignore files. Keeping these in our dist tarball doesn't take much space, and allows distro builds to run these tests successfully.
2024-04-26env: split up Windows and Unix environment variable handlingRalf Jung-530/+606
2024-04-26Update cargoWeihang Lo-0/+0
2024-04-26add test for concurrent env var accessRalf Jung-0/+8
2024-04-26Port run-make `--print=native-static-libs` to rmake.rsUrgau-1/+0
2024-04-26Auto merge of #3516 - RalfJung:pathbuf, r=RalfJungbors-37/+60
add smoke tests for basic PathBuf interactions I wrote these while debugging [this](https://github.com/rust-lang/miri-test-libstd/actions/runs/8849912635/job/24302962983); it turns out the issue is [more complicated](https://github.com/rust-lang/rust/issues/124409) but these tests still seemed worth keeping.
2024-04-26add smoke tests for basic PathBuf interactionsRalf Jung-37/+60
2024-04-26Auto merge of #122385 - lcnr:analyze-obligations-for-infer, r=compiler-errorsbors-1/+0
`obligations_for_self_ty`: use `ProofTreeVisitor` for nested goals As always, dealing with proof trees continues to be a hacked together mess. After this PR and #124380 the only remaining blocker for core is https://github.com/rust-lang/trait-system-refactor-initiative/issues/90. There is also a `ProofTreeVisitor` issue causing an ICE when compiling `alloc` which I will handle in a separate PR. This issue likely affects coherence diagnostics more generally. The core idea is to extend the proof tree visitor to support visiting nested candidates without using a `probe`. We then simply recurse into nested candidates if they are the only potentially applicable candidate for a given goal and check whether the self type matches the expected one. For that to work, we need to improve `CanonicalState` to also handle unconstrained inference variables created inside of the trait solver. This is done by extending the `var_values` of `CanoncalState` with each fresh inference variables. Furthermore, we also store the state of all inference variables at the end of each probe. When recursing into `InspectCandidates` we then unify the values of all these states. r? `@compiler-errors`
2024-04-26miri core/alloc tests: do not test a 2nd targetRalf Jung-3/+0
2024-04-26Auto merge of #124321 - JoverZhang:run-make-support-tests, r=onur-ozkanbors-0/+49
Add support for run-make-support unit tests to be run with bootstrap The `run-make-support` library needs to run its unit tests to ensure it is correct. Close #124267
2024-04-26Add support for run-make-support unit tests to be run with bootstrap commandJover Zhang-0/+49
Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
2024-04-26Merge from rustcThe Miri Cronjob Bot-81/+178
2024-04-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-04-25ast: Generalize item kind visitingVadim Petrochenkov-24/+24
And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign).
2024-04-25hir typeck: look into nested goalslcnr-1/+0
uses a `ProofTreeVisitor` to look into nested goals when looking at the pending obligations during hir typeck. Used by closure signature inference, coercion, and for async functions.
2024-04-25debuginfo: Stabilize `-Z debug-macros`, `-Z collapse-macro-debuginfo` and ↵Vadim Petrochenkov-9/+17
`#[collapse_debuginfo]` `-Z debug-macros` is "stabilized" by enabling it by default and removing. `-Z collapse-macro-debuginfo` is stabilized as `-C collapse-macro-debuginfo`. It now supports all typical boolean values (`parse_opt_bool`) in addition to just yes/no. Default value of `collapse_debuginfo` was changed from `false` to `external` (i.e. collapsed if external, not collapsed if local). `#[collapse_debuginfo]` attribute without a value is no longer supported to avoid guessing the default.
2024-04-25Auto merge of #124058 - TechVest:master, r=fmeasebors-2/+2
Fix some typos in comments
2024-04-25Auto merge of #124368 - RalfJung:miri, r=RalfJungbors-514/+3261
Miri subtree update r? `@ghost`
2024-04-25Auto merge of #3514 - RalfJung:hyperfine, r=RalfJungbors-6/+6
CI: run benches with hyperfine rather than bash The hyperfine installation is cached so this should not cost a lot of CI time. This is step 1/2 to getting rid of the BASH variable hack.
2024-04-25CI: run benches with hyperfine rather than bashRalf Jung-6/+6
2024-04-25Auto merge of #3501 - RalfJung:tls-many-seeds, r=RalfJungbors-12/+47
add a test for the TLS memory leak This is a regression test for https://github.com/rust-lang/rust/issues/123583.
2024-04-25run many-seeds tests at least a few times on all tier 1 targetsRalf Jung-11/+28
2024-04-25add a test for the TLS memory leakRalf Jung-0/+13
2024-04-25weak memory outdated loads: show where the load was fromRalf Jung-5/+10
2024-04-25Auto merge of #3512 - RalfJung:miri-script-build, r=RalfJungbors-1/+3
make miri-script a workspace root This is needed to make miri-script build on stable (as is done by the `./miri` script) when the parent package uses unstable cargo features.
2024-04-25Auto merge of #3513 - rust-lang:rustup-2024-04-25, r=RalfJungbors-683/+831
Automatic Rustup
2024-04-25Auto merge of #3505 - RalfJung:ci, r=RalfJungbors-1/+1
CI: don't run cron-fail-notify when the job just got canceled Doesn't seem right to prepare a PR in that case
2024-04-25fmtThe Miri Cronjob Bot-80/+149
2024-04-25Merge from rustcThe Miri Cronjob Bot-623/+702
2024-04-25Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-04-25Rollup merge of #124327 - Kobzol:ci-skip-jobs, r=pietroalbiniMatthias Krüger-69/+29
CI: implement job skipping in Python matrix calculation This removes the `step` YAML anchor and the corresponding bash script. Best reviewed commit-by-commit. r? ```@pietroalbini```
2024-04-25Rollup merge of #124257 - JoverZhang:rmake-diff, r=jieyouxuMatthias Krüger-1/+130
Rewrite the `no-input-file.stderr` test in Rust and support diff Rewrite the `no-input-file.stderr` test from #121876. Use the `similar` lib to replace the `diff` command.
2024-04-25Fix some typos in commentsTechVest-5/+5
Signed-off-by: TechVest <techdashen@qq.com>
2024-04-25Rewrite `no-input-file.stderr` test in Rust and support diffJover Zhang-1/+130
2024-04-25Rollup merge of #124335 - ChrisDenton:stabilize-absolute, r=dtolnayMatthias Krüger-2/+0
Stabilize `std::path::absolute` FCP complete in https://github.com/rust-lang/rust/issues/92750#issuecomment-2075046985
2024-04-25Rollup merge of #124333 - Urgau:better-bad-print, r=fmeaseMatthias Krüger-1/+0
Improve diagnostic for unknown `--print` request This PR improves the diagnostic when encountering a unknown `--print` request. It also moves the run-make test to a simple UI test.
2024-04-25Rollup merge of #124322 - whosehang:master, r=NilstriebMatthias Krüger-6/+6
chore: fix some typos in comments
2024-04-24Auto merge of #124330 - fmease:rollup-a98y7jf, r=fmeasebors-6/+6
Rollup of 6 pull requests Successful merges: - #123316 (Test `#[unix_sigpipe = "inherit"]` with both `SIG_DFL` and `SIG_IGN`) - #123794 (More DefineOpaqueTypes::Yes) - #123881 (Bump Fuchsia versions) - #124281 (fix weak memory bug in TLS on Windows) - #124282 (windows fill_utf16_buf: explain the expected return value) - #124308 (Add diagnostic item for `std::iter::Enumerate`) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-24make miri-script a workspace rootRalf Jung-1/+3
2024-04-24Upgrade to `actions/checkout@v4` in `ci.yml`.Predrag Gruevski-3/+3
This is a newer version of the same action. None of the uses here were particularly special (no complex features of v3 were used) so this is a straightforward as-is upgrade.
2024-04-24Stabilize `std::path::absolute`Chris Denton-2/+0
2024-04-24Improve diagnostic for unknown --print requestUrgau-1/+0
2024-04-24unix_sigpipe: don't inline DEFAULT, just use it from rustcRalf Jung-3/+2