Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
189b301
CI: use alternative disks if available
the8472 Oct 26, 2025
1787491
[review] add more comments
the8472 Oct 27, 2025
dd2d7c0
print a warning and fallback instead of failing ci
the8472 Nov 13, 2025
dcbcedf
AWS runners have enough disk, no need for cleanup or mount shenanigans
the8472 Dec 1, 2025
d501f96
rustc_target: callconv: powerpc64: Use llvm_abiname rather than targe…
Gelbpunkt Feb 24, 2026
acbfd79
Fix: On wasm targets, call `panic_in_cleanup` if panic occurs in cleanup
hoodmane Jan 27, 2026
4450740
Split `is_msvc_link_exe` into a function
jyn514 Dec 12, 2025
1679dfb
Split `report_linker_output` into its own function
jyn514 Dec 12, 2025
1e3bf5e
Split out linker-info from linker-messages
jyn514 Dec 12, 2025
f7e1936
Set linker-messages to warn-by-default
jyn514 Dec 13, 2025
8e3cb10
Ignore linker messages for `raw_dylib_elf`
jyn514 Feb 18, 2026
5847b63
Revert "Set linker-messages to warn-by-default"
jyn514 Feb 24, 2026
783afe9
`is_ty_must_use`: do not require a `span` argument
samueltardieu Feb 24, 2026
f4407f2
Update books
rustbot Feb 25, 2026
d13924c
mGCA: Reject negated non-integer literals in const args
reddevilmidzy Feb 25, 2026
5127108
mGCA: drop literal anon-const special case in parser
reddevilmidzy Feb 25, 2026
8eed8bd
Rename `pass_by_value` lint as `disallowed_pass_by_ref`.
nnethercote Feb 23, 2026
d2619b5
Remove mgca_direct_lit_hack indirection
reddevilmidzy Feb 25, 2026
b76b26d
Remove `QuerySystemFns`.
nnethercote Feb 25, 2026
608d85f
Move two functions into `hooks`.
nnethercote Feb 25, 2026
f1ec10e
deprecate `Eq::assert_receiver_is_total_eq` and emit a FCW on manual …
cyrgani Jan 8, 2026
5b99fcd
Revert "Move aarch64-apple dist builder to dynamic llvm linking and e…
RalfJung Feb 25, 2026
ff0f239
Remove redundant self usages
mu001999 Feb 22, 2026
696a7a1
Simplify `AppendOnlyVec` iterators
cuviper Feb 25, 2026
638756c
Rollup merge of #153079 - RalfJung:revert-macos-dyn, r=jieyouxu
JonathanBrouwer Feb 25, 2026
dd4766f
Rollup merge of #148146 - the8472:ci-use-extra-disk, r=marcoieni
JonathanBrouwer Feb 25, 2026
458795c
Rollup merge of #149937 - jyn514:linker-info, r=mati865
JonathanBrouwer Feb 25, 2026
f1a6ce1
Rollup merge of #151771 - hoodmane:wasm-double-panic, r=bjorn3
JonathanBrouwer Feb 25, 2026
fb6bc2a
Rollup merge of #153035 - Gelbpunkt:ppc64-callconv-llvm-abiname, r=Ra…
JonathanBrouwer Feb 25, 2026
a261cc1
Rollup merge of #153075 - reddevilmidzy:mgca-neg, r=BoxyUwU
JonathanBrouwer Feb 25, 2026
f5a2ee6
Rollup merge of #153078 - nnethercote:rm-QuerySystemFns, r=petrochenkov
JonathanBrouwer Feb 25, 2026
1c0ddee
Rollup merge of #149978 - cyrgani:no-eq-assert-receiver-method, r=mad…
JonathanBrouwer Feb 25, 2026
11e5b6d
Rollup merge of #153029 - nnethercote:disallowed-pass-by-ref, r=Urgau
JonathanBrouwer Feb 25, 2026
ff0dcb5
Rollup merge of #153063 - samueltardieu:features/remove-span-paramete…
JonathanBrouwer Feb 25, 2026
37b04df
Rollup merge of #153071 - rustbot:docs-update, r=ehuss
JonathanBrouwer Feb 25, 2026
58ab407
Rollup merge of #153092 - mu001999-contrib:cleanup/redundant-self, r=…
JonathanBrouwer Feb 25, 2026
dcdf1ec
Rollup merge of #153094 - cuviper:AppendOnlyVec-iters, r=Kivooeo
JonathanBrouwer Feb 25, 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
6 changes: 4 additions & 2 deletions compiler/rustc_ast/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,11 @@ macro_rules! common_visitor_and_walkers {
) -> V::Result;
}

