about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-02-07Remove reference to enum.RevealMartin Liska-4/+2
2025-02-06Merge pull request #2248 from notriddle/notriddle/typescrpt2León Orell Valerian Liehr-4/+4
Update links to type schemas
2025-02-06Update links to type schemasMichael Howell-4/+4
What used to be in externs.js is now in rustdoc.d.ts.
2025-02-06Merge pull request #2247 from marcoieni/ci-cacheMarco Ieni-4/+20
improve CI cache docs
2025-02-06improve CI cache docsMarcoIeni-4/+20
2025-02-06Merge pull request #2245 from marxin/fix-link-2许杰友 Jieyou Xu (Joe)-1/+1
Replace link with a https based one
2025-02-06Replace link with a https based oneMartin Liska-1/+1
2025-02-04Merge pull request #2243 from Kobzol/pull-cron许杰友 Jieyou Xu (Joe)-2/+2
2025-02-03Make the rustc-pull workflow run less oftenJakub Beránek-2/+2
2025-02-04Merge pull request #2242 from DuskyElf/master许杰友 Jieyou Xu (Joe)-1/+0
2025-02-04Merge pull request #2241 from rust-lang/tshepang-patch-1许杰友 Jieyou Xu (Joe)-2/+4
2025-02-03overlong lineTshepang Mbambo-2/+4
2025-02-04Remove "Port run-make tests from Make to Rust" tracking issue from Recurring ↵Rehmatpal Singh-1/+0
work
2025-02-03Merge pull request #2240 from rust-lang/rustc-pullYuki Okushi-3487/+5317
2025-02-03Merge from rustcThe rustc-dev-guide Cronjob Bot-3486/+5316
2025-02-05add more pattern migration testsdianne-1/+400
Most of these are meant to test possible future improvements, but since they cover cases the existing test suite didn't, I figure including them now may be helpful.
2025-02-05peace of mind: be absolutely sure we don't try to emit a 0-part suggestiondianne-1/+4
2025-02-05try to suggest eliding redundant binding modifiersdianne-49/+82
2025-02-05peace of mind: remove a call to `Option::expect`dianne-2/+3
2025-02-05reword default binding mode notesdianne-91/+85
2025-02-05separate labels for default binding mode spans into their own notesdianne-183/+291
2025-02-04don't include trailing open parens in labels for reference patternsdianne-2/+2
2025-02-04experimentally label the spans for default binding modesdianne-223/+264
2025-02-03highlight the whole problem subpattern when pointing out the default binding ↵dianne-60/+189
mode
2025-02-03add tests for label formattingdianne-1/+47
2025-02-03use more specific wording for subpatterns from macro expansionsdianne-2/+5
2025-02-03reword pattern migration diagnostic to make sense in all editionsdianne-196/+224
This aligns the main error message a bit more with the phrasing in the Edition Guide and provides a bit more information on the labels to (hopefully!) aid in understanding.
2025-02-03pattern migration: move labels out of the suggestion structdianne-19/+15
2025-02-03Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-02-02Auto merge of #136454 - matthiaskrgr:rollup-ewejzmp, r=matthiaskrgrbors-734/+1935
Rollup of 8 pull requests Successful merges: - #136145 (Test validity of pattern types) - #136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets) - #136403 (Fix malformed error annotations in a UI test) - #136414 (Shorten error message for callable with wrong return type) - #136425 (Move `rustc_middle::infer::unify_key`) - #136426 (Explain why we retroactively change a static initializer to have a different type) - #136445 (Couple of cleanups to DiagCtxt and EarlyDiagCtxt) - #136452 (Miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-02Rollup merge of #136452 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-568/+1477
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-111/+63
Couple of cleanups to DiagCtxt and EarlyDiagCtxt
2025-02-02Rollup merge of #136426 - oli-obk:push-nkpuulwurykn, r=compiler-errorsMatthias Krüger-2/+8
Explain why we retroactively change a static initializer to have a different type I keep getting confused about it and in turn confused `@GuillaumeGomez` while trying to explain it badly
2025-02-02Rollup merge of #136425 - nnethercote:mv-rustc_middle-infer, r=lcnrMatthias Krüger-18/+14
Move `rustc_middle::infer::unify_key` `rustc_infer` is a much better place for it. r? `@lcnr`
2025-02-02Rollup merge of #136414 - estebank:expected-return-type, r=oli-obkMatthias Krüger-31/+29
Shorten error message for callable with wrong return type ``` error: expected `{closure@...}` to return `Ret`, but it returns `Other` ``` instead of ``` error: expected `{closure@...}` to be a closure that returns `Ret`, but it returns `Other` ```
2025-02-02Rollup merge of #136403 - fmease:fix-a-ui-test, r=oli-obkMatthias Krüger-2/+2
Fix malformed error annotations in a UI test The compiletest DSL still features a historical remnant from the time when its directives were merely prefixed with `//` instead of `//`@`` when unknown directive names weren't rejected since they could just as well be part of prose: As an "optimization", it stops looking for directives once it stumbles upon a line which starts with either `fn` or `mod`. This allowed a malformed error annotation of the form `//`@[…]~^^^`` to go undetected & unexercised (as it's placed below `fn main() {`). Obviously a character other than ``@`` would've mangled the error annotation, too (but it might've caught the reviewer's eye). I specifically found this file because I ran `rg '^(fn|mod)[\s\S]*?//`@'` tests/ui --multiline -trust` to check how footgun-y that "special feature" of compiletest is.
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-02Rollup merge of #136145 - oli-obk:push-wxvpklmkppqz, r=RalfJungMatthias Krüger-2/+338
Test validity of pattern types r? `@RalfJung` pulled out of #136006 so we don't have to rely on libcore types excercising this code path There's nothing to fix. `rustc_layout_scalar_valid_range_start` structs just failed their validation on their value instead of their fields' value, causing a diff where moving to pattern types adds an additional `.0` field access to the validation error
2025-02-02update lockfileRalf Jung-23/+130
2025-02-02Merge pull request #4142 from joboet/apple-futexRalf Jung-53/+626
shim Apple's futex primitives
2025-02-02Maintain a list of types permitted per patternOli Scherer-2/+211
2025-02-02Check the base type of pattern types for validity firstOli Scherer-6/+5
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-02Test validity of pattern typesOli Scherer-0/+128
2025-02-02Merge pull request #4172 from RalfJung/miri_get_backtraceRalf Jung-51/+14
miri_get_backtrace: stop supporting the v0 protocol
2025-02-02Merge pull request #4174 from RalfJung/read-write-callbackRalf Jung-138/+158
files: make read/write take callback to store result
2025-02-02Auto merge of #136448 - matthiaskrgr:rollup-pdim5di, r=matthiaskrgrbors-1180/+775
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 #136434 - ↵Matthias Krüger-125/+107
RalfJung:rustc_allowed_through_unstable_modules-deprecation-required, r=compiler-errors rustc_allowed_through_unstable_modules: require deprecation message This changes the `#[rustc_allowed_through_unstable_modules]` attribute so that a deprecation message (ideally directing people towards the stable path) is required.
2025-02-02Rollup merge of #136422 - nnethercote:convert-lint-functions, r=NoratriebMatthias Krüger-278/+179
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-02Rollup merge of #136415 - estebank:highlight-clarification, r=compiler-errorsMatthias Krüger-27/+160
Highlight clarifying information in "expected/found" error When the expected and found types have the same textual representation, we add clarifying in parentheses. We now visually highlight it in the output. Detect a corner case where the clarifying information would be the same for both types and skip it, as it doesn't add anything useful. ![Screenshot of the rustc highlighted output on the terminal](https://github.com/user-attachments/assets/aa4b9433-5332-4941-b2c2-1a43e5cadff7)