Commit Graph

3829 Commits

Author SHA1 Message Date
Jacob Pratt
5d2cf8f4f8 Rollup merge of #160978 - mejrs:resolve_path, r=nnethercote
move resolve_path to Session inherent method

rustc_passes depends on rustc_expand just for this, which is imo unnecessary.
2026-08-12 20:17:34 -04:00
Marcelo Dominguez
4d52fe93a2 Add 3-pass compilation to support generics and remove no_mangle attr 2026-08-12 18:06:00 +03:00
mejrs
b9e9138428 move resolve_path to Session inherent method 2026-08-12 12:59:52 +02:00
mejrs
5c8e769df5 remove libc dependency 2026-08-11 20:34:50 +02:00
mejrs
65d9d0e3aa split off hir::definitions 2026-08-11 17:59:21 +02:00
mejrs
b588ef3b37 Move rustc_session cstore module to its own crate 2026-08-11 17:12:12 +02:00
Jonathan Brouwer
62641fab03 Rollup merge of #160846 - mejrs:more_attrs, r=JonathanBrouwer
use rustc_attr_ir imports more

For now this is only for crates that (barely) don't actually depend on rustc_hir

r? @JonathanBrouwer
2026-08-10 13:45:46 +02:00
mejrs
e35d06a821 rustc_builtin_macros: depend on rustc_attr_ir instead 2026-08-10 13:08:08 +02:00
mejrs
8c85df353e rustc_expand: depend more on rustc_attr_ir 2026-08-10 13:08:08 +02:00
mejrs
1c9d8461d6 rustc_ast_passes: use rustc_attr_ir imports 2026-08-10 13:07:48 +02:00
mejrs
12674a1f58 rustc_session: minimize rustc_hir dependencies 2026-08-10 12:01:06 +02:00
mejrs
ef151d65d2 rustc_attr_parsing: depend on rustc_attr_ir instead of rustc_hir 2026-08-10 11:43:54 +02:00
bors
8a2fbe3ea8 Auto merge of #160830 - jhpratt:rollup-IMvXhX3, r=jhpratt
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#160675 (bootstrap: Remove `PATH_REMAP` from command-line selector handling )
 - rust-lang/rust#160807 (Update rustc crate rkyv to 0.8.18)
 - rust-lang/rust#159690 (Clarify `--remap-path-scope` impact on `rustc` metadata)
 - rust-lang/rust#160560 (Add nightly-only support for Cargo unremap trim-paths files in `rust-gdb`)
 - rust-lang/rust#160608 (normalization rework: clean up projection_ty_core)
 - rust-lang/rust#160785 (Get rid of LLM disclosure checkboxes)
 - rust-lang/rust#160804 (Change .expect message on net/parser to follow precondition style)
 - rust-lang/rust#160805 (`extern "custom"`: add tests)
 - rust-lang/rust#160816 (Mark const ptr methods and free functions as inline(always) to match *mut)
 - rust-lang/rust#160820 (Stabilize fs_set_times)
 - rust-lang/rust#160826 (Rename parse_delimited_token_tree in cfg_select)
2026-08-10 06:25:17 +00:00
Chris Denton
4641990929 Remove ensure_sufficient_stack 2026-08-09 19:58:29 +00:00
Romain Perier
7ee723b9db Update rustc crate rkyv to 0.8.18 [SECURITY]
This fixes RUSTSEC-2026-0233, RUSTSEC-2026-0234 and RUSTSEC-2026-0235.
2026-08-09 15:00:49 +02:00
mejrs
af4c79b260 Move attributes out of rustc_hir 2026-08-08 11:43:20 +02:00
Philipp Krones
9e7db05c30 Update Cargo.lock 2026-08-07 13:51:31 +02:00
bors
87212cef77 Auto merge of #160559 - JonathanBrouwer:rollup-grEEuN1, r=JonathanBrouwer
Rollup of 25 pull requests

