about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-23Remove #![feature(let_chains)] from libcoreest31-1/+2
2025-05-22rustdoc.md: reorder list so test suites are not split uplolbinarycat-4/+4
2025-05-23Normalize when checking for uninhabited types for pattern exhaustiveness ↵Chayim Refael Friedman-25/+81
checking
2025-05-22scrape-examples.js: add another nonnull() invokationbinarycat-1/+1
2025-05-22Auto merge of #141396 - matthiaskrgr:rollup-feg050g, r=matthiaskrgrbors-1/+1
Rollup of 7 pull requests Successful merges: - #135562 (Add ignore value suggestion in closure body) - #139635 (Finalize repeat expr inference behaviour with inferred repeat counts) - #139668 (Handle regions equivalent to 'static in non_local_bounds) - #140218 (HIR ty lowering: Clean up & refactor the lowering of type-relative paths) - #140435 (use uX::from instead of _ as uX in non - const contexts) - #141130 (rustc_on_unimplemented cleanups) - #141286 (Querify `coroutine_hidden_types`) Failed merges: - #140247 (Don't build `ParamEnv` and do trait solving in `ItemCtxt`s when lowering IATs) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-22fix typobinarycat-4/+5
2025-05-22rustdoc JSON: Don't apply `#[repr]` privacy heuristicsLeón Orell Valerian Liehr-16/+8
2025-05-22interpret: do not force_allocate all return placesRalf Jung-53/+54
2025-05-22Implement file cloning on WindowsRune Tynan-1/+97
2025-05-22Collect and use `#[doc(test(attr(..)))]` at every levelUrgau-34/+23
2025-05-22Allow `#![doc(test(attr(..)))]` at every levelUrgau-28/+23
2025-05-22Allow `#![doc(test(attr(..)))]` doctests to be again merged togetherUrgau-7/+24
2025-05-22Collect and use `#![doc(test(attr(..)))]` at module level tooUrgau-52/+114
2025-05-22make shared_helpers exe function work for both cygwin and non-cygwin hostsJeremy Drake-1/+10
On Cygwin, it needs to not append .exe, because /proc/self/exe (and therefore std::env::current_exe) does not include the .exe extension, breaking bootstrap's rustc wrapper. On hosts other than Cygwin, it *does* need to append .exe because the file really does have a .exe extension, and non-Cygwin hosts won't be doing the same filename rewriting that Cygwin does when looking for a file X but finding only X.exe in its place.
2025-05-22Auto merge of #141388 - Kobzol:x64-github-runner, r=marcoienibors-1/+1
Move `dist-x86_64-linux` CI job to GitHub temporarily To make it easier to migrate off the `rust-lang-ci/rust` repository. r? `@marcoieni`
2025-05-22~? annotation type is specialTshepang Mbambo-4/+5
It does not do any line matching, so it should be separated from the other types.
2025-05-22rustdoc: improve diagnostics on raw doc fragmentsbinarycat-4/+8
1. rustdoc::bare_urls doesn't output invalid suggestions if source_span_for_markdown_range fails to find a span 2. source_span_for_markdown_range tries harder to return a span by applying an additional diagnostic fixes https://github.com/rust-lang/rust/issues/135851
2025-05-22Allow `#![doc(test(attr(..)))]` at module level tooUrgau-0/+19
2025-05-22Rollup merge of #141382 - marcoieni:distcheck-free-x86, r=KobzolMatthias Krüger-1/+1
ci: convert distcheck to free runner try-job: x86_64-gnu-distcheck
2025-05-22Rollup merge of #141377 - nnethercote:rm-unnecessary-is_empty-checks, ↵Matthias Krüger-6/+1
r=GuillaumeGomez Remove unnecessary `is_empty` checks Part of #137978. r? `@GuillaumeGomez`
2025-05-22Rollup merge of #141355 - marcoieni:citool-errors, r=KobzolMatthias Krüger-4/+10
ci: improve citool job db errors
2025-05-22Rollup merge of #141130 - mejrs:use_self, r=compiler-errorsMatthias Krüger-1/+1
rustc_on_unimplemented cleanups Addresses some of the fixmes from https://github.com/rust-lang/rust/pull/139091 and https://github.com/rust-lang/rust/pull/140307. - switch from `_Self` to `Self` in library - properly validate that arguments in the `on` filter and the format strings are actually valid See https://github.com/rust-lang/rustc-dev-guide/pull/2357 for the relevant documentation.
2025-05-22Move `dist-x86_64-linux` CI job to GitHub temporarilyJakub Beránek-1/+1
To make it easier to migrate off the `rust-lang-ci/rust` repository.
2025-05-22Auto merge of #140527 - GuillaumeGomez:doctest-main-fn, r=notriddlebors-73/+180
Emit a warning if the doctest `main` function will not be run Fixes #140310. I think we could try to go much further like adding a "link" (ie UI annotations) on the `main` function in the doctest. However that will require some more computation, not sure if it's worth it or not. Can still be done in a follow-up if we want it. For now, this PR does two things: 1. Pass the `DiagCtxt` to the doctest parser to emit the warning. 2. Correctly generate the `Span` to where the doctest is starting (I hope the way I did it isn't too bad either...). cc `@fmease` r? `@notriddle`
2025-05-22run core and alloc tests with strict provenanceRalf Jung-1/+2
2025-05-22ci: convert distcheck to free runnerMarcoIeni-1/+1
2025-05-22Remove rust-analyzer.vs from other editorsOli Scherer-24/+0
2025-05-22enable isolated-stdin test on WindowsRalf Jung-1/+1
2025-05-22Implement file read/write on WindowsRune Tynan-81/+460
2025-05-22Merge pull request #19842 from Veykril/push-zunlmrzpnrzkLukas Wirth-1/+1
minor: Support `transmute_unchecked` intrinsic for mir-eval
2025-05-22Support `transmute_unchecked` intrinsic for mir-evalLukas Wirth-1/+1
2025-05-22Merge pull request #19824 from ChayimFriedman2/lints-againLukas Wirth-164/+60
fix: Fix cache problems with lints level
2025-05-22Auto merge of #141379 - matthiaskrgr:rollup-g1cz0ic, r=matthiaskrgrbors-8/+4
Rollup of 6 pull requests Successful merges: - #140431 (dont handle bool transmute) - #140868 (rustdoc: Fix links with inline code in trait impl docs) - #141323 (Add bors environment to CI) - #141337 (bump stdarch) - #141364 (rustdoc-json: Remove false docs and add test for inline attribute) - #141370 (add doc alias `replace_first` for `str::replacen`) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-22Rollup merge of #141364 - aDotInTheVoid:atttrdocss, r=GuillaumeGomezMatthias Krüger-7/+1
rustdoc-json: Remove false docs and add test for inline attribute The docs about how `#[inline]` was represented isn't true. Updates the comment, and adds a test. CC #137645 r? `@GuillaumeGomez`
2025-05-22Rollup merge of #140868 - SpecificProtagonist:rustdoc-trait-impl-code-link, ↵Matthias Krüger-1/+3
r=notriddle rustdoc: Fix links with inline code in trait impl docs Fixes #140857
2025-05-22Remove `is_empty` check in `filter_assoc_items_by_name_and_namespace`.Nicholas Nethercote-6/+1
It was added in #140052, but the subsequent changes in #140252 means it is no longer necessary. (Indeed, `Ident`s cannot be empty any more.)
2025-05-22Auto merge of #137198 - tgross35:cfg-match-rename, r=Amanieubors-3/+3
Rename `cfg_match!` to `cfg_select!` [`@Nemo157` pointed out](https://github.com/rust-lang/rust/issues/115585#issuecomment-2346307605) that `cfg_match!` syntax does not actually align well with match syntax, which is a possible source of confusion. The comment points out that usage is instead more similar to ecosystem `select!` macros. Rename `cfg_match!` to `cfg_select!` to match this. Tracking issue: https://github.com/rust-lang/rust/issues/115585 [1]: https://github.com/rust-lang/rust/issues/115585#issuecomment-2346307605
2025-05-22Rename `kw::Empty` as `sym::empty`.Nicholas Nethercote-4/+4
Because the empty string is not a keyword.
2025-05-21rustdoc js: add rustdoc.ScrapedLoc typebinarycat-1/+5
2025-05-21rustdoc js: add ScrapedLoc typebinarycat-4/+16
2025-05-21scrape-examples.js: give each function a signaturebinarycat-9/+24
2025-05-21rustdoc-json: Remove false docs and add test for inline attributeAlona Enraght-Moony-7/+1
The docs about how `#[inline]` was represented isn't true. Updates the comment, and adds a test. CC https://www.github.com/rust-lang/rust/issues/137645
2025-05-21Auto merge of #141343 - flip1995:clippy-subtree-update, r=Manishearthbors-4612/+6166
Clippy subtree update Out of cycle sync to fix an ICE that was reported twice already: https://github.com/rust-lang/rust-clippy/issues/14828 r? `@Manishearth`
2025-05-21document that the entire test suite passes under freebsdRalf Jung-1/+1
2025-05-21run the full test suite under FreeBSDRalf Jung-2/+2
2025-05-21Merge pull request #19839 from ChayimFriedman2/inlay-hints-attrLukas Wirth-5/+15
fix: Correctly set the span of the proc_macro crate's Group delimiters
2025-05-21Implement FreeBSD syscall cpuset_getaffinity.LorrensP-2158466-2/+117
2025-05-21internal: fix `integrated_benchmarks` to make actual editsDavid Barsky-8/+12
2025-05-21ci: improve citool job db errorsMarcoIeni-4/+10
2025-05-21Correctly set the span of the proc_macro crate's Group delimitersChayim Refael Friedman-5/+15
Previously only the open delimiter's span was set, and this caused... weird problems.