Commit graph

298901 commits

Author SHA1 Message Date
dswij
a76c2b34e7
Fix unnecessary_debug_formatting FP inside Debug impl (#14955)
Closes rust-lang/rust-clippy#14952

The lint suggests using `.display()` on `Path`, which is actually
correct.

changelog: [`unnecessary_debug_formatting`] fix FP inside `Debug` impl
2025-06-04 15:54:56 +00:00
Matthew Jasper
55f59fb0e3 Fix parsing of frontmatters with inner hyphens 2025-06-04 15:51:36 +00:00
donkomura
c9a97e1f82
Do not lint macro generated codes
`disallowed_names` was used to lint code generated by macros.
This behavior can confuse programmers who did not write the macro
themselves. This change suppresses lints for code originating from
macros, including external ones.

changelog: [`disallowed_names`] do not lint macro generated codes
2025-06-05 00:44:39 +09:00
Oli Scherer
64172481da Report the actual item that evaluation failed for 2025-06-04 15:13:25 +00:00
Ryan Mehri
53ef69e3eb add qualifiers to attribute completions 2025-06-04 11:02:48 -04:00
Jake Goulding
d35ad94849 Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
Jake Goulding
8b59e34a80 Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
Jake Goulding
9a50cb4a0c Introduce the mismatched_lifetime_syntaxes lint 2025-06-04 10:40:04 -04:00
Ralf Jung
7742d0e230 coretests: move float tests from num to floats module and use a more flexible macro to generate them 2025-06-04 16:32:17 +02:00
Kivooeo
06ab34e516 cleaned up some tests 2025-06-04 19:32:06 +05:00
Matthias Krüger
a06160d9a8
Rollup merge of #142007 - nnethercote:visitor-comments, r=chenyukang
Improve some `Visitor` comments.

For AST/HIR/THIR visitors, explain the use of deconstruction.

r? ``@BoxyUwU``
2025-06-04 16:24:12 +02:00
Matthias Krüger
820971581a
Rollup merge of #141959 - ferrocene:lw/2015-edition-directives2, r=compiler-errors
Add more missing 2015 edition directives

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-04 16:24:11 +02:00
Matthias Krüger
5be375d0f8
Rollup merge of #141939 - Qelxiros:139911-exact-div-tests, r=workingjubilee
exact_div: add tests

tracking issue: rust-lang/rust#139911

I neglected to add tests in my last PR (rust-lang/rust#141237), so I've added them here.

r? ``@workingjubilee`` (Feel free to reroll, I just picked you since you reviewed the last one.)
2025-06-04 16:24:10 +02:00
Matthias Krüger
98421b765f
Rollup merge of #141924 - rs-sac:extr-doc, r=jhpratt
Lightly tweak docs for BTree{Map,Set}::extract_if

- Move explanations into comments to match style
- Explain the second examples
- Make variable names match the data structure

Related rust-lang/rust#70530
2025-06-04 16:24:09 +02:00
Matthias Krüger
005490cbbc
Rollup merge of #141893 - usamoi:lossless, r=tgross35
remove `f16: From<u16>`

it's not a lossless conversion

r? ``@tgross35``
2025-06-04 16:24:08 +02:00
Matthias Krüger
9b8bf53580 Rollup merge of #141570 - chenyukang:yukang-fix-eq_unspanned, r=workingjubilee
Fix incorrect eq_unspanned in TokenStream

Fixes rust-lang/rust#141522

r? ``@workingjubilee``

should we remove this function?
since it's used in several places, i'd prefer to keep it.
2025-06-04 16:24:07 +02:00
Matthias Krüger
0736a03a78
Rollup merge of #141570 - chenyukang:yukang-fix-eq_unspanned, r=workingjubilee
Fix incorrect eq_unspanned in TokenStream

Fixes rust-lang/rust#141522

r? ``@workingjubilee``

should we remove this function?
since it's used in several places, i'd prefer to keep it.
2025-06-04 16:24:07 +02:00
Matthias Krüger
c1e8fe760b
Rollup merge of #141271 - nnethercote:attr-streamline, r=jdonszelmann
Streamline some attr parsing APIs

r? ``@jdonszelmann``
2025-06-04 16:24:06 +02:00
bors
df8102fe5f Auto merge of #142002 - onur-ozkan:follow-ups2, r=jieyouxu
redesign stage 0 std follow-ups part2

Fixes three bugs:

1. `x check` fails when run on rustdoc without `download-rustc` enabled. (1st commit)
2. `x check` fails when run on the compiler with `download-rustc` enabled. (2nd commit)
3. `x test library` fails with `download-rustc` enabled. (3rd commit)

Fixes rust-lang/rust#142018 (case 1)
Fixes https://github.com/rust-lang/rust/issues/141983 (case 3)
2025-06-04 14:15:44 +00:00
smpdt
9091a94ff0 bootstrap: Fix file permissions when dereferencing symlinks 2025-06-04 10:00:20 -04:00
Mara Bos
da2e33b406 Don't refer to 'this tail expression' in expansion.
The user has no clue what tail expression the compiler is talking
about: it is an implementation detail of the macro that it uses a block
with tail expression.
2025-06-04 15:42:58 +02:00
许杰友 Jieyou Xu (Joe)
96eed17c53
Merge pull request #2456 from jieyouxu/pr-message-nit 2025-06-04 21:26:33 +08:00
Jieyou Xu
94901629b4
triagebot: avoid unnecessary line break in PR welcome message 2025-06-04 21:25:15 +08:00
Mara Bos
fcfa9b0ba0 Don't refer to 'local binding' in extern macro.
The user has no clue what 'local binding' the compiler is talking about,
if they don't know the expansion of the macro.
2025-06-04 15:07:47 +02:00
Kivooeo
ff005610d5 cleaned up some tests 2025-06-04 17:48:50 +05:00
Ryan Mehri
c5355a19bd match on segments of path and some small cleanup 2025-06-04 08:30:27 -04:00
onur-ozkan
c843bec230 update skip_std_check_if_no_download_rustc doc-comments
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-04 15:29:00 +03:00
onur-ozkan
0ca1be9273 document skip-std-check-if-no-download-rustc in rustc-dev-guide
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-04 15:23:58 +03:00
Andrew Zhogin
d5a9a00518 Fix for async drop inside async gen fn 2025-06-04 18:45:34 +07:00
Amanda Stjerna
f455c4fc39 Use an enum for SCC representatives, plus other code review
Co-authored-by: lcnr <rust@lcnr.de>
2025-06-04 13:26:08 +02:00
Lukas Wirth
746a6fc3d1
Merge pull request #19905 from Veykril/push-unwwyqpwqxky
refactor: Cleanup descension stuff
2025-06-04 10:42:38 +00:00
Lukas Wirth
13d71f7e05 refactor: Cleanup descension stuff 2025-06-04 12:32:02 +02:00
Derukugi
d88c6dbb30 Add link to correct documentation in htmldocck.py
Fix typo in src/etc/htmldocck.py

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>

Change documentation link to the correct section in src/etc/htmldocck.py

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>

Remove all top-level docs from htmldocck.py
2025-06-04 20:05:13 +10:00
Lukas Wirth
fd269a0df6
Merge pull request #19922 from Veykril/push-oxyomxrsplpx
feat: Add `dyn` keyword inlay hints
2025-06-04 09:51:22 +00:00
Lukas Wirth
efa88e5250 feat: Add dyn keyword inlay hints 2025-06-04 11:40:05 +02:00
Lukas Wirth
25cef03fdf Give path segment type anchors their own grammar rule 2025-06-04 11:40:05 +02:00
Lukas Wirth
c1e3da315a Remove unnecessary parameters in inlay-hint computation 2025-06-04 11:31:45 +02:00
Oli Scherer
d55a99a9ed
Merge pull request #4372 from nia-e/multiple-native-libs
native-lib: allow multiple libraries and/or dirs
2025-06-04 09:19:54 +00:00
许杰友 Jieyou Xu (Joe)
e80275489d
Merge pull request #2454 from rust-lang/tshepang-expand 2025-06-04 16:46:11 +08:00
许杰友 Jieyou Xu (Joe)
5dddd0140d
Merge pull request #2455 from Rageking8/fix-incorrect-use-of-recommend-over-recommended 2025-06-04 16:44:12 +08:00
Rageking8
bd9c30762a
Fix incorrect use of "recommend" over "recommended" 2025-06-04 16:30:02 +08:00
Samuel Tardieu
ed143afc7f
fix suggestion-causes-error of print_literal and write_literal (#14961)
Fixes: rust-lang/rust-clippy#14930

changelog: Fix [`print_literal`] and [`write_literal`]'s
suggestion-causes-error when using format argument like `{0:2$.1$}`
2025-06-04 08:27:33 +00:00
bors
61413aea93 Auto merge of #142003 - matthiaskrgr:rollup-ad8l9ns, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#136687 (Improve the documentation of `Display` and `FromStr`, and their interactions)
 - rust-lang/rust#137306 (Remove `i128` and `u128` from `improper_ctypes_definitions`)
 - rust-lang/rust#138699 (build dist for x86_64-pc-solaris and sparcv9-sun-solaris)
 - rust-lang/rust#141250 (add s390x z17 target features)
 - rust-lang/rust#141467 (make `OsString::new` and `PathBuf::new` unstably const)
 - rust-lang/rust#141871 (index: add method for checking range on DenseBitSet)
 - rust-lang/rust#141888 (Use non-2015 edition paths in tests that do not test for their resolution)
 - rust-lang/rust#142000 (bootstrap: don't symlink source dir into stage0 sysroot)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-04 08:17:06 +00:00
Rageking8
be70a4b16e
Fix incorrect use of "recommend" over "recommended" 2025-06-04 16:16:29 +08:00
Samuel Tardieu
1ae37ada08
Do not recurse indefinitely while checking for inner mutability
`clippy_utils::ty::InteriorMut::interior_mut_ty_chain` must stop
recursing forever when types are chained indefinitely due to the use of
associated types in generics. A false negative is acceptable, and
documented here.

Should this situation be later identified specifically, a conversion of
`Option` to `Result` would allow separating the infinitely recursive
case from a negative one.
2025-06-04 10:11:56 +02:00
relaxcn
6ed003d893 fix suggestion-causes-error of print_literal and write_literal 2025-06-04 07:27:23 +00:00
Laurențiu Nicola
e07199ad46
Merge pull request #19913 from rust-lang/dependabot/npm_and_yarn/editors/code/tar-fs-2.1.3
chore(deps): bump tar-fs from 2.1.2 to 2.1.3 in /editors/code
2025-06-04 07:18:49 +00:00
Lukas Wirth
2163766201
Merge pull request #19914 from davidbarsky/davidbarsky/add-some-additional-incrementalism-tests
hir-ty: add incremental tests checking for `infer` invalidation
2025-06-04 07:15:18 +00:00
Laurențiu Nicola
f97317a3dc
Merge pull request #19921 from ShoyuVanilla/ci-retry
ci: Pin `cargo-workspaces` version to `0.3.6`, again
2025-06-04 07:14:11 +00:00
Shoyu Vanilla
4e85d77393 ci: Pin cargo-workspaces version to 0.3.6, again 2025-06-04 16:03:00 +09:00