Successful merges:

 - rust-lang/rust#158147 (std: fix stack buffer overflow in Windows junction_point)
 - rust-lang/rust#160130 (Select cache values to verify by key fingerprint, not value fingerprint)
 - rust-lang/rust#160343 (Rename `OutlivesPredicate` to `OutlivesClause`)
 - rust-lang/rust#160360 (Remove rustc_middle dependency on rustc_hir_pretty)
 - rust-lang/rust#160387 (rustc_codegen_ssa: Correctly apply the static `--jobs-backend` limit to backend parallelism)
 - rust-lang/rust#160422 (move mir-opt miri tests to CI logic)
 - rust-lang/rust#160444 (Avoid resolving path keywords outside `TypeNS`)
 - rust-lang/rust#160510 (Resolver: (un)tracked borrows for `CmRefCell` made safe by unsafe speculative flag)
 - rust-lang/rust#155424 ([blocked] Link to proposed LLM policy in CONTRIBUTING and pull request template)
 - rust-lang/rust#158726 (std: move futex implementations into sys::sync::futex)
 - rust-lang/rust#158762 (Emit thumb code on VEX V5)
 - rust-lang/rust#159225 (Split IncrCompSession out of Session)
 - rust-lang/rust#159820 (Make the `rustc_unsafe_specialization_marker` attribute actually `unsafe`)
 - rust-lang/rust#160198 (Rework `smallest_range_containing` to handle duplicates)
 - rust-lang/rust#160362 (Split `SpannedTypeVisitor` into its own crate, `rustc_ty_walk`)
 - rust-lang/rust#160390 (autodiff: Handle slice-tailed DSTs in type trees)
 - rust-lang/rust#160420 (Suggest `cast_signed()` for overflowing signed integer literals)
 - rust-lang/rust#160501 (Add bootstrap CLI snapshot test for testing miri)
 - rust-lang/rust#160516 (Add regression test for HRTB projection in closure)
 - rust-lang/rust#160520 (Add some tests for specialization)
 - rust-lang/rust#160522 (fix(bootstrap): Normalize the names of proc macro dependency crates)
 - rust-lang/rust#160523 (Add regression test for opaque type)
 - rust-lang/rust#160531 (docs: fix typo in AllowExprMetavar comment)
 - rust-lang/rust#160538 (Update expect messages in tcp.rs doc examples to follow the style guide)
 - rust-lang/rust#160548 (bootstrap: Register `coverage-map` and `coverage-run` aliases via a separate step)
2026-08-05 14:34:28 +00:00
Jonathan Brouwer
4c08ad5b0c Rollup merge of #160362 - joshtriplett:ty-walk-crate, r=fee1-dead
Split `SpannedTypeVisitor` into its own crate, `rustc_ty_walk`

`rustc_privacy` pulls in all of `rustc_ty_utils`, but only wants `SpannedTypeVisitor` and `walk_types`. Move those to a small `rustc_ty_walk` crate.

This allows `rustc_privacy` to start building much sooner.
2026-08-05 13:36:14 +02:00
bors
22950ab9e2 Auto merge of #159026 - WaffleLapkin:fallback-refactorings, r=lcnr
Type fallback refactorings





