Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
3d486d0
prevent optimization for input in benchmarks
ywxt Nov 11, 2026
499332a
avoid redundant scans when extracting stage0 archives
TaKO8Ki Nov 11, 2026
832e0f3
prepare stage0 directories before parallel extraction
TaKO8Ki Nov 12, 2026
ea12d59
join 32-bit and 64-bit virtual function elimination tests
folkertdev Nov 4, 2026
00b1f62
use `trait_ref`'s def_id
folkertdev Nov 4, 2026
211e160
Enhance documentation for try_clone File implementation
MarioIlRosso Nov 13, 2026
85f0143
document and refactor `VCallVisibility`
folkertdev Nov 4, 2026
9b8230b
support a slice of (super)traits in `apply_vcall_visibility_metadata`
folkertdev Nov 4, 2026
33726d1
`rustc_hir_typeck::upvar`: replace for loop with `.any()`
Jules-Bertholet Nov 13, 2026
016e281
Merge `type_bf16()` with `type_f16b()`
beetrees Nov 13, 2026
0df9784
windows: use io::const_error in get_access_mode
seritools Nov 13, 2026
8d5c28c
Prune un/under used methods of `ast::Attribute`
mejrs Nov 13, 2026
ab4f981
Implemented different with_native_path conversion methods, refactorin…
asder8215 Oct 22, 2026
a6b77dd
Tweak wording of missing `core` note
estebank Nov 13, 2026
8bb9cef
PassWrapper: adapt for latest round of LLVM codegen flag refactor
durin42 Nov 14, 2026
9f9ec71
cranelift: use fallbacks for abs f16, f128
N1ark Sep 6, 2026
624e461
Make `copysign` generic
N1ark Sep 6, 2026
268bdaa
Make minimum/maximum generic
N1ark Sep 6, 2026
cc56d88
Replace float bound impls with a macro
N1ark Sep 7, 2026
6054bc3
De-constify the `FloatPrimitive` sealed trait
N1ark Sep 7, 2026
4b1ebeb
Add test
N1ark Sep 7, 2026
8b24bbd
Improve collapsed suggestions for trait impls tuples
rperier Oct 7, 2026
e8c680b
Document wide pointers in core::ptr module
MarioIlRosso Nov 14, 2026
5e71be3
Mention `#![doc = include_str!(...)]` trick in intro page
MarioIlRosso Nov 14, 2026
20961e9
add !type annotations for each (super)trait that is a prefix of a giv…
folkertdev Nov 4, 2026
71e6103
Improve index inference diagnostics
pkondzior Nov 14, 2026
b2d81b9
Update `minifier-rs` dependency version to `0.5.0`
GuillaumeGomez Nov 14, 2026
2c79d71
do not panic on non-UTF-8 arguments in `install_ice_hook`
TaKO8Ki Nov 15, 2026
84661ca
add a regression test for non-UTF-8 command-line arguments
TaKO8Ki Nov 15, 2026
dcf41ce
pipe_subprocess test: use libtest harness
RalfJung Nov 15, 2026
f4e35f8
Fix(docs): Correct discard behavior in datagram peek docs
Suryansh-Dey Nov 15, 2026
2d99d57
attribute #[optimize]: keep low opt levels unoptimized
RalfJung Nov 15, 2026
8958ef8
expose f16b via std::num, not just core::num
RalfJung Nov 15, 2026
a6844d5
add ABI compat checks for new float types
RalfJung Nov 15, 2026
8cdd0bf
Do not include context span when source is unavailable to render
estebank Oct 6, 2026
053b6d4
Revert safety hygiene changes to `String::retain`
workingjubilee Nov 15, 2026
3ff4095
Revert optimized implementation of `String::retain`
workingjubilee Nov 15, 2026
08e44b1
library: Reapply String::retain safety doc for tidy
fereidani Nov 15, 2026
6a8e5c1
Update TPDE submodule
TechnoPorg Nov 15, 2026
353f9d8
Rollup merge of #165819 - TaKO8Ki:avoid-stage0-archive-rescans, r=Mar…
jhpratt Nov 16, 2026
8d9ae31
Rollup merge of #166011 - workingjubilee:clean-revert-string-retain, …
jhpratt Nov 16, 2026
9559de0
Rollup merge of #159805 - asder8215:with_native_path_exists, r=joboet
jhpratt Nov 16, 2026
56a9f9c
Rollup merge of #162414 - N1ark:const-unstable-float-generics, r=Ralf…
jhpratt Nov 16, 2026
4feeb4e
Rollup merge of #163891 - estebank:tweak-context-unavailable, r=Muscraft
jhpratt Nov 16, 2026
d3f4311
Rollup merge of #164156 - rperier:fix_better_suggestions_for_trait_im…
jhpratt Nov 16, 2026
3ade44e
Rollup merge of #165475 - folkertdev:vfe-upcast, r=WaffleLapkin
jhpratt Nov 16, 2026
cbefd7d
Rollup merge of #165900 - estebank:issue-91459, r=nnethercote
jhpratt Nov 16, 2026
29708f0
Rollup merge of #165978 - MarioIlRosso:issue-148592-fix, r=notriddle
jhpratt Nov 16, 2026
071406a
Rollup merge of #165979 - pkondzior:fix-105329-index-inference-diagno…
jhpratt Nov 16, 2026
23b05ef
Rollup merge of #165983 - GuillaumeGomez:update-minifier-dep, r=Guill…
jhpratt Nov 16, 2026
319c99f
Rollup merge of #165999 - TechnoPorg:push-osuqssntxnxp, r=ZuseZ4
jhpratt Nov 16, 2026
29d4a44
Rollup merge of #166002 - RalfJung:mir-opt-attr, r=hanna-kruppe
jhpratt Nov 16, 2026
d036f49
Rollup merge of #166005 - RalfJung:float-abi, r=joshtriplett
jhpratt Nov 16, 2026
aa79f4f
Rollup merge of #165792 - ywxt:ascii-bench, r=JohnTitor
jhpratt Nov 16, 2026
426f6a6
Rollup merge of #165893 - mejrs:prune_ast_attribute, r=JonathanBrouwer
jhpratt Nov 16, 2026
2daf215
Rollup merge of #165936 - MarioIlRosso:issue-77520-fix, r=Noratrieb
jhpratt Nov 16, 2026
e37b20e
Rollup merge of #165938 - Jules-Bertholet:mini-refactor, r=jieyouxu
jhpratt Nov 16, 2026
c2968b1
Rollup merge of #165941 - beetrees:merge-type-bf16-f16b, r=folkertdev
jhpratt Nov 16, 2026
40faad4
Rollup merge of #165942 - rust9x:windows-io-const-error, r=clarfonthey
jhpratt Nov 16, 2026
16f36b7
Rollup merge of #165946 - durin42:llvm-24-more-flag-stuff, r=Zalathar
jhpratt Nov 16, 2026
8ffeef4
Rollup merge of #165956 - MarioIlRosso:issue-164818-fix, r=maxdexh
jhpratt Nov 16, 2026
ee7e042
Rollup merge of #165987 - TaKO8Ki:ice-hook-non-utf8-args, r=workingju…
jhpratt Nov 16, 2026
78c856a
Rollup merge of #165993 - RalfJung:pipe-subprocess, r=JohnTitor
jhpratt Nov 16, 2026
97db596
Rollup merge of #165996 - Suryansh-Dey:peek_docs, r=JohnTitor
jhpratt Nov 16, 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
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2504,9 +2504,9 @@ dependencies = [

[[package]]
name = "minifier"
version = "0.4.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "245c950e30794ed20f72ff60c85ae1cddb0ba54fda4623017a678943f98f636c"
checksum = "56b6ef9682ae78237a99dde4f4060d556c2be0d50573361dd17b20d6f500b609"

[[package]]
name = "minimal-lexical"
Expand Down
11 changes: 0 additions & 11 deletions compiler/rustc_ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3556,17 +3556,6 @@ impl GeneratedAttr {
}
}

pub fn is_word(&self) -> bool {
match self {
GeneratedAttr::AutomaticallyDerived => true,
GeneratedAttr::RustcConstUnstableDerived => false,
GeneratedAttr::Inline => true,
GeneratedAttr::DocHidden => false,
GeneratedAttr::CoverageOff => false,
GeneratedAttr::RustcTestMarker(_) => false,
GeneratedAttr::RustcTrivialFieldReads => false,
}
}
pub fn value_str(&self) -> Option<Symbol> {
match self {
GeneratedAttr::AutomaticallyDerived => None,
Expand Down
47 changes: 5 additions & 42 deletions compiler/rustc_ast/src/attr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::sync::atomic::{AtomicU32, Ordering};

use rustc_index::bit_set::GrowableBitSet;
use rustc_span::{Ident, Span, Symbol, sym};
use smallvec::{SmallVec, smallvec};
use thin_vec::{ThinVec, thin_vec};

use crate::ast::{
Expand Down Expand Up @@ -135,15 +134,6 @@ impl Attribute {
}
}

pub fn meta_kind(&self) -> Option<MetaItemKind> {
match &self.kind {
AttrKind::Normal(normal) => normal.item.meta_kind(),
AttrKind::Synthetic(..) => unreachable!(),
AttrKind::DocComment(..) => None,
AttrKind::Generated(..) => None,
}
}

pub fn append_token_trees_to(&self, res: &mut Vec<TokenTree>) {
match &self.kind {
AttrKind::Normal(normal) => normal
Expand Down Expand Up @@ -202,15 +192,6 @@ impl Attribute {
AttrKind::Synthetic(..) | AttrKind::DocComment(..) | AttrKind::Generated(..) => None,
}
}

pub fn path_span(&self) -> Option<Span> {
match &self.kind {
AttrKind::Normal(attr) => Some(attr.item.path.span),
AttrKind::Synthetic(..) => unreachable!(),
AttrKind::DocComment(_, _) => None,
AttrKind::Generated(generated) => generated.path_span(),
}
}
}

impl AttrItem {
Expand Down Expand Up @@ -282,6 +263,11 @@ impl AttrItem {
pub fn meta_kind(&self) -> Option<MetaItemKind> {
MetaItemKind::from_attr_args(&self.args)
}

/// Returns whether the attribute is a path, without any arguments.
pub fn is_word(&self) -> bool {
matches!(self.args, AttrArgs::Empty)
}
}

impl MetaItem {
Expand Down Expand Up @@ -892,29 +878,6 @@ impl Attribute {
names.iter().any(|&name| self.has_name(name))
}

/// Returns whether the attribute is a path, without any arguments.
pub fn is_word(&self) -> bool {
match &self.kind {
AttrKind::Normal(normal) => matches!(normal.item.args, AttrArgs::Empty),
AttrKind::Synthetic(..) => unreachable!(),
AttrKind::DocComment(..) => false,
AttrKind::Generated(generated) => generated.is_word(),
}
}

pub fn path(&self) -> SmallVec<[Symbol; 1]> {
use SyntheticAttr::*;
match &self.kind {
AttrKind::Normal(normal) => {
normal.item.path.segments.iter().map(|i| i.ident.name).collect()
}
AttrKind::Synthetic(CfgTrace(_)) => smallvec![sym::cfg],
AttrKind::Synthetic(CfgAttrTrace(_)) => smallvec![sym::cfg_attr],
AttrKind::DocComment(_, _) => smallvec![sym::doc],
AttrKind::Generated(generated) => generated.path().iter().copied().collect(),
}
}

/// Returns the documentation if this is a doc comment or a sugared doc comment.
/// * `///doc` returns `Some("doc")`.
/// * `#[doc = "doc"]` returns `Some("doc")`.
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_attr_parsing/src/attributes/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ fn parse_cfg_attr_internal<'a>(
attribute.span,
item.span,
attribute.style,
AttrPath { segments: attribute.path().into_boxed_slice(), span: attribute.span },
AttrPath::from_ast(&item.path, identity),
Some(item.unsafety),
AttributeSafety::Normal,
ParsedDescription::Attribute,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/deriving/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ fn validate_default_attribute(
return Err(guar);
}
};
if !attr.is_word() {
if !attr.get_normal_item().is_word() {
let guar = cx.dcx().emit_err(diagnostics::DefaultHasArg { span: attr.span });

return Err(guar);
Expand Down
Loading
Loading