about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-02-03Merge pull request #19066 from alibektas/slice_pattern_type_inferenceLukas Wirth-31/+183
fix: try to infer array type from slice pattern
2025-02-03Merge pull request #19086 from Veykril/push-ponvylutpnwwLukas Wirth-6/+87
fix: Fix some mir eval/lowerings
2025-02-03Fix some mir eval/loweringsLukas Wirth-6/+87
2025-02-03Merge pull request #19085 from Veykril/push-sknwykqmlottLukas Wirth-6/+25
Do not use make use of `InferenceResult::has_errors` flag for mir building
2025-02-03Do not use make use of `InferenceResult::has_errors` flag for mir buildingLukas Wirth-6/+25
It generaly does not work as expected right now as we fallback type parameters to errors
2025-02-03Revert tests::patterns::infer_patternAli Bektas-37/+35
And apply requested changes
2025-02-03Add a test to monitor whats going onAli Bektas-6/+54
2025-02-03Make higher levels adapt Bodys exprs having ExprOrPatId valuesAli Bektas-33/+32
2025-02-03Make Pat::Range's start and end Option<ExprId>Ali Bektas-26/+48
2025-02-03Rollup merge of #136441 - jieyouxu:cleanup-is-rustdoc, r=compiler-errors许杰友 Jieyou Xu (Joe)-5/+2
[`compiletest`-related cleanups 1/7] Cleanup `is_rustdoc` logic and remove a useless path join in rustdoc-json runtest logic Reference for overall changes: https://github.com/rust-lang/rust/pull/136437 Part **1** of **7** of the *`compiletest`-related cleanups* PR series. ### Summary - Don't match on path when we already have test suite names. - Remove a useless path join. r? bootstrap (or compiler)
2025-02-03Rollup merge of #136438 - RalfJung:offset_from_ub_errors, r=oli-obk许杰友 Jieyou Xu (Joe)-3/+45
miri: improve error when offset_from preconditions are violated Fixes https://github.com/rust-lang/miri/issues/4143
2025-02-03tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`Askar Safin-82/+84
2025-02-03Merge pull request #19062 from darichey/scip-fix-module-namesLukas Wirth-100/+133
Fix scip indexing of module names
2025-02-03Split cache priming into distinct phasesLukas Wirth-34/+95
2025-02-03Use a different hir type for patterns in pattern types than we use in match ↵Oli Scherer-2/+18
patterns
2025-02-03compiletest: use `--stage` number directly instead of deriving from `--stage-id`许杰友 Jieyou Xu (Joe)-30/+28
Notably, this avoids having to do hacky string splitting based on `--stage-id`.
2025-02-03Merge from rustcThe Miri Cronjob Bot-246/+144
2025-02-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-02-03Remove a footgun-y feature / relic of the past from the compiletest DSLLeón Orell Valerian Liehr-8/+0
2025-02-02Rollup merge of #136452 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-545/+1347
Miri subtree update r? `@ghost` Unblocks https://github.com/rust-lang/rust/pull/122408 from the Miri side
2025-02-02Rollup merge of #136445 - bjorn3:diag_ctxt_cleanup, r=oli-obkMatthias Krüger-21/+8
Couple of cleanups to DiagCtxt and EarlyDiagCtxt
2025-02-02Rollup merge of #136339 - veera-sivarajan:ignore-arm-unknown-headers, r=jieyouxuMatthias Krüger-0/+4
CompileTest: Add Directives to Ignore `arm-unknown-*` Targets In #134626, I want to ignore `arm-unknown-*` targets because the LLVM IR for those looks very different compared to other targets: https://rust.godbolt.org/z/ssYMhdv4x. I can use `ignore-arm` but, I think, it would exclude large number of Apple devices. So this PR adds a few directives to ignore `arm-unknown-*` targets specifically.
2025-02-02Merge pull request #4142 from joboet/apple-futexRalf Jung-53/+626
shim Apple's futex primitives
2025-02-02shim Apple's futex primitivesjoboet-53/+626
This is necessary to unblock rust-lang/rust#122408. The documentation for these is available [here](https://developer.apple.com/documentation/os/os_sync_wait_on_address?language=objc). Because the futex wait operations (`os_sync_wait_on_address` et al.) return the number of remaining waiters after returning, this required some changes to the common futex infrastructure, which I've changed to take a callback instead of precalculating the return values.
2025-02-02Merge pull request #4172 from RalfJung/miri_get_backtraceRalf Jung-51/+14
miri_get_backtrace: stop supporting the v0 protocol
2025-02-02Auto merge of #136448 - matthiaskrgr:rollup-pdim5di, r=matthiaskrgrbors-224/+131
Rollup of 7 pull requests Successful merges: - #134272 (Remove rustc_encodable_decodable feature) - #136283 (Update encode_utf16 to mention it is native endian) - #136394 (Clean up MonoItem::instantiation_mode) - #136402 (diagnostics: fix borrowck suggestions for if/while let conditionals) - #136415 (Highlight clarifying information in "expected/found" error) - #136422 (Convert two `rustc_middle::lint` functions to `Span` methods.) - #136434 (rustc_allowed_through_unstable_modules: require deprecation message) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-02Rollup merge of #136422 - nnethercote:convert-lint-functions, r=NoratriebMatthias Krüger-224/+131
Convert two `rustc_middle::lint` functions to `Span` methods. `rustc_middle` is a huge crate and it's always good to move stuff out of it. There are lots of similar methods already on `Span`, so these two functions, `in_external_macro` and `is_from_async_await`, fit right in. The diff is big because `in_external_macro` is used a lot by clippy lints. r? ``@Noratrieb``
2025-02-02files: make write take callback to store result, rather than writing to ↵Ralf Jung-69/+72
'dest' directly
2025-02-02files: make read take callback to store result, rather than writing to ↵Ralf Jung-69/+86
'dest' directly
2025-02-02Auto merge of #136376 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 12 commits in cecde95c119a456c30e57d3e4b31fff5a7d83df4..0e3d73849ab8cbbab3ec5c65cbd555586cb21339 2025-01-24 17:15:24 +0000 to 2025-02-01 20:14:40 +0000 - Revert "Conditionally mark the `test` cfg as a well known cfg (rust-lang/cargo#15007)" (rust-lang/cargo#15132) - Don't suggest `cargo login` when using incompatible credental providers (rust-lang/cargo#15124) - chore: Update clap_complete (rust-lang/cargo#15121) - Move the changelog to the cargo book (rust-lang/cargo#15119) - Conditionally mark the `test` cfg as a well known cfg (rust-lang/cargo#15007) - fix broken links in the Cargo book (rust-lang/cargo#15109) - Fix a typo and touch up documentation (rust-lang/cargo#15108) - Fix shared_std_dependency_rebuild running on Windows (rust-lang/cargo#15111) - Fix warnings on Windows (rust-lang/cargo#15112) - fix(login): Deprecate CLI token (rust-lang/cargo#15057) - Update tests to fix nightly errors (rust-lang/cargo#15110) - Fix comment on Ord for SourceId (rust-lang/cargo#15103)
2025-02-02Use fallback fluent bundle from inner emitter in SilentEmitterbjorn3-12/+2
2025-02-02Slightly simplify DiagCtxt::make_silentbjorn3-1/+1
2025-02-02Some cleanups around EarlyDiagCtxtbjorn3-8/+5
All callers of EarlyDiagCtxt::early_error now emit a fatal error.
2025-02-02fix use of deprecated rand APIRalf Jung-1/+1
2025-02-02Merge from rustcRalf Jung-5/+47
2025-02-02Preparing for merge from rustcRalf Jung-1/+1
2025-02-02miri_get_backtrace: stop supporting the v0 protocolRalf Jung-51/+14
2025-02-02compiletest: remove useless path join in `rustdoc_json` runtest logic许杰友 Jieyou Xu (Joe)-2/+1
2025-02-02miri: improve error when offset_from preconditions are violatedRalf Jung-3/+45
2025-02-02compiletest: cleanup `is_rustdoc` logic许杰友 Jieyou Xu (Joe)-3/+1
2025-02-02Rollup merge of #136279 - Zalathar:ensure-ok, r=oli-obkMatthias Krüger-1/+1
Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60. The main renamings are: - `tcx.ensure()` → `tcx.ensure_ok()` - `tcx.ensure_with_value()` → `tcx.ensure_done()` - Query modifier `ensure_forwards_result_if_red` → `return_result_from_ensure_ok` Hopefully these new names are a better fit for the *actual* function and purpose of these query call modes.
2025-02-02More rustfmt hang investigationsLukas Wirth-14/+18
2025-02-02Convert two `rustc_middle::lint` functions to `Span` methods.Nicholas Nethercote-224/+131
`rustc_middle` is a huge crate and it's always good to move stuff out of it. There are lots of similar methods already on `Span`, so these two functions, `in_external_macro` and `is_from_async_await`, fit right in. The diff is big because `in_external_macro` is used a lot by clippy lints.
2025-02-01Update cargoWeihang Lo-0/+0
2025-02-01Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obkMatthias Krüger-1/+3
Implement MIR lowering for unsafe binders This is the final bit of the unsafe binders puzzle. It implements MIR, CTFE, and codegen for unsafe binders, and enforces that (for now) they are `Copy`. Later on, I'll introduce a new trait that relaxes this requirement to being "is `Copy` or `ManuallyDrop<T>`" which more closely models how we treat union fields. Namely, wrapping unsafe binders is now `Rvalue::WrapUnsafeBinder`, which acts much like an `Rvalue::Aggregate`. Unwrapping unsafe binders are implemented as a MIR projection `ProjectionElem::UnwrapUnsafeBinder`, which acts much like `ProjectionElem::Field`. Tracking: - https://github.com/rust-lang/rust/issues/130516
2025-02-01Test getrandom 0.3Eduardo Sánchez Muñoz-1/+35
2025-02-01Bump rand to 0.9 and getrandom to 0.3Eduardo Sánchez Muñoz-35/+99
2025-02-01tests: port `split-debuginfo` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
Co-authored-by: Oneirical <manchot@videotron.ca>
2025-02-01run-make-support: add some stable `rustc` flag helpers许杰友 Jieyou Xu (Joe)-0/+12
2025-02-01run-make-support: add `shallow_find_directories` helper许杰友 Jieyou Xu (Joe)-5/+22