- Don't merge different kinds of infer variables into `Ty` before matching them back
- Do fallback only on root vars (this is semantically equivalent to what we currently do; unifying any of the infer vars from the same equivalence class necesserily affects all of them) (this makes https://github.com/rust-lang/rust/pull/159003 a bit less hacky though)
- Do some simplification that has been allowed by the previous changes

cc @lcnr
2026-08-05 11:34:06 +00:00
mejrs
180c6379b8 Remove rustc_middle dependency on rustc_hir_pretty
There is a `impl PpAnn for TyCtxt`  that is unneeded. None of the big crates (middle, trait_selection) actually do any hir pretty printing so it can be removed and can either be implemented for local structs elsewhere or done by casting to `&dyn PpAnn` instead.
2026-08-04 19:04:34 +02:00
Josh Triplett
82317b3f68 Split SpannedTypeVisitor into its own crate, rustc_ty_walk
`rustc_privacy` pulls in all of `rustc_ty_utils`, but only wants
`SpannedTypeVisitor` and `walk_types`. Move those to a small
`rustc_ty_walk` crate.

This allows `rustc_privacy` to start building much sooner.
2026-08-03 21:47:29 -07:00
Ralf Jung
6daa152ce8 bump tracing-tree 2026-08-03 14:50:11 +02:00
Jonathan Brouwer
5a7c357e43 Rollup merge of #159756 - Zalathar:shim-utils, r=Kobzol
bootstrap: Move some shared source files into a new `shim_utils` crate

Bootstrap's `rustc` and `rustdoc` shims are mostly self-contained, but they do share some code with each other or with other bootstrap tools.

Historically that sharing was achieved using `#[path]` attributes pointing to the shared files. That's unusual, making the code harder to navigate, and making dependencies and warnings harder to manage. It also causes problems for rust-analyzer, which currently struggles with source files outside the crate root.

This PR therefore takes two such source files, and moves them into a new `shim_utils` crate, which can then be used as a normal crate-path dependency. That new crate is separate from the existing `build_helper` crate, since that crate contains other code that is not of interest to the shims specifically.

Former paths of the files that have been moved:
- `src/bootstrap/src/utils/shared_helpers.rs`
- `src/build_helper/src/arg_file_command.rs`

---
Relevant PRs that created these shared source files:
- https://github.com/rust-lang/rust/pull/127108
- https://github.com/rust-lang/rust/pull/155439
---

r? Kobzol (or bootstrap)
2026-08-02 21:56:04 +02:00
Jonathan Brouwer
f650e5c0fe Rollup merge of #160318 - Zalathar:thorin, r=Mark-Simulacrum
Bump thorin-dwp (0.10), gimli (0.33), and object (0.38.1)

Originally, the hope was that this would reduce duplication of `object` within the compiler.

In practice, it turns out that this merely bumps the object major-version-set from {0.36, 0.37} to {0.37, 0.38}.

(The holdout for object@0.37 is `ar_archive_writer`, which does have a newer release available. But that would end up pulling in object@0.39 instead.)

There is still an object@0.36 entry in Cargo.lock, but that comes via `ui_test` which is a dev-dependency for clippy and miri.
2026-08-02 21:56:04 +02:00
Zalathar
44530444c2 Move some shared source files into a new shim_utils crate
Bootstrap's `rustc` and `rustdoc` shims are mostly self-contained, but they do
share some code with each other or with other bootstrap tools.

Historically that sharing was achieved using `#[path]` attributes pointing to
the shared files. That's unusual, making the code harder to navigate, and
making dependencies and warnings harder to manage. It also causes problems for
rust-analyzer, which currently struggles with source files outside the crate
root.

This PR therefore takes two such source files, and moves them into a new
`shim_utils` crate, which can then be used as a normal crate-path dependency.
That new crate is separate from the existing `build_helper` crate, since that
crate contains other code that is not of interest to the shims specifically.

Former paths of the files that have been moved:
- `src/bootstrap/src/utils/shared_helpers.rs`
- `src/build_helper/src/arg_file_command.rs`
2026-08-02 11:45:08 +10:00
Josh Triplett
425c3122cf rustc_borrowck: Eliminate dependency on rustc_traits
`rustc_borrowck` now only uses `rustc_traits` for one helper that it
re-exports from `rustc_trait_selection`. Use the helper directly from
`rustc_trait_selection`, and eliminate the dependency.
2026-08-01 16:04:47 -07:00
Jonathan Brouwer
3a9139189b Rollup merge of #160333 - blyxyas:reduce-deps, r=mejrs
Remove itertools dependency from `rustc_ast_pretty`

3 Second optimization in the `rustc_ast_pretty` module compiletimes (13.57s -> 10.58s)! Not much, but it's honest work :)
Found by an experiment I'm doing, related with Incremental Systems Rethought project goal.

So, cc https://github.com/rust-lang/rust-project-goals/issues/641

r? @jackh726
2026-08-01 15:56:44 +02:00
Zalathar
83d6b9657d Bump thorin-dwp (0.10), gimli (0.33), and object (0.38.1) 2026-08-01 20:18:15 +10:00
Guillaume Gomez
c9681b2eea Update minifier version to 0.4.0 2026-08-01 01:29:02 +02:00
Jonathan Brouwer
a621f18f80 Rollup merge of #160085 - mejrs:bye_lints, r=JonathanBrouwer,mu001999
Remove various superfluous lint attributes
2026-07-31 16:02:32 +02:00
Alejandra Gonzalez
68ff3f2215 Remove itertools dependency from rustc_ast_pretty 2026-07-31 14:20:53 +02:00
mejrs
9a171503fd rustc_macros: ensure deterministic output 2026-07-29 14:36:30 +02:00
Jonathan Brouwer
6d0520c312 Rollup merge of #160069 - renovate-bot:renovate/crate-tracing-subscriber-vulnerability, r=jieyouxu
Update Rust crate tracing-subscriber to v0.3.23 [SECURITY]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tracing-subscriber](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tracing)) | dependencies | patch | `0.3.22` → `0.3.23` |
| [tracing-subscriber](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tracing)) | dev-dependencies | patch | `0.3.22` → `0.3.23` |

