Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
dcf3a6e
feat: show custom iter adapter in chaining inlayHints
A4-Tacks Oct 22, 2026
21ab4d5
Introduce StoredTerm
nicolas-guichard Oct 13, 2026
e786ac2
Introduce hir_ty::next_solver::TermRefId and TermRefIdPacked
nicolas-guichard Sep 22, 2025
a234c72
Record inferred const for type or const placeholders
nicolas-guichard Sep 22, 2025
86bcadc
Fix extract_type_alias with const generics
nicolas-guichard Sep 22, 2025
8c91870
add tests for `Pool` and fix atomic ordering issue
BenjaminBrienen Nov 16, 2026
3ee2c5d
Merge pull request #23459 from BenjaminBrienen/pool-tests
lnicola Nov 16, 2026
fde3f54
use trusted publishing
BenjaminBrienen Nov 13, 2026
b54f519
Merge pull request #23470 from BenjaminBrienen/trusted-publishing
lnicola Nov 17, 2026
217ada1
ops: Disable credential persistence
hashcatHitman Oct 31, 2026
8ca56db
ops: Prefer `GITHUB_REF` over `github.ref`
hashcatHitman Nov 1, 2026
2d1616c
ops: Prefer `GITHUB_RUN_ID` over `github.run_id`
hashcatHitman Nov 1, 2026
5dd5cfb
ops: Prefer `GITHUB_RUN_NUMBER` over `github.run_number`
hashcatHitman Nov 2, 2026
c76f9d5
ops: Prefer `GITHUB_REPOSITORY` over `github.repository`
hashcatHitman Nov 2, 2026
892e0c2
ops: Prefer shell expansion over template expansion
hashcatHitman Nov 2, 2026
3ab2eaa
ops: Expand `matrix.target` in `env`
hashcatHitman Nov 2, 2026
2c5f92b
ops: Expand `matrix.code-target` in `env`
hashcatHitman Nov 2, 2026
3843e7a
ops: Expand `matrix.names` in `env`
hashcatHitman Nov 2, 2026
b2d8193
ops: Expand `secrets.GITHUB_TOKEN` in `env`
hashcatHitman Nov 2, 2026
ff75e73
ops: Expand `secrets.METRICS_DEPLOY_KEY` in `env`
hashcatHitman Nov 2, 2026
2ae9409
ops: Expand `matrix.cmd` in `env`
hashcatHitman Nov 2, 2026
2a6e8c8
ops: Expand pre-release flag check in `env`
hashcatHitman Nov 2, 2026
ec2e3dc
ops: Expand `llvm-tools` component optional in `env`
hashcatHitman Nov 2, 2026
84455d4
ops: Expand PGO optional in `env`
hashcatHitman Nov 2, 2026
3d06c34
ops: Expand `toJson(needs)` in `env`
hashcatHitman Nov 2, 2026
c3e6cc6
ops: Deduplicate environment variables a bit
hashcatHitman Nov 4, 2026
b7198fe
ops: Expand `matrix.authentication` in `env`
hashcatHitman Nov 17, 2026
68d90ef
minor: short too long roots scanned std path
A4-Tacks Nov 17, 2026
29db7d5
Merge pull request #23672 from A4-Tacks/short-scanned-path
ChayimFriedman2 Nov 17, 2026
12af71a
fix: Accidentally quadratic performance in type inference
Wilfred Nov 16, 2026
71d8acb
Merge pull request #23678 from Wilfred/fix/well-formed-obligation-bui…
ChayimFriedman2 Nov 18, 2026
bf1a91e
Add `r? @ghost` Josh push PR suffix
Kobzol Nov 18, 2026
e694725
Merge pull request #23681 from Kobzol/josh-sync-msg
lnicola Nov 18, 2026
2423345
Prepare for merging from rust-lang/rust
invalid-email-address Nov 19, 2026
83d4957
Merge ref 'e3b9a8345a8a' from rust-lang/rust
invalid-email-address Nov 19, 2026
9a84cb5
Merge pull request #23684 from rust-lang/rustc-pull
lnicola Nov 19, 2026
4f4eae5
fix: allow notable_trait attr args
A4-Tacks Nov 19, 2026
d1b11ad
Enable static-pie on all Musl targets
bjorn3 Nov 19, 2026
6bd3a7f
Merge pull request #23685 from A4-Tacks/notable-trait-args
ChayimFriedman2 Nov 19, 2026
f110dbb
fix: make sure copied lock files are writable
nbdd0121 Nov 19, 2026
d064780
Exclude proc macro crates from lang item computations for their depen…
ChayimFriedman2 Nov 19, 2026
4956c69
Introduce a hack for `PartialEq` lang item attr change in core lib
ShoyuVanilla Nov 20, 2026
70da02f
check_expr_field: extract deref loop body to function
scrabsha Nov 13, 2026
934299c
check_field_access_for_deref_step: use early-return instead of ugly n…
scrabsha Nov 13, 2026
e52b706
check_field_access_for_deref_step: move code out of match arms
scrabsha Nov 13, 2026
c8c4096
view-types: add test for field access
scrabsha Nov 9, 2026
f2589b2
Merge pull request #23689 from ChayimFriedman2/lang-items-skip-proc-m…
ShoyuVanilla Nov 20, 2026
8fae9c1
Merge pull request #23594 from hashcatHitman/zizmor
ShoyuVanilla Nov 20, 2026
8abf316
Merge pull request #23691 from ShoyuVanilla/lang-eq
ChayimFriedman2 Nov 20, 2026
ebac758
Add a reason suggestion for malformed lint attributes
vsriramv Nov 20, 2026
b5ff004
Merge pull request #23688 from nbdd0121/master
ChayimFriedman2 Nov 20, 2026
724b27a
fix: Respect is_workspace_member for all crates in rust-project.json
Wilfred Nov 20, 2026
7745f18
Updated UI tests for malformed lint suggestions
vsriramv Nov 20, 2026
64b9abc
Merge pull request #23549 from A4-Tacks/custom-iter-adapter-hints
ShoyuVanilla Nov 20, 2026
d199306
Merge pull request #22211 from nicolas-guichard/push-qltvotzxsuqw
ShoyuVanilla Nov 20, 2026
2a965fd
rm from `Type::instaniate`
ada4a Nov 20, 2026
af81b91
rm from `Type::instaniate_with_errors`
ada4a Nov 20, 2026
13c67ef
rm from `Type::unknown`
ada4a Nov 20, 2026
e2086b9
rm from `Type::new_unit`
ada4a Nov 20, 2026
4a78389
Merge pull request #23694 from Wilfred/fix/sysroot-project-workspace-…
ChayimFriedman2 Nov 21, 2026
1a5a2d8
Merge pull request #23697 from ada4a/push-nlkwmoxmzznk
ChayimFriedman2 Nov 21, 2026
e0f9933
minor: add test for auto import carrying a cfg attr from a macro
shulaoda Nov 21, 2026
fe17b8c
Merge pull request #23704 from shulaoda/11-22-minor_add_test_for_auto…
ChayimFriedman2 Nov 21, 2026
eddfd50
internal: update generated lints and target features
workflows-rust-analyzer[bot] Nov 21, 2026
67d30f4
Merge pull request #23705 from rust-lang/ci/gen-sync
lnicola Nov 22, 2026
a6a7951
Pass both `attr_tools` and `lint_tools` into the attribute parser
JonathanBrouwer Oct 25, 2026
eb9dba4
Move lint validation from `Levels::add` to attribute parsing
JonathanBrouwer Nov 4, 2026
b3908c3
Remove span of `tool`
JonathanBrouwer Nov 1, 2026
9ddf128
Review
JonathanBrouwer Oct 30, 2026
42a2311
Move `LintName` to `rustc_lint_defs`
JonathanBrouwer Nov 1, 2026
09d7afc
Reduce code duplication in substs_from_args_and_bindings
nicolas-guichard Jun 4, 2026
6600391
Merge pull request #23707 from nicolas-guichard/push-wxqvntuvmzyp
ShoyuVanilla Nov 23, 2026
fdccf0a
Suppressed a follow up unused lint warning
vsriramv Nov 23, 2026
f73c472
view-types: teach `rustc_hir_typeck` about field access
scrabsha Nov 9, 2026
a549596
view-types: add proper `Debug` impl
scrabsha Nov 10, 2026
3fadb3a
view-types: lower field accesses of view types down to MIR
scrabsha Nov 10, 2026
9655251
view-types: add structural relation
scrabsha Nov 18, 2026
a93371a
Turn `gca` into a macro 2.0 that expands to `k#gca(..)`
fmease Nov 23, 2026
d4c2adc
Rollup merge of #164918 - JonathanBrouwer:lint-id, r=mejrs
JonathanBrouwer Nov 23, 2026
b8e0835
Rollup merge of #166381 - lnicola:sync-from-ra, r=lnicola
JonathanBrouwer Nov 23, 2026
d1b4633
Rollup merge of #166191 - bjorn3:musl_static_pie, r=petrochenkov
JonathanBrouwer Nov 23, 2026
a494fe8
Rollup merge of #166390 - fmease:gca-to-int-syn, r=khyperia
JonathanBrouwer Nov 23, 2026
4197094
Rollup merge of #165764 - scrabsha:view-types/check-field-access, r=o…
JonathanBrouwer Nov 23, 2026
ba0fe0e
Rollup merge of #166250 - vsriramv:improving_error_output, r=Jonathan…
JonathanBrouwer Nov 23, 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
18 changes: 12 additions & 6 deletions compiler/rustc_ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ impl Expr {
| ExprKind::UnsafeBinderCast(..)
| ExprKind::While(..)
| ExprKind::Yield(YieldKind::Postfix(..))
| ExprKind::GcaMacro(..)
| ExprKind::Gca(..)
| ExprKind::Err(_)
| ExprKind::Dummy => prefix_attrs_precedence(&self.attrs),
}
Expand Down Expand Up @@ -1838,7 +1838,7 @@ pub enum ExprKind {
/// Output of the `asm!()` macro.
InlineAsm(Box<InlineAsm>),

/// An `offset_of` expression (e.g., `k#offset_of(Struct, field)`).
/// An offset-of expression (e.g., `k#offset_of(Struct, field)`).
///
/// Usually not written directly in user code but
/// indirectly via the macro `core::mem::offset_of!(...)`.
Expand Down Expand Up @@ -1894,8 +1894,11 @@ pub enum ExprKind {

UnsafeBinderCast(UnsafeBinderCastKind, Box<Expr>, Option<Box<Ty>>),

/// An mGCA `gca!()` expression.
GcaMacro(Box<Expr>),
/// An mGCA expression (e.g., `k#gca(0)`).
///
/// Usually not written directly in user code but indirectly via the macro
/// `std::gca` (`core::marker::gca`).
Gca(Box<Expr>),

/// Placeholder for an expression that wasn't syntactically well formed in some way.
Err(ErrorGuaranteed),
Expand Down Expand Up @@ -2544,8 +2547,11 @@ pub enum TyKind {
FieldOf(Box<Ty>, Option<Ident>, Ident),
/// A view of a type. `T.{ field_1, field_2 }`.
View(Box<Ty>, #[visitable(ignore)] ThinVec<Ident>),
/// An mGCA `gca!()` expression.
GcaMacro(Box<Expr>),
/// An mGCA expression (e.g., `k#gca(0)`), not a real type.
///
/// Usually not written directly in user code but indirectly via the macro
/// `std::gca` (`core::marker::gca`).
Gca(Box<Expr>),
/// Sometimes we need a dummy value when no error has occurred.
Dummy,
/// Placeholder for a kind that has failed to be defined.
Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_ast/src/util/classify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub fn leading_labeled_expr(mut expr: &ast::Expr) -> bool {
| Yeet(..)
| Yield(..)
| UnsafeBinderCast(..)
| GcaMacro(..)
| Gca(..)
| Err(..)
| Dummy => return false,
}
Expand Down Expand Up @@ -244,7 +244,7 @@ pub fn expr_trailing_brace(mut expr: &ast::Expr) -> Option<TrailingBrace<'_>> {
| Try(_)
| Yeet(None)
| UnsafeBinderCast(..)
| GcaMacro(..)
| Gca(..)
| Err(_)
| Dummy => {
break None;
Expand Down Expand Up @@ -307,7 +307,7 @@ fn type_trailing_braced_mac_call(mut ty: &ast::Ty) -> Option<&ast::MacCall> {
| ast::TyKind::Pat(..)
| ast::TyKind::FieldOf(..)
| ast::TyKind::View(..)
| ast::TyKind::GcaMacro(..)
| ast::TyKind::Gca(..)
| ast::TyKind::Dummy
| ast::TyKind::Err(..) => break None,
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ macro_rules! common_visitor_and_walkers {
visit_visitable!(vis, bytes),
ExprKind::UnsafeBinderCast(kind, expr, ty) =>
visit_visitable!(vis, kind, expr, ty),
ExprKind::GcaMacro(expr) =>
ExprKind::Gca(expr) =>
visit_visitable!(vis, expr),
ExprKind::Err(_guar) => {}
ExprKind::Dummy => {}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast_lowering/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ impl<'hir> LoweringContext<'_, 'hir> {

ExprKind::MacCall(_) => panic!("{:?} shouldn't exist here", e.span),

ExprKind::GcaMacro(expr) => {
ExprKind::Gca(expr) => {
let e = self.emit_bad_gca_macro(e.span, expr, "expression");
hir::ExprKind::Err(e)
}
Expand Down
11 changes: 6 additions & 5 deletions compiler/rustc_ast_lowering/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
tcx.sess,
tcx.features(),
tcx.registered_attr_tools(()),
tcx.registered_lint_tools(()),
ShouldEmit::ErrorsAndLints { recovery: Recovery::Allowed },
),
}
Expand Down Expand Up @@ -1463,7 +1464,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
let ct = self.arena.alloc(ct);
return GenericArg::Const(ct.try_as_ambig_ct().unwrap());
}
TyKind::GcaMacro(expr) if self.tcx.features().gca() => {
TyKind::Gca(expr) if self.tcx.features().gca() => {
let ct = match self.can_lower_expr_to_const_arg_direct(
expr,
self.direct_const_arg_context_enabled_by_gca_macro(),
Expand Down Expand Up @@ -1782,7 +1783,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
let fields = self.arena.alloc_slice(fields);
hir::TyKind::View(ty, fields)
}
TyKind::GcaMacro(expr) => {
TyKind::Gca(expr) => {
let e = self.emit_bad_gca_macro(t.span, expr, "type");
hir::TyKind::Err(e)
}
Expand Down Expand Up @@ -2892,7 +2893,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
ExprKind::ConstBlock(_) if context.contains(DirectConstArgContext::CONST_BLOCK) => {
Ok(())
}
ExprKind::GcaMacro(_) if context.contains(DirectConstArgContext::GCA_MACRO) => {
ExprKind::Gca(_) if context.contains(DirectConstArgContext::GCA_MACRO) => {
// Always report this as able to be represented directly. If it turns out not to be,
// `lower_expr_to_const_arg_direct` will report an error.
Ok(())
Expand Down Expand Up @@ -3073,9 +3074,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
span,
}
}
ExprKind::GcaMacro(expr) => {
ExprKind::Gca(expr) => {
// `can_lower_expr_to_const_arg_direct` always returns success upon encountering a
// ExprKind::GcaMacro, which effectively forces the expression to be lowered as a
// `ExprKind::Gca`, which effectively forces the expression to be lowered as a
// direct arg. If it actually turns out to not be possible, emit an error instead.
match self.can_lower_expr_to_const_arg_direct(
expr,
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_ast_pretty/src/pprust/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1468,8 +1468,8 @@ impl<'a> State<'a> {
self.print_view(fields);
self.pclose();
}
ast::TyKind::GcaMacro(expr) => {
self.word_nbsp("core::gca!");
ast::TyKind::Gca(expr) => {
self.word("k#gca");
self.popen();
self.print_expr(expr, FixupContext::default());
self.pclose();
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_ast_pretty/src/pprust/state/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,8 @@ impl<'a> State<'a> {
self.word("/*DUMMY*/");
self.pclose();
}
ast::ExprKind::GcaMacro(expr) => {
self.word_nbsp("core::gca!");
ast::ExprKind::Gca(expr) => {
self.word("k#gca");
self.popen();
self.print_expr(expr, FixupContext::default());
self.pclose()
Expand Down
10 changes: 7 additions & 3 deletions compiler/rustc_attr_ir/src/lint.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use rustc_lint_defs::LintName;
use rustc_macros::{Decodable, Encodable, PrintAttribute, StableHash};
use rustc_span::{Span, Symbol, sym};
use rustc_structures::LintName;

use crate::{HashIgnoredAttrId, PrintAttribute};

Expand Down Expand Up @@ -45,7 +45,12 @@ impl LintCheckKind {
/// ```
#[derive(Clone, Debug, StableHash, Encodable, Decodable, PrintAttribute)]
pub struct LintCheck {
pub lint_name: LintName,
/// The full normalized lint name of an existing lint, including the tool name.
/// This may not be what the user wrote down, in case of renamed lints the new lint name is here.
/// The above implies that `LintStore::find_lints` is guaranteed to find this lint using this symbol.
///
/// For example, `single_use_lifetime` is changed to `single_use_lifetimes`.
pub lint_name_normalized: LintName,
pub kind: LintCheckKind,
pub reason: Option<Symbol>,
/// Needed by `LintExpectationId` to track fulfilled expectations
Expand All @@ -61,5 +66,4 @@ pub struct LintCheck {
/// #[deny(foo::bar::baz)]
/// ^^^^^^^^^^^^^
pub lint_span: Span,
pub tool_span: Option<Span>,
}
6 changes: 2 additions & 4 deletions compiler/rustc_attr_ir/src/pretty_printing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ use rustc_ast::token::{CommentKind, DocFragmentKind};
use rustc_ast::{AttrId, AttrStyle, IntTy, UintTy};
use rustc_ast_pretty::pp::Printer;
use rustc_data_structures::fx::FxIndexMap;
use rustc_lint_defs::{Reflectiveness, ToolOptions};
use rustc_lint_defs::{LintName, Reflectiveness, ToolOptions};
use rustc_span::def_id::DefId;
use rustc_span::hygiene::Transparency;
use rustc_span::{ErrorGuaranteed, Ident, Span, Symbol};
use rustc_structures::{
CollapseMacroDebuginfo, CrateType, Limit, LintName, NativeLibKind, SanitizerSet,
};
use rustc_structures::{CollapseMacroDebuginfo, CrateType, Limit, NativeLibKind, SanitizerSet};
use thin_vec::ThinVec;

use crate::HashIgnoredAttrId;
Expand Down
Loading
Loading