// this is only used by the MutVisitor. We include this symmetry here to make writing other functions easier
// This is only used by the MutVisitor. We include this symmetry here to make writing other
// functions easier.
$(${ignore($lt)}
#[expect(unused, rustc::pass_by_value)]
#[cfg_attr(not(bootstrap), expect(unused, rustc::disallowed_pass_by_ref))]
#[cfg_attr(bootstrap, expect(unused, rustc::pass_by_value))]
#[inline]
)?
fn visit_span<$($lt,)? V: $Visitor$(<$lt>)?>(vis: &mut V, span: &$($lt)? $($mut)? Span) -> V::Result {
Expand Down
21 changes: 11 additions & 10 deletions compiler/rustc_ast_lowering/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2521,16 +2521,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
ExprKind::Block(block, _) => {
if let [stmt] = block.stmts.as_slice()
&& let StmtKind::Expr(expr) = &stmt.kind
&& matches!(
expr.kind,
ExprKind::Block(..)
| ExprKind::Path(..)
| ExprKind::Struct(..)
| ExprKind::Call(..)
| ExprKind::Tup(..)
| ExprKind::Array(..)
| ExprKind::ConstBlock(..)
)
{
return self.lower_expr_to_const_arg_direct(expr);
}
Expand All @@ -2553,6 +2543,17 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
let span = expr.span;
let literal = self.lower_lit(literal, span);

if !matches!(literal.node, LitKind::Int(..)) {
let err =
self.dcx().struct_span_err(expr.span, "negated literal must be an integer");

return ConstArg {
hir_id: self.next_id(),
kind: hir::ConstArgKind::Error(err.emit()),
span,
};
}

ConstArg {
hir_id: self.lower_node_id(expr.id),
kind: hir::ConstArgKind::Literal { lit: literal.node, negated: true },
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_attr_parsing/src/attributes/stability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use rustc_hir::{

use super::prelude::*;
use super::util::parse_version;
use crate::session_diagnostics::{self};
use crate::session_diagnostics;

macro_rules! reject_outside_std {
($cx: ident) => {
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_attr_parsing/src/session_diagnostics.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::num::IntErrorKind;

use rustc_ast::{self as ast};
use rustc_ast as ast;
use rustc_errors::codes::*;
use rustc_errors::{
Applicability, Diag, DiagArgValue, DiagCtxtHandle, Diagnostic, EmissionGuarantee, Level,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/cmdline_attrs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Attributes injected into the crate root from command line using `-Z crate-attr`.
use rustc_ast::{self as ast};
use rustc_ast as ast;
use rustc_errors::Diag;
use rustc_parse::parser::attr::InnerAttrPolicy;
use rustc_parse::{parse_in, source_str_to_stream};
Expand Down
5 changes: 2 additions & 3 deletions compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ pub(crate) fn expand_deriving_eq(
additional_bounds: Vec::new(),
supports_unions: true,
methods: vec![MethodDef {
name: sym::assert_receiver_is_total_eq,
name: sym::assert_fields_are_eq,
generics: Bounds::empty(),
explicit_self: true,
nonself_args: vec![],
ret_ty: Unit,
attributes: thin_vec![
cx.attr_word(sym::inline, span),
cx.attr_nested_word(sym::doc, sym::hidden, span),
cx.attr_nested_word(sym::coverage, sym::off, span)
cx.attr_nested_word(sym::coverage, sym::off, span),
],
fieldless_variants_strategy: FieldlessVariantsStrategy::Unify,
combine_substructure: combine_substructure(Box::new(|a, b, c| {
Expand Down
4 changes: 4 additions & 0 deletions compiler/rustc_codegen_gcc/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,10 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
unimplemented!();
}

fn get_funclet_cleanuppad(&self, _funclet: &Funclet) -> RValue<'gcc> {
unimplemented!();
}

// Atomic Operations
fn atomic_cmpxchg(
&mut self,
Expand Down
4 changes: 4 additions & 0 deletions compiler/rustc_codegen_llvm/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,10 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
ret
}

fn get_funclet_cleanuppad(&self, funclet: &Funclet<'ll>) -> &'ll Value {
funclet.cleanuppad()
}

// Atomic Operations
fn atomic_cmpxchg(
&mut self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use crate::debuginfo::metadata::{
size_and_align_of, type_di_node, unknown_file_metadata, visibility_di_flags,
};
use crate::debuginfo::utils::DIB;
use crate::llvm;
use crate::llvm::debuginfo::{DIFile, DIFlags, DIType};
use crate::llvm::{self};

// The names of the associated constants in each variant wrapper struct.
// These have to match up with the names being used in `intrinsic.natvis`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use crate::debuginfo::metadata::{
file_metadata_from_def_id, type_di_node, unknown_file_metadata,
};
use crate::debuginfo::utils::{DIB, create_DIArray, get_namespace_for_item};
use crate::llvm;
use crate::llvm::debuginfo::{DIFlags, DIType};
use crate::llvm::{self};

mod cpp_like;
mod native;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use rustc_abi::{Size, TagEncoding, VariantIdx, Variants};
use rustc_codegen_ssa::debuginfo::type_names::compute_debuginfo_type_name;
use rustc_codegen_ssa::debuginfo::{tag_base_type, wants_c_like_enum_debuginfo};
use rustc_codegen_ssa::traits::{ConstCodegenMethods, MiscCodegenMethods};
use rustc_middle::bug;
use rustc_middle::ty::layout::{LayoutOf, TyAndLayout};
use rustc_middle::ty::{self};
use rustc_middle::{bug, ty};
use smallvec::smallvec;

use crate::common::{AsCCharPtr, CodegenCx};
Expand All @@ -18,8 +17,8 @@ use crate::debuginfo::metadata::{
unknown_file_metadata, visibility_di_flags,
};
use crate::debuginfo::utils::{DIB, create_DIArray, get_namespace_for_item};
use crate::llvm;
use crate::llvm::debuginfo::{DIFile, DIFlags, DIType};
use crate::llvm::{self};

/// Build the debuginfo node for an enum type. The listing below shows how such a
/// type looks like at the LLVM IR/DWARF level. It is a `DW_TAG_structure_type`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use rustc_middle::ty::{self, ExistentialTraitRef, Ty, TyCtxt};
use super::{DefinitionLocation, SmallVec, UNKNOWN_LINE_NUMBER, unknown_file_metadata};
use crate::common::CodegenCx;
use crate::debuginfo::utils::{DIB, create_DIArray, debug_context};
use crate::llvm;
use crate::llvm::debuginfo::{DIFlags, DIScope, DIType};
use crate::llvm::{self};

mod private {
use rustc_macros::HashStable;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_llvm/src/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use rustc_codegen_ssa::mir::operand::{OperandRef, OperandValue};
use rustc_codegen_ssa::mir::place::{PlaceRef, PlaceValue};
use rustc_codegen_ssa::traits::*;
use rustc_data_structures::assert_matches;
use rustc_hir as hir;
use rustc_hir::def_id::LOCAL_CRATE;
use rustc_hir::{self as hir};
use rustc_middle::mir::BinOp;
use rustc_middle::ty::layout::{FnAbiOf, HasTyCtxt, HasTypingEnv, LayoutOf};
use rustc_middle::ty::offload_meta::OffloadMetadata;
Expand Down
Loading
Loading