about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-25Tweak bound region pre-interning.Nicholas Nethercote-8/+8
- Cover `DebruijnIndex(2)`, for slightly better coverage. - Rename some things, to account for other region things that were renamed.
2025-07-25Fix gen panics doc template for debug_assertA4-Tacks-6/+62
And add assert_eq, assert_ne, assert_matches support Input: ```rust pub fn $0foo(x: bool) { debug_assert!(x); } ``` Old: ```rust /// . /// /// # Panics /// /// Panics if . pub fn foo(x: bool) { debug_assert!(x); } ``` This PR fixes: ```rust /// . pub fn foo(x: bool) { debug_assert!(x); } ```
2025-07-25Remove eval_always from check_private_in_public.Camille GILLOT-1/+0
2025-07-25Check static is sized when building MIR.Camille GILLOT-68/+62
2025-07-25Do not assert layout in KnownPanicsLint.Camille GILLOT-31/+146
2025-07-25Add crash tests.Camille GILLOT-0/+19
2025-07-25tests: aarch64-outline-atomics: Remove hardcoded targetJens Reidel-2/+0
Since this test is limited to aarch64 and linux hosts, the --target flag is entirely unnecessary and only breaks this on musl hosts. Let the compiler use the default target instead. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-25Enable outline-atomics for aarch64-unknown-linux-muslJens Reidel-1/+1
They were disabled in bd287fa5084f2e153c1044632f9f3d190f090d69 and haven't been causing problems for a while anymore. The entire testsuite still passes on aarch64-unknown-linux-musl with this feature enabled. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-25loongarch: Use unified data types for SIMD intrinsicsWANG Rui-4522/+4780
2025-07-24Fix `if_then_some_else_none` FP when require type coercion (#15267)Alejandra González-3/+251
Closes rust-lang/rust-clippy#15257 changelog: [`if_then_some_else_none`] fix FP when require type coercion
2025-07-25Detect prefixed attributes as duplicatednewt-103/+89
2025-07-25Allow setting `release-blog-post` label with rustbotBoxy-0/+1
2025-07-24fix ip_constant when call wrapped in extra parensDan Johnson-24/+109
2025-07-24library/windows_targets: Fix macro expansion error in 'link' macroIvan Tadeu Ferreira Antunes Filho-13/+3
A recent change altered the definition of the link! macro when the windows_raw_dylib feature is enabled, changing its syntax from pub macro {..} to pub macro($tt:tt) {..} in #143592 This change introduced a build failure with the error: "macros that expand to items must be delimited with braces or followed by a semicolon". We add a semicolon to the line causing the issue as we also modify the non windows_raw_dylib link to make use of the link_dylib macro
2025-07-24Rename tests/ui/SUMMARY.md and update rustc dev guide on error-patternOneirical-4/+4
2025-07-24Rehome tests/ui/issues/ tests [1/?]Oneirical-49/+107
2025-07-24Call `is_parsed_attribute` rather than keeping track of a list of parsed ↵Jonathan Brouwer-61/+6
attributes manually
2025-07-24Auto merge of #144389 - scottmcm:no-more-mir-cast-assume, r=davidtwcobors-151/+38
MIR-build: No longer emit assumes in enum-as casting This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads, and thus no longer seems to be useful -- notably there's no codegen test failures from removing it. (Because it's using data from the same source as the backend annotations, it doesn't do anything to mitigate things like rust-lang/rust#144388 where the range in the layout is more permissive than the actual possible discriminants. A variant of this that actually checked the discriminants more specifically might be useful, so could potentially be added in future, but I don't think the *current* checks are actually providing value.) r? mir Randomly turns out that this Fixes https://github.com/rust-lang/rust/issues/121097
2025-07-24Use `x86_no_sse` configuration in more placesTrevor Gross-17/+16
Emit `x86_no_sse` in the compiler-builtins (and builtins-test) build script, and use it to simplify `all(target_arch = "x86", not(target_fefature = "sse))` configuration.
2025-07-24fix markdownlolbinarycat-1/+1
Co-authored-by: Philipp Krones <hello@philkrones.com>
2025-07-24Enable skipped `f32` and `f64` multiplication testsTrevor Gross-4/+0
The fix has since made it to nightly, so the skips here can be removed.
2025-07-24Enable tests that were skipped on aarch64Trevor Gross-9/+0
The LLVM issue was resolved a while ago, these should no longer be a problem.
2025-07-24Replace unwrap_or with explicit matchBen Schulz-3/+6
2025-07-24Add test case for single boundBen Schulz-1/+35
2025-07-24Fix unused_parens false positiveBen Schulz-1/+15
2025-07-24Use LocalKey<Cell> methods moreCameron Steffen-9/+9
2025-07-24fix up issues with internal compiler docs revealed by stricter lintbinarycat-1/+5
2025-07-24expand the issue template for new lintsbinarycat-0/+21
When I first tried contributing to clippy, I encountered the problem that a lot of lint suggestions overlapped with existing lints, so I would spend a bunch of time implementing something only to figure out it wasn't actually needed. The "comparison with existing lints" field should hopefully reduce this somewhat, while not incresing the burden of requesting a new lint too much due to not being mandatory.
2025-07-24MIR-build: No longer emit assumes in enum-as castingScott McMurray-151/+38
This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads.
2025-07-24Auto merge of #144398 - fmease:rollup-z6vq7mi, r=fmeasebors-1578/+1839
Rollup of 15 pull requests Successful merges: - rust-lang/rust#143374 (Unquerify extern_mod_stmt_cnum.) - rust-lang/rust#143838 (std: net: uefi: Add support to query connection data) - rust-lang/rust#144014 (don't link to the nightly version of the Edition Guide in stable lints) - rust-lang/rust#144094 (Ensure we codegen the main fn) - rust-lang/rust#144218 (Use serde for target spec json deserialize) - rust-lang/rust#144221 (generate elf symbol version in raw-dylib) - rust-lang/rust#144240 (Add more test case to check if the false note related to sealed trait suppressed) - rust-lang/rust#144247 (coretests/num: use ldexp instead of hard-coding a power of 2) - rust-lang/rust#144276 (Use less HIR in check_private_in_public.) - rust-lang/rust#144278 (add Rev::into_inner) - rust-lang/rust#144317 (pass build.npm from bootstrap to tidy and use it for npm install) - rust-lang/rust#144320 (rustdoc: avoid allocating a temp String for aliases in search index) - rust-lang/rust#144334 (rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion) - rust-lang/rust#144335 (Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding) - rust-lang/rust#144358 (Stop using the old `validate_attr` logic for stability attributes) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-24Make tier 3 musl targets link dynamically by defaultJens Reidel-15/+0
Since we don't build std for these and don't provide any support for them, these can trivially be changed to link dynamically by default. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-24move bad-intra-doc test into intra-doc dirbinarycat-0/+0
2025-07-24rustdoc::broken_intra_doc_links: only be lenient with shortcut linksbinarycat-7/+32
collapsed links and reference links have a pretty particular syntax, it seems unlikely they would show up on accident. Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
2025-07-24rustdoc: update tests to match new lint behaviorbinarycat-25/+3
2025-07-24rustdoc::broken_intra_doc_links: no backticks = use old behaviorbinarycat-1/+3
this is in an effort to reduce the amount of code churn caused by this lint triggering on text that was never meant to be a link. a more principled hierustic for ignoring lints is not possible without extensive changes, due to the lint emitting code being so far away from the link collecting code, and the fact that only the link collecting code has access to details about how the link appears in the unnormalized markdown.
2025-07-24adjust more unit tests to reflect more aggressive intra-doc lintingbinarycat-21/+230
2025-07-24get rid of some false negatives in rustdoc::broken_intra_doc_linksbinarycat-3/+54
rustdoc will not try to do intra-doc linking if the "path" of a link looks too much like a "real url". however, only inline links ([text](url)) can actually contain a url, other types of links (reference links, shortcut links) contain a *reference* which is later resolved to an actual url. the "path" in this case cannot be a url, and therefore it should not be skipped due to looking like a url. Co-authored-by: Michael Howell <michael@notriddle.com>
2025-07-24Inline some methods in rustc_span hygienexizheyin-0/+17
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-24Merge pull request #2517 from Kobzol/josh-syncJakub Beránek-13/+10
Update josh sync documentation
2025-07-24Merge pull request #1885 from 197g/maskmove-is-non-temporalSayantan Chakraborty-1/+10
Add non-temporal note for maskmoveu_si128
2025-07-24asm: Stabilize loongarch32WANG Rui-46/+158
2025-07-24Rollup merge of #144358 - JonathanBrouwer:fix-stability-malformed, r=oli-obkLeón Orell Valerian Liehr-14/+47
Stop using the old `validate_attr` logic for stability attributes I think this was accidentally missed when implementing the stability attributes? r? `````@oli-obk````` cc `````@jdonszelmann`````
2025-07-24Rollup merge of #144335 - fmease:no-angle-no-colon, r=SparrowLiiLeón Orell Valerian Liehr-5/+36
Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding Fixes https://github.com/rust-lang/rust/issues/140543.
2025-07-24Rollup merge of #144334 - lolbinarycat:rustdoc-span_of_fragments-revert, ↵León Orell Valerian Liehr-13/+4
r=GuillaumeGomez rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion This function can cause false negatives if used incorrectly (usually "do any of the doc fragments come from a macro" is the wrong question to ask), and thus it is unused. r? `````@GuillaumeGomez`````
2025-07-24Rollup merge of #144320 - lolbinarycat:rustdoc-search_index-BTreeMap-str, ↵León Orell Valerian Liehr-3/+16
r=GuillaumeGomez rustdoc: avoid allocating a temp String for aliases in search index Here's the optimization I talked about in https://github.com/rust-lang/rust/pull/143988#discussion_r2208524163 I got around the Serialize issue using the newtype pattern. The wrapper type could be factored out into a helper that would work with anything that impls `AsRef<&str>`, but I'm not sure if that would be helpful anywhere else. r? ``````@GuillaumeGomez``````
2025-07-24Rollup merge of #144317 - lolbinarycat:tidy-obey-build.npm, r=KobzolLeón Orell Valerian Liehr-4/+14
pass build.npm from bootstrap to tidy and use it for npm install followup to rust-lang/rust#142924 r? ```@Kobzol```
2025-07-24Rollup merge of #144278 - Qelxiros:rev-into-inner, r=tgross35León Orell Valerian Liehr-0/+19
add Rev::into_inner Tracking issue: rust-lang/rust#144277
2025-07-24Rollup merge of #144276 - cjgillot:no-hir-privacy, r=petrochenkovLeón Orell Valerian Liehr-124/+92
Use less HIR in check_private_in_public. r? ````````@petrochenkov````````
2025-07-24Rollup merge of #144247 - RalfJung:ldexp, r=tgross35León Orell Valerian Liehr-32/+38
coretests/num: use ldexp instead of hard-coding a power of 2 r? `````@tgross35`````
2025-07-24Rollup merge of #144240 - ↵León Orell Valerian Liehr-5/+32
yuk1ty:false-sealed-traits-note-reported-in-another-issue, r=fee1-dead Add more test case to check if the false note related to sealed trait suppressed Closes rust-lang/rust#143121 I started to fix the issue but I found that this one has already been addressed in this PR (https://github.com/rust-lang/rust/pull/143431). I added an additional test to prove the reported thing has been resolved just in case. I think we can discard this pull request if there's no need to add such kind of tests👍🏻