Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
011d95b
Neon fast path for str::contains
JamieCunliffe Jan 27, 2026
1d39a91
require array const params to have correctly typed elems
biscuitrescue Feb 11, 2026
68c705d
tests to check if ValTree checks elems recursively + check array expr…
biscuitrescue Feb 11, 2026
7030be6
move array test to diff file
biscuitrescue Feb 15, 2026
7172f7e
Prepare for merging from rust-lang/rust
invalid-email-address Feb 16, 2026
cca0afa
Merge ref '139651428df8' from rust-lang/rust
invalid-email-address Feb 16, 2026
ca4ff29
Merge pull request #2777 from rust-lang/rustc-pull
tshepang Feb 16, 2026
508cadb
Introduce @bors squash command
reddevilmidzy Feb 18, 2026
7b38904
Merge pull request #2779 from reddevilmidzy/squash
reddevilmidzy Feb 18, 2026
3e47b01
rustdoc.md: consistently use `./x` rather than `./x.py`
DanielEScherzer Feb 19, 2026
cd6103b
Merge pull request #2780 from DanielEScherzer/patch-1
jyn514 Feb 20, 2026
f19de24
document 'x' command in nix-dev-shell
BennoLossin Feb 20, 2026
4479ca7
Merge pull request #2781 from BennoLossin/patch-1
Noratrieb Feb 21, 2026
d5065ee
Update feature gating link in overview.md
reddevilmidzy Feb 21, 2026
99619bc
Merge pull request #2782 from rust-lang/feature-gate
reddevilmidzy Feb 21, 2026
498f111
ci: skip `tidy` in PR CI jobs not dedicated to running `tidy`
jieyouxu Feb 19, 2026
1e4faad
Prepare for merging from rust-lang/rust
invalid-email-address Feb 23, 2026
f624779
Merge ref 'c78a29473a68' from rust-lang/rust
invalid-email-address Feb 23, 2026
d1f5c6a
Merge pull request #2783 from rust-lang/rustc-pull
reddevilmidzy Feb 23, 2026
d05eb78
std: move `exit` out of PAL
joboet Feb 15, 2026
b0050c2
move `must_use` lint to a separate file
WaffleLapkin Feb 23, 2026
c6ae0a9
make `is_ty_must_use` public
WaffleLapkin Feb 23, 2026
696a105
`must_use`: internal doc improvements
WaffleLapkin Feb 23, 2026
b2cc4d5
`must_use`: make the check for trivial types cleaner
WaffleLapkin Feb 23, 2026
ae1e2c6
`must_use`: drive-by-cleanup
WaffleLapkin Feb 23, 2026
1b97e9b
add a flag to `is_ty_must_use` to simplify `Result<T, Uninhabited>` a…
WaffleLapkin Feb 23, 2026
a67baaa
Update books
rustbot Feb 23, 2026
a2bb73c
all but one test suite support revisions directive
tshepang Feb 23, 2026
7ec895b
Merge pull request #2749 from rust-lang/date-check-compiletest
tshepang Feb 23, 2026
8ac769f
Remove `rustc_feedable_queries` and `define_feedable` macros.
nnethercote Feb 23, 2026
1b1fae3
sembr src/overview.md
tshepang Feb 23, 2026
bf0f511
Clarify how "ensure" queries check whether they can skip execution
Zalathar Feb 24, 2026
16fbd29
Streamline `QueryVTableUnerased` into `GetQueryVTable`
Zalathar Feb 23, 2026
ce93a53
Fix Async Drop MIR bug with async_drop_in_place (Squashed)
Feb 24, 2026
d7b6327
sembr src/rustdoc.md
tshepang Feb 24, 2026
19646b2
sembr src/git.md
tshepang Feb 24, 2026
687193b
sembr src/queries/incremental-compilation-in-detail.md
tshepang Feb 24, 2026
f8b5f9c
Port `#[register_tool]` to the new attribute parsers
JonathanBrouwer Feb 22, 2026
07bf6ae
Use the new parser throughout the compiler
JonathanBrouwer Feb 22, 2026
0331958
improve queries/incremental-compilation-in-detail.md
tshepang Feb 24, 2026
470e4d3
sembr src/queries/incremental-compilation-in-detail.md
tshepang Feb 24, 2026
03b95ba
sembr src/diagnostics/translation.md
tshepang Feb 24, 2026
cdfa734
sembr src/diagnostics/translation.md
tshepang Feb 24, 2026
dbbca6f
sembr src/overview.md
tshepang Feb 24, 2026
8c8856f
split that
tshepang Feb 24, 2026
2fe1a3b
sembr src/building/bootstrapping/what-bootstrapping-does.md
tshepang Feb 24, 2026
49e1fb9
improve building/bootstrapping/what-bootstrapping-does.md
tshepang Feb 24, 2026
b4d7d43
sembr src/debugging-support-in-rustc.md
tshepang Feb 24, 2026
7718cb1
improve debugging-support-in-rustc.md
tshepang Feb 24, 2026
c07987c
avoid abbreviation
tshepang Feb 24, 2026
49bd524
reflow
tshepang Feb 24, 2026
80fbb65
sembr src/diagnostics.md
tshepang Feb 24, 2026
bc60e77
improve diagnostics.md
tshepang Feb 24, 2026
7e58a5e
sembr src/macro-expansion.md
tshepang Feb 24, 2026
fad53c4
on_unimplemented: split structs and implementations
mejrs Jan 22, 2026
f944436
port over diagnostic::on_unimplemented
mejrs Feb 2, 2026
009937e
Due to attr parsing port, we do not attempt to recover from invalid s…
mejrs Feb 8, 2026
cfc2468
Port rustc_on_unimplemented attribute
mejrs Feb 14, 2026
8d7aa5e
Port diagnostic::on_const
mejrs Feb 16, 2026
e806930
Delete unused code
mejrs Feb 16, 2026
5f9a365
Dele e0231
mejrs Feb 16, 2026
9c68ea0
Move diagnostic formatting logic to rustc_hir
mejrs Feb 16, 2026
5abb009
Warn on duplicate parent label
mejrs Feb 17, 2026
dc97f4d
Still finalize a on_const attribute if it is malformed
mejrs Feb 17, 2026
b91417b
Fix impossible doc link
mejrs Feb 17, 2026
9feb4f6
Move do_not_recommend to diagnostic folder
mejrs Feb 17, 2026
7edff00
Split derive attribute
mejrs Feb 17, 2026
8a3377b
Remove redundant import
mejrs Feb 17, 2026
6a72924
Explain early return in parser
mejrs Feb 17, 2026
01192eb
use raw string literal
mejrs Feb 17, 2026
ee08bc3
address feedback
mejrs Feb 19, 2026
16661a1
Use proper find_attr syntax
mejrs Feb 23, 2026
b4644fd
fix error on missing value for -C flags
RalfJung Feb 24, 2026
99a4aa1
consistently use is_deprecated_and_do_nothing
RalfJung Feb 24, 2026
0b14bd4
Rebase on new #[feature] parsing
mejrs Feb 24, 2026
aa0f49d
whitespace
tshepang Feb 24, 2026
3ff689c
reflow
tshepang Feb 24, 2026
6ccd682
sembr src/notification-groups/about.md
tshepang Feb 24, 2026
2634de2
sembr src/notification-groups/arm.md
tshepang Feb 24, 2026
e8c4627
sembr src/notification-groups/emscripten.md
tshepang Feb 24, 2026
3c9f81a
reflow
tshepang Feb 24, 2026
43dfa86
sembr src/notification-groups/loongarch.md
tshepang Feb 24, 2026
8433606
sembr src/notification-groups/risc-v.md
tshepang Feb 24, 2026
8c3b46d
sembr src/notification-groups/rust-for-linux.md
tshepang Feb 24, 2026
b64c3e8
sembr src/notification-groups/wasi.md
tshepang Feb 24, 2026
c3f9012
sembr src/notification-groups/windows.md
tshepang Feb 24, 2026
03bee83
sembr src/ty.md
tshepang Feb 24, 2026
fb13b33
extraneous word
tshepang Feb 24, 2026
9582575
a more natural flow
tshepang Feb 24, 2026
1a7e191
improve ty.md
tshepang Feb 24, 2026
eeb3c1e
sembr src/diagnostics/diagnostic-structs.md
tshepang Feb 24, 2026
cf7b0d9
add json logging
jdonszelmann Feb 19, 2026
70fe53f
add logging to a file
jdonszelmann Feb 20, 2026
0b3366b
reflow
tshepang Feb 24, 2026
501e5a9
sembr src/const-generics.md
tshepang Feb 24, 2026
e8d886a
improve const-generics.md
tshepang Feb 24, 2026
1576cfc
sembr src/feature-gate-check.md
tshepang Feb 24, 2026
8ab2737
sembr src/feature-gates.md
tshepang Feb 24, 2026
d54444d
sembr src/syntax-intro.md
tshepang Feb 24, 2026
814e93b
sembr src/ty-module/binders.md
tshepang Feb 24, 2026
5c8f707
improve ty-module/binders.md
tshepang Feb 24, 2026
3f375ff
document logging envvars in devguide
jdonszelmann Feb 24, 2026
0495449
overlong
tshepang Feb 24, 2026
40eaca2
sembr src/ty-module/binders.md
tshepang Feb 24, 2026
4eaa3d1
split
tshepang Feb 24, 2026
56b7900
sembr src/ty-module/instantiating-binders.md
tshepang Feb 24, 2026
9a19815
improve ty-module/instantiating-binders.md
tshepang Feb 24, 2026
a5655d0
sembr src/ty-module/param-ty-const-regions.md
tshepang Feb 24, 2026
95d13f0
improve ty-module/param-ty-const-regions.md
tshepang Feb 24, 2026
a283471
Merge pull request #2784 from rust-lang/tshepang/sembr
tshepang Feb 24, 2026
9f242b1
Rollup merge of #152176 - JamieCunliffe:neon-str-contains, r=Mark-Sim…
JonathanBrouwer Feb 24, 2026
31f0dea
Rollup merge of #152657 - joboet:move_pal_exit, r=jhpratt
JonathanBrouwer Feb 24, 2026
8ab5ec9
Rollup merge of #152841 - Zalathar:unerased, r=nnethercote
JonathanBrouwer Feb 24, 2026
8583fea
Rollup merge of #152845 - jieyouxu:split-tidy-from-pr-test-jobs, r=ma…
JonathanBrouwer Feb 24, 2026
ba6430d
Rollup merge of #152897 - jdonszelmann:logging, r=jieyouxu
JonathanBrouwer Feb 24, 2026
0c18ab7
Rollup merge of #153009 - nnethercote:rm-define_feedable, r=oli-obk
JonathanBrouwer Feb 24, 2026
c82c805
Rollup merge of #151558 - mejrs:port_on_unimplemented, r=jdonszelmann…
JonathanBrouwer Feb 24, 2026
b8999f2
Rollup merge of #152492 - biscuitrescue:fix-array-valtree-wf, r=BoxyUwU
JonathanBrouwer Feb 24, 2026
d447f3d
Rollup merge of #152888 - ValorZard:async-drop-fix, r=oli-obk
JonathanBrouwer Feb 24, 2026
ce244ea
Rollup merge of #152988 - JonathanBrouwer:register-tool, r=jdonszelmann
JonathanBrouwer Feb 24, 2026
0fc8bb5
Rollup merge of #153018 - WaffleLapkin:must_use_improvements, r=jdons…
JonathanBrouwer Feb 24, 2026
ce194c9
Rollup merge of #153023 - rustbot:docs-update, r=ehuss
JonathanBrouwer Feb 24, 2026
68bff20
Rollup merge of #153033 - Zalathar:ensure, r=nnethercote
JonathanBrouwer Feb 24, 2026
7ed4e63
Rollup merge of #153043 - RalfJung:c-flag-missing, r=lqd
JonathanBrouwer Feb 24, 2026
b1a17e0
Rollup merge of #153045 - tshepang:rdg-sync, r=tshepang
JonathanBrouwer Feb 24, 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
15 changes: 14 additions & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3548,6 +3548,7 @@ dependencies = [
"rustc_lexer",
"rustc_macros",
"rustc_parse",
"rustc_parse_format",
"rustc_session",
"rustc_span",
"rustc_target",
Expand Down Expand Up @@ -4682,7 +4683,6 @@ dependencies = [
"rustc_macros",
"rustc_middle",
"rustc_next_trait_solver",
"rustc_parse_format",
"rustc_session",
"rustc_span",
"rustc_transmute",
Expand Down Expand Up @@ -5751,6 +5751,16 @@ dependencies = [
"tracing-core",
]

[[package]]
name = "tracing-serde"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1"
dependencies = [
"serde",
"tracing-core",
]

[[package]]
name = "tracing-subscriber"
version = "0.3.20"
Expand All @@ -5762,12 +5772,15 @@ dependencies = [
"once_cell",
"parking_lot",
"regex-automata",
"serde",
"serde_json",
"sharded-slab",
"smallvec",
"thread_local",
"tracing",
"tracing-core",
"tracing-log",
"tracing-serde",
]

[[package]]
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_attr_parsing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rustc_hir = { path = "../rustc_hir" }
rustc_lexer = { path = "../rustc_lexer" }
rustc_macros = { path = "../rustc_macros" }
rustc_parse = { path = "../rustc_parse" }
rustc_parse_format = { path = "../rustc_parse_format" }
rustc_session = { path = "../rustc_session" }
rustc_span = { path = "../rustc_span" }
rustc_target = { path = "../rustc_target" }
Expand Down
47 changes: 47 additions & 0 deletions compiler/rustc_attr_parsing/src/attributes/crate_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,50 @@ impl<S: Stage> CombineAttributeParser<S> for FeatureParser {
res
}
}

pub(crate) struct RegisterToolParser;

impl<S: Stage> CombineAttributeParser<S> for RegisterToolParser {
const PATH: &[Symbol] = &[sym::register_tool];
type Item = Ident;
const CONVERT: ConvertFn<Self::Item> = AttributeKind::RegisterTool;
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(ALL_TARGETS);
const TEMPLATE: AttributeTemplate = template!(List: &["tool1, tool2, ..."]);

fn extend(
cx: &mut AcceptContext<'_, '_, S>,
args: &ArgParser,
) -> impl IntoIterator<Item = Self::Item> {
let ArgParser::List(list) = args else {
cx.expected_list(cx.attr_span, args);
return Vec::new();
};

if list.is_empty() {
cx.warn_empty_attribute(cx.attr_span);
}

let mut res = Vec::new();

for elem in list.mixed() {
let Some(elem) = elem.meta_item() else {
cx.expected_identifier(elem.span());
continue;
};
if let Err(arg_span) = elem.args().no_args() {
cx.expected_no_args(arg_span);
continue;
}

let path = elem.path();
let Some(ident) = path.word() else {
cx.expected_identifier(path.span());
continue;
};

res.push(ident);
}

res
}
}
Loading
Loading