about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-05-26Consider consts in patterns as refutable (#14887)Timo-6/+28
changelog: none
2025-05-26bootstrap: translate Windows paths in a way that works for both Cygwin and MSYS2Jeremy Drake-1/+3
Cygwin defaults to rooting Windows paths in /cygdrive/X, while MSYS2 configures them to be /X. Regardless of configuration, drives are always accessible as /proc/cygdrive/X, so use that.
2025-05-27Rollup merge of #141550 - Urgau:unused_braces-attrs, r=chenyukang许杰友 Jieyou Xu (Joe)-16/+68
Fix `unused_braces` lint suggestion when encountering attributes This PR fixes the `unused_braces` lint suggestion when encountering attributes by not removing them in the suggestion. Fixes rust-lang/rust#141549
2025-05-27Rollup merge of #141526 - jyn514:env-vars, r=petrochenkov许杰友 Jieyou Xu (Joe)-2/+18
add a dedicated section for compiler environment variables in the unstable book rendered: ![image](https://github.com/user-attachments/assets/dcb6e2a3-2e2d-43bb-8f45-79715705bf45) fixes https://github.com/rust-lang/rust/issues/141523
2025-05-27Rollup merge of #141516 - bend-n:okay, r=workingjubilee许杰友 Jieyou Xu (Joe)-2/+32
speed up charsearcher for ascii chars attempt at fixing rust-lang/rust#82471 this implementation should be valid because ascii characters are always one byte and there are no continuation bytes that overlap with ascii characters im not completely sure that this is _always_ an improvement but it seems to be an improvement for this case and i dont think it can significantly regress any cases
2025-05-27Rollup merge of #141513 - nia-e:allocbytes-extend, r=RalfJung许杰友 Jieyou Xu (Joe)-34/+81
interpret: add allocation parameters to `AllocBytes` Necessary for a better implementation of [rust-lang/miri#4343](https://github.com/rust-lang/miri/pull/4343). Also included here is the code from that PR, adapted to this new interface for the sake of example and so that CI can run on them; the Miri changes can be reverted and merged separately, though. r? `@RalfJung`
2025-05-27Rollup merge of #141449 - fee1-dead-contrib:push-qkosmtkqztkk, r=oli-obk许杰友 Jieyou Xu (Joe)-430/+285
further deduplicate ast visitor code Previous PR: #141249 Tracking issue: #127615 r? `@oli-obk`
2025-05-27Rollup merge of #141439 - compiler-errors:dyn-compatible-coerce, r=oli-obk许杰友 Jieyou Xu (Joe)-767/+73
Deduplicate dyn compatibility violations due to coercion Don't unnecessarily emit dyn compatibility violations due to coercion to a non-dyn-compatible target type. For us to even have that target type, we would have had to write `dyn Trait` somewhere in source, and that would have led to us *already* emitting a dyn compatibility violation when checking that user written type is WF. r? oli-obk
2025-05-27Rollup merge of #141433 - compiler-errors:unsafe-binder-captures, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+2
Properly analyze captures from unsafe binders We need to represent the unsafe binder unwrap as an adjustment in HIR. Pretty straightforward b/c we already represent it as a projection elem in MIR. Fixes #141418 Fixes #141417 r? oli-obk
2025-05-27Rollup merge of #141433 - compiler-errors:unsafe-binder-captures, r=oli-obk许杰友 Jieyou Xu (Joe)-5/+51
Properly analyze captures from unsafe binders We need to represent the unsafe binder unwrap as an adjustment in HIR. Pretty straightforward b/c we already represent it as a projection elem in MIR. Fixes #141418 Fixes #141417 r? oli-obk
2025-05-27Rollup merge of #141431 - compiler-errors:open-drop, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+46
Emit dummy open drop for unsafe binder Fixes rust-lang/rust#141394 We can't taint the body in wfcheck when we have a `T: Copy` bound failure, so we end up binding MIR here. Emit a dummy open drop so that drop elaboration doesn't fail. r? oli-obk
2025-05-27Rollup merge of #141392 - compiler-errors:query-outlives, r=lcnr许杰友 Jieyou Xu (Joe)-108/+73
Avoid obligation construction dance with query region constraints And some renaming...
2025-05-27Rollup merge of #140898 - onur-ozkan:miri-run, r=Kobzol许杰友 Jieyou Xu (Joe)-3/+13
minor improvements on running miri It should be clear from the commit messages when reviewing them one by one.
2025-05-27changelog: [manual_flatten]: fix with nested Some or Ok patterna-yossy-4/+12
2025-05-26Auto merge of #141500 - compiler-errors:rerun-cache-2, r=lcnrbors-89/+291
Don't rerun goals if none of their vars have changed r? `@ghost` Alternative to rust-lang/rust#141488. I'm pretty sure that we don't need to re-run the goal at all if the inputs don't change... 🤔
2025-05-27Remove unused `P` stuff.Nicholas Nethercote-42/+2
2025-05-27Remove support for `P<[T]>`.Nicholas Nethercote-78/+1
It's no longer used.
2025-05-27Remove the one use of `P<[T]>`.Nicholas Nethercote-2/+2
A `Vec` is fine, the additional word (vector vs. boxed slice) doesn't matter here.
2025-05-26Merge pull request #2407 from smanilov/patch-14Tshepang Mbambo-2/+5
Add time reference and tracking info for trait system refactor
2025-05-26Show total count lintsAlexey Semenyuk-1/+13
2025-05-26rustdoc: refactor Tooltip rendering logicbinarycat-43/+21
2025-05-27Remove `P::map`.Nicholas Nethercote-38/+21
It's barely used, and the places that use it are better if they don't.
2025-05-27Remove `'static` bounds on `P`.Nicholas Nethercote-4/+4
These date back to 2014. I don't think they're needed any more.
2025-05-27Remove an unnecessary use of `Box::into_inner`.Nicholas Nethercote-2/+1
2025-05-26rustc book: fix erratic sentence by making it more simpleTshepang Mbambo-2/+2
2025-05-26add lint infallible_try_fromDan Johnson-0/+137
Looks for `TryFrom` implementations with uninhabited error types and suggests to implement `From` instead.
2025-05-26Add testBoxy-0/+25
2025-05-26ci: fix llvm test coverageMarcoIeni-2/+2
2025-05-26Auto merge of #141442 - compiler-errors:fast-path-pred, r=lcnrbors-8/+59
Fold predicate fast path in canonicalizer and eager resolver See individual commits. r? lcnr
2025-05-26ci: move dist-x86_64-linux job to codebuildMarcoIeni-2/+2
2025-05-26Add missing edition directives for async-await testsLukas Wirth-36/+45
2025-05-26Merge pull request #2414 from smanilov/patch-15Boxy-1/+2
Link normalization chapter
2025-05-26Add time reference and tracking info for trait system refactorStan Manilov-2/+5
2025-05-26Link normalization chapterStan Manilov-1/+2
2025-05-26Support opaque_types_defined_by for SyntheticCoroutineBodyMichael Goulet-3/+18
2025-05-26cfg_version: pull out dedicated syntax test from feature gate testJieyou Xu-243/+350
The feature gate test was dual-purposing causing feature gate errors to distract from syntax exercises.
2025-05-26Merge pull request #2413 from fmease/glacier-no-crashes-tests-yesLeón Orell Valerian Liehr-11/+26
Flesh out sections about crashes tests and update mentions of glacier
2025-05-26Flesh out sections about crashes tests and update mentions of glacierLeón Orell Valerian Liehr-11/+26
2025-05-26Deduplicate dyn compatibility violations due to coercionMichael Goulet-767/+73
2025-05-26Auto merge of #141406 - RalfJung:less-force-allocate, r=oli-obkbors-142/+138
interpret: do not force_allocate all return places A while ago I cleaned up our `PlaceTy` a little, but as a side-effect of that, return places had to always be force-allocated. That turns out to cause quite a few extra allocations, and for a project we are doing where we marry Miri with a model checker, that means a lot of extra work -- local variables are just so much easier to reason about than allocations. So, this PR brings back the ability to have the return place be just a local of the caller. To make this work cleanly I had to rework stack pop handling a bit, which also changes the output of Miri in some cases as the span for errors occurring during a particular phase of stack pop changed. With these changes, a no-std binary with a function of functions that just take and return scalar types and that uses no pointers now does not move *any* local variables into memory. :) r? `@oli-obk`
2025-05-26mir-opt: Do not transform non-int type in match_branchesdianqk-2/+65
2025-05-26refactor(mut_reference): replace `match` with `if-let` to reduce nesting ↵Timo-19/+13
(#14890) One downside to this is that, since the patterns matched against (on the left) are quite long, it's a bit difficult to see what's even getting matched. Using `matches!()` could help with that changelog: none
2025-05-26Remove usage of FnAbi in codegen_intrinsic_callbjorn3-21/+11
2025-05-26Reduce indentation in codegen_panic_intrinsicbjorn3-49/+47
2025-05-26Pass PlaceRef rather than Bx::Value to codegen_intrinsic_callbjorn3-12/+9
2025-05-26Don't depend on FnAbi for intrinsicsbjorn3-32/+42
Intrinsics are not real functions and as such don't have any calling convention. Trying to compute a calling convention for an intrinsic anyway is a nonsensical operation.
2025-05-26Remove usage of FnAbi in codegen_intrinsic_callbjorn3-63/+31
2025-05-26Pass PlaceRef rather than Bx::Value to codegen_intrinsic_callbjorn3-45/+38
2025-05-26Move caller_location handling into codegen_intrinsic_callbjorn3-18/+20
2025-05-26Always use fn_span in codegen_call_terminatorbjorn3-15/+11