---

###  Tracing logging user input may result in poisoning logs with ANSI escape sequences
[CVE-2025-58160](https://nvd.nist.gov/vuln/detail/CVE-2025-58160) / [GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5)

<details>
<summary>More information</summary>

#### Details
##### Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

- Manipulate terminal title bars
- Clear screens or modify terminal display
- Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

##### Patches

`tracing-subscriber` version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.

##### Workarounds

Avoid printing logs to terminal emulators without escaping ANSI control sequences.

##### References

https://www.packetlabs.net/posts/weaponizing-ansi-escape-sequences/

##### Acknowledgments

We would like to thank [zefr0x](http://github.com/zefr0x) who responsibly reported the issue at `security@tokio.rs`.

If you believe you have found a security vulnerability in any tokio-rs project, please email us at `security@tokio.rs`.

#### Severity
- CVSS Score: 2.3 / 10 (Low)
- Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

#### References
- [https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5)
- [https://nvd.nist.gov/vuln/detail/CVE-2025-58160](https://nvd.nist.gov/vuln/detail/CVE-2025-58160)
- [https://rustsec.org/advisories/RUSTSEC-2025-0055.html](https://rustsec.org/advisories/RUSTSEC-2025-0055.html)
- [https://github.com/advisories/GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5)

This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>tokio-rs/tracing (tracing-subscriber)</summary>

### [`v0.3.23`](https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.23): tracing-subscriber 0.3.23

[Compare Source](https://redirect.github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.22...tracing-subscriber-0.3.23)

##### Fixed

- Allow ansi sanitization to be disabled ([#&rust-lang/rust#8203;3484])

[#&rust-lang/rust#8203;3484]: https://redirect.github.com/tokio-rs/tracing/pull/3484

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/rust).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2026-07-28 21:08:05 +02:00
Mend Renovate
32246e52f8 Update Rust crate tracing-subscriber to v0.3.23 [SECURITY] 2026-07-28 11:53:34 +00:00
Nicholas Nethercote
94a8720a77 Shrink GoalStalledOn
`PendingObligations` is a `ThinVec` containing a pair
`(PredicateObligation<'tcx>, Option<GoalStalledOn<TyCtxt<'tcx>>>)`. This
pair is currently 136 bytes. This is more than 128 bytes, which means
that LLVM uses (slow) `memcpy` to move the elements.

This commit shrinks `GoalStalledOn` by changing its two `Vec` fields to
`ThinVec`. This shrinks the pair from 136 bytes to 104 bytes, under the
`memcpy` threshold.

The use of `ThinVec` in `GoalStalledOn` forces us to use `ThinVec` in a
number of other places. Some of these required the thin-vec `unstable`
feature for `may_dangle` support.

The commit also adds some size assertions, to prevent backsliding.
2026-07-28 09:23:37 +10:00
Jonathan Brouwer
447eef1523 Rollup merge of #159974 - panstromek:update-thin-vec, r=mejrs
Update thinvec to 0.2.19

It contains `may_dangle` Drop impl under a feature flag. This allows us to use it in a lot more places, notable in types that hold `&'tcx` references. This would previously fail in borrowck in arena code.

We have to enable  its "unstable" feature for this. That also enables `TrustedLen` impl, which is behind unstable flag, too. I left the flag disabled, because it regressed next-solver benchmarks, but that will be fixed in PR that needs this flag (see the comment: https://github.com/rust-lang/rust/pull/159974#issuecomment-5091132427)
2026-07-27 19:24:50 +02:00
panstromek
02a54aa3ed update thinvec to latest version 2026-07-27 10:33:18 +02:00
Jacob Pratt
c05b8a9d7b Rollup merge of #159676 - alexcrichton:update-wasm-component-ld, r=Mark-Simulacrum
Update wasm-component-ld to 0.5.27

Keeping up-to-date
2026-07-26 00:21:53 -04:00
Jacob Pratt
0e238fd6c3 Rollup merge of #138618 - nbdd0121:asm_const_ptr, r=bjorn3
Support using const pointers in asm `const` operand

Implements [RFC#3848](https://github.com/rust-lang/rfcs/pull/3848) with tracking issue rust-lang/rust#128464

This adds support of const pointers for asm `const` in addition to plain integers.

The inline `asm!` support is implemented using `i` constraint, and the `global_asm!` and `naked_asm!` support is implemented by inserting `symbol + offset` and make `symbol` compiler-used. For unnamed consts, it will create additional internal & hidden symbols so that they can be referenced by global_asm.

~~The feature is also implemented for GCC backend but it's untested.~~ Tested now.
2026-07-26 00:21:39 -04:00
bors
6f72b5dd5f Auto merge of #143208 - Mark-Simulacrum:skip-noop-cleanup, r=oli-obk
Apply RemoveNoopLandingPads post-monomorphization



On Cargo this cuts ~5% of the LLVM IR lines we generate (measured with -Cno-prepopulate-passes).

Closes https://github.com/rust-lang/rust/issues/159399.
2026-07-22 19:33:32 +00:00
Gary Guo
1fd34e44be Give codegen units symbol names that backend can use 2026-07-22 14:34:42 +01:00
Shoyu Vanilla
997bde3d79 Bump ena 2026-07-22 13:47:20 +02:00
Alex Crichton
10100f263c Update wasm-component-ld to 0.5.27
Keeping up-to-date
2026-07-21 10:30:17 -07:00
Jieyou Xu
f271be3552 Merge commit 'd427a7c1adc8afd86a7ebf3daec769a434cb2307' into rustfmt-subtree-update 2026-07-21 21:17:31 +08:00
Jieyou Xu
d427a7c1ad Bump rustfmt version to 1.10.0 2026-07-21 14:21:01 +02:00
Romain Perier
2c380b43d8 Update rustc crate crossbeam-epoch to 0.9.20 [SECURITY]
See https://github.com/crossbeam-rs/crossbeam/pull/1276
2026-07-19 16:50:38 +02:00
Mark Rousskov
f513294c00 Remove no-op cleanups on MIR post-monomorphization
This speeds up LLVM and improves codegen overall. As an example, for
cargo this cuts ~5% of the LLVM IR lines we generate (measured with
-Cno-prepopulate-passes).
2026-07-18 10:21:15 -04:00
Jonathan Brouwer
1e4c3871fe Rollup merge of #159193 - Kobzol:compiletest-clap, r=jieyouxu,Zalathar
Port compiletest's CLI to clap

Suggested this in https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/compiletest.20CLI.20parsing/with/609693929.

My main motivation was to separate CLI arguments and the `Config` structure, because we derive a lot of non-CLI data for the latter struct, but before it was too tied to the CLI.
This PR is the first step towards that, in follow-up PRs I will clean up the `Config`.

The move itself was *very* boilerplate-y, so I decided to use Claude to perform the mechanical port (the first commit).
Then I went through all the flags, checked that they correspond to the old ones and should be parseable by clap.
I also did some light cleanups to remove extra parsing there.
This is in the second commit (no AI was involved in that).

This PR increases the dependency count of `compiletest` by 4. I think that's fine, and on CI it should be cached by `sccache` anyway.

r? @jieyouxu
2026-07-16 21:01:53 +02:00
Jonathan Brouwer
264672252c Rollup merge of #159395 - renovate-bot:renovate/crate-tracing-subscriber-vulnerability, r=jieyouxu
Update Rust crate tracing-subscriber [SECURITY]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tracing-subscriber](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tracing)) | dependencies | patch | `0.3.20` → `0.3.22` |
| [tracing-subscriber](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tracing)) | dependencies | patch | `0.3.19` → `0.3.20` |
| [tracing-subscriber](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tracing)) | dev-dependencies | patch | `0.3.20` → `0.3.22` |

---

###  Tracing logging user input may result in poisoning logs with ANSI escape sequences
[CVE-2025-58160](https://nvd.nist.gov/vuln/detail/CVE-2025-58160) / [GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5)

<details>
<summary>More information</summary>

#### Details
##### Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

- Manipulate terminal title bars
- Clear screens or modify terminal display
- Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

##### Patches

`tracing-subscriber` version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.

##### Workarounds

Avoid printing logs to terminal emulators without escaping ANSI control sequences.

##### References

https://www.packetlabs.net/posts/weaponizing-ansi-escape-sequences/

##### Acknowledgments

We would like to thank [zefr0x](http://github.com/zefr0x) who responsibly reported the issue at `security@tokio.rs`.

If you believe you have found a security vulnerability in any tokio-rs project, please email us at `security@tokio.rs`.

#### Severity
- CVSS Score: 2.3 / 10 (Low)
- Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

#### References
- [https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5)
- [https://nvd.nist.gov/vuln/detail/CVE-2025-58160](https://nvd.nist.gov/vuln/detail/CVE-2025-58160)
- [https://rustsec.org/advisories/RUSTSEC-2025-0055.html](https://rustsec.org/advisories/RUSTSEC-2025-0055.html)
- [https://github.com/advisories/GHSA-xwfj-jgwm-7wp5](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5)

This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-xwfj-jgwm-7wp5) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>tokio-rs/tracing (tracing-subscriber)</summary>

### [`v0.3.22`](https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.22): tracing-subscriber 0.3.22

[Compare Source](https://redirect.github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.21...tracing-subscriber-0.3.22)

##### Important

The previous release [0.3.21] was yanked as it depended explicitly on
[tracing-0.1.42], which was yanked due to a breaking change (see [#&rust-lang/rust#8203;3424] for
details). This release contains all the changes from the previous release, plus
an update to the newer version of `tracing`.

##### Changed

- `tracing`: updated to 0.1.43 ([#&rust-lang/rust#8203;3427])

[#&rust-lang/rust#8203;3424]: https://redirect.github.com/tokio-rs/tracing/pull/3424

[#&rust-lang/rust#8203;3427]: https://redirect.github.com/tokio-rs/tracing/pull/3427

[0.3.21]: https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.21

[tracing-0.1.42]: https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-0.1.42

### [`v0.3.21`](https://redirect.github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.21): tracing-subscriber 0.3.21

[Compare Source](https://redirect.github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.20...tracing-subscriber-0.3.21)

##### Fixed

- Change registry exit to decrement local span ref only ([#&rust-lang/rust#8203;3331])
- Make Layered propagate `on_register_dispatch` ([#&rust-lang/rust#8203;3379])

##### Changed

- `tracing`: updated to 0.1.42 ([#&rust-lang/rust#8203;3418])

##### Performance

- Remove `clone_span` on enter ([#&rust-lang/rust#8203;3289])

##### Documented

- Fix a few small things in the format module ([#&rust-lang/rust#8203;3339])
- Fix extra closing brace in layer docs ([#&rust-lang/rust#8203;3350])
- Fix link in `FmtSpan` docs ([#&rust-lang/rust#8203;3411])

[#&rust-lang/rust#8203;3289]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3289

[#&rust-lang/rust#8203;3331]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3331

[#&rust-lang/rust#8203;3339]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3339

[#&rust-lang/rust#8203;3350]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3350

[#&rust-lang/rust#8203;3379]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3379

[#&rust-lang/rust#8203;3411]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3411

[#&rust-lang/rust#8203;3418]: https://redirect.github.com/tokio-rs/tracing/pull/#&rust-lang/rust#8203;3418

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/rust).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjUuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI2NS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2026-07-16 21:01:52 +02:00