Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
8a7ec34
Stabilize `windows_process_extensions_main_thread_handle`
ChayimFriedman2 Jul 28, 2026
c317698
Make Receiver #[rustc_dyn_incompatible_trait]
Darksonn Sep 7, 2026
40bbaea
Fix test
Darksonn Sep 7, 2026
58c9d2f
core: Rewrite docs for try_as_dyn
jnkel Sep 14, 2026
324f136
Fix a bug in MatchBranchSimplification
saethlin Sep 14, 2026
6401a6e
libtest: do not early exit from test runners
RalfJung Sep 15, 2026
5fd598e
clean up libtest re-exports a bit
RalfJung Sep 15, 2026
f05d37a
extract hardcoded polonius MIR dump into HTML template
lqd Sep 4, 2026
6f49dfe
add loan reachability to the polonius mir dump
lqd Sep 15, 2026
5e715e0
make loan traces opt in
lqd Sep 15, 2026
2cd2f3d
improve visuals
lqd Sep 15, 2026
6b96623
core: Add examples for `debug_closure_helpers`
tgross35 Sep 15, 2026
9559b38
Stabilize trim_prefix_suffix
zachs18 Aug 5, 2026
076a758
enable asm tests for xtensa targets
RalfJung Sep 16, 2026
babc228
mgca: fix issue with mismatched array valtree/valtree tys
khyperia Sep 16, 2026
9dce1fc
reintroduce check for ConstParamTy in direct consts
khyperia Sep 16, 2026
fb554f2
Read alias liveness directly from item bounds
Dnreikronos Sep 16, 2026
94cc692
Stabilize CommandExt::show_window
nodamushi Sep 16, 2026
8265b6f
Use the entire type of the live variable to compute region variance
amandasystems Sep 16, 2026
0a1618e
coretests: Add more pattern tests.
pacak Aug 10, 2026
c8cb67c
tests: accept LLVM 24 optimization in this test
durin42 Aug 26, 2026
f20db0d
make `Complex::new` a `const fn`
folkertdev Sep 16, 2026
0e46d8f
add `Complex::conjugate` and `impl<T: Neg> Neg for Complex<T>`
folkertdev Sep 16, 2026
54e0102
add `impl<T: Default> Default for Complex<T>`
folkertdev Sep 16, 2026
99261fb
Add must_use lint to ExitCode
ChrisDenton Sep 15, 2026
d38f60b
Add support for `annotate_snippets::snippet::AnnotationKind::Visible`
estebank Sep 16, 2026
5981733
Use `span_context` in more places
estebank Sep 16, 2026
591e081
Use context span more
estebank Sep 16, 2026
79d24a0
Move operations out of `rustc_middle::query::job`
nnethercote Aug 20, 2026
a788afa
Simplify the macro for forwarding Decoder methods
Zalathar Sep 15, 2026
c095b61
Remove Deref/DerefMut from MetadataDecodeContext
Zalathar Sep 17, 2026
caedbd8
yeet alias new_from_def_id
khyperia Sep 17, 2026
c20275b
Typo on the Armv7-R platform docs page
jonathanpallant Sep 17, 2026
085678a
Add address_space and byref to abi PassMode::Indirect
Flakebi Sep 1, 2026
1040915
Pre-commit amdgpu gpu-kernel ABI test
Flakebi Sep 3, 2026
0c57a55
Properly implement the gpu-kernel ABI for amdgpu
Flakebi Sep 15, 2026
8b0c9ba
Rollup merge of #161596 - pacak:more-pat-tests, r=nia-e
JonathanBrouwer Sep 17, 2026
608e2f1
Rollup merge of #162177 - Flakebi:amdgpu-kernel-cc, r=bjorn3
JonathanBrouwer Sep 17, 2026
6c01a0c
Rollup merge of #162411 - Darksonn:receiver-dyn-incompat, r=dingxiang…
JonathanBrouwer Sep 17, 2026
25d0abc
Rollup merge of #162760 - khyperia:yeet-new_from_def_id, r=BoxyUwU
JonathanBrouwer Sep 17, 2026
273e721
Rollup merge of #162796 - RalfJung:libtest-no-early-exit, r=oli-obk
JonathanBrouwer Sep 17, 2026
504709a
Rollup merge of #162844 - lqd:traceroute, r=jackh726
JonathanBrouwer Sep 17, 2026
c2460e1
Rollup merge of #162876 - nnethercote:mv-ops-out-of-rustc_middle-quer…
JonathanBrouwer Sep 17, 2026
e326bd1
Rollup merge of #160108 - ChayimFriedman2:stabilize-main-thread-windo…
JonathanBrouwer Sep 17, 2026
5b1c6c2
Rollup merge of #160212 - Dnreikronos:traits/rigid_alias_liveness, r=…
JonathanBrouwer Sep 17, 2026
65b57c3
Rollup merge of #160544 - zachs18:stabilize-trim_prefix_suffix, r=cla…
JonathanBrouwer Sep 17, 2026
aae995f
Rollup merge of #161305 - amandasystems:issue-160670, r=lqd,jackh726
JonathanBrouwer Sep 17, 2026
89126d1
Rollup merge of #161838 - durin42:llvm-24-closure-inherit-target-feat…
JonathanBrouwer Sep 17, 2026
b99579f
Rollup merge of #162312 - jnkel:try_as_dyn-docs, r=oli-obk
JonathanBrouwer Sep 17, 2026
e573627
Rollup merge of #162785 - saethlin:match_branch_simplification, r=oli…
JonathanBrouwer Sep 17, 2026
fdd6557
Rollup merge of #162805 - ChrisDenton:exit-code-must-use, r=jhpratt
JonathanBrouwer Sep 17, 2026
8ffb1bd
Rollup merge of #162825 - tgross35:debug-closure-examples, r=clarfonthey
JonathanBrouwer Sep 17, 2026
8ee9680
Rollup merge of #162841 - RalfJung:xtensa-asm, r=nnethercote
JonathanBrouwer Sep 17, 2026
3442db1
Rollup merge of #162842 - khyperia:ConstParamTy-check, r=BoxyUwU
JonathanBrouwer Sep 17, 2026
e9a7428
Rollup merge of #162845 - khyperia:lowering-array-len-ty, r=BoxyUwU
JonathanBrouwer Sep 17, 2026
95542e9
Rollup merge of #162856 - nodamushi:stabilize-command-ext-show-window…
JonathanBrouwer Sep 17, 2026
c572184
Rollup merge of #162865 - folkertdev:complex-conjugate, r=nia-e
JonathanBrouwer Sep 17, 2026
47bbfd5
Rollup merge of #162874 - estebank:annotate-snippets-context, r=oli-obk
JonathanBrouwer Sep 17, 2026
72d113e
Rollup merge of #162881 - Zalathar:impl-decoder, r=nnethercote
JonathanBrouwer Sep 17, 2026
73e6978
Rollup merge of #162888 - ferrocene:jp/fix-armv7r-typo, r=jieyouxu
JonathanBrouwer Sep 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4716,6 +4716,7 @@ name = "rustc_query_impl"
version = "0.0.0"
dependencies = [
"measureme",
"parking_lot",
"rustc_data_structures",
"rustc_errors",
"rustc_hir",
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_abi/src/layout/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ impl<'a, Ty> TyAndLayout<'a, Ty> {
}

/// If this method returns `true`, then this type should always have a `PassMode` of
/// `Indirect { on_stack: false, .. }` when being used as the argument type of a function with a
/// non-Rustic ABI (this is true for structs annotated with the
/// `Indirect { mode: IndirectMode::Pointer, .. }` when being used as the argument type of a
/// function with a non-Rustic ABI (this is true for structs annotated with the
/// `#[rustc_pass_indirectly_in_non_rustic_abis]` attribute).
///
/// This is used to replicate some of the behaviour of C array-to-pointer decay; however unlike
Expand Down
4 changes: 4 additions & 0 deletions compiler/rustc_abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,10 @@ pub struct AddressSpace(pub u32);
impl AddressSpace {
/// LLVM's `0` address space.
pub const ZERO: Self = AddressSpace(0);
/// The address space for constant memory on nvptx and amdgpu.
/// This address space is used e.g. for kernel arguments that are constant throughout the
/// execution.
pub const GPU_CONSTANT: Self = AddressSpace(4);
/// The address space for workgroup memory on nvptx and amdgpu.
/// See e.g. the `gpu_launch_sized_workgroup_mem` intrinsic for details.
pub const GPU_WORKGROUP: Self = AddressSpace(3);
Expand Down
4 changes: 1 addition & 3 deletions compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,17 +1201,15 @@ impl<'diag, 'tcx> MirBorrowckCtxt<'_, 'diag, 'tcx> {
}
// Point at all the loops that are between this move and the parent item.
for span in loop_spans {
spans.push_span_label(sm.guess_head_span(span), "");
spans.push_span_context(sm.guess_head_span(span));
}

// note: verify that your loop breaking logic is correct
// --> $DIR/nested-loop-moved-value-wrong-continue.rs:41:17
// |
// 28 | for foo in foos {
// | ---------------
// ...
// 33 | for bar in &bars {
// | ----------------
// ...
// 41 | continue;
// | ^^^^^^^^ this `continue` advances the loop at line 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
kind: hir::ImplItemKind::Fn(sig, _),
..
}) => {
err.span_label(ident.span, "");
err.span_context(ident.span);
err.span_label(
sig.decl.output.span(),
"change this to return `FnMut` instead of `Fn`",
Expand Down
5 changes: 5 additions & 0 deletions compiler/rustc_borrowck/src/polonius/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use rustc_index::interval::SparseIntervalMatrix;
use rustc_middle::mir::{Body, Location};
use rustc_middle::ty::RegionVid;
use rustc_mir_dataflow::points::PointIndex;
use tracing::debug;

use crate::BorrowSet;
use crate::constraints::OutlivesConstraint;
Expand Down Expand Up @@ -253,6 +254,7 @@ fn compute_forward_successor(

// 2. Otherwise, gather the edges due to explicit region liveness, when applicable.
if !live_regions.contains(region, next_point) {
debug!(?region, ?next_point, "region isn't live at successor");
return None;
}

Expand All @@ -272,6 +274,8 @@ fn compute_forward_successor(
.flatten()
.unwrap_or(ConstraintDirection::Bidirectional);

debug!(?direction);

match direction {
ConstraintDirection::Backward => {
// Contravariant cases: loans flow in the inverse direction, but we're only interested
Expand Down Expand Up @@ -300,6 +304,7 @@ fn compute_backward_successor(
// Liveness flows into the regions live at the next point. So, in a backwards view, we'll link
// the region from the current point, if it's live there, to the previous point.
if !live_regions.contains(region, current_point) {
debug!(?region, ?current_point, "region isn't live at current point");
return None;
}

Expand Down
Loading
Loading