Bump rust-toolchain from 1.95.0 to 1.98.0 in /codex-rs
Bumps rust-toolchain from 1.95.0 to 1.98.0.
Release notes
Sourced from rust-toolchain's releases.
Rust 1.98.0
Language
- Allow shortening lifetime of
&mutwhen unsize-coercing, even in an invariant position. For example, you can now coerce aCell<&'long mut i32>to aCell<&'short mut dyn Send>. Such shortenings were already previously allowed when coercing a&mutto a&, or coercing a&to a&.- Add deny-by-default
invalid_runtime_symbol_definitionslint and warn-by-defaultsuspicious_runtime_symbol_definitionslint
- The lints currently specifically targets
coreruntime symbols likememcmp,memset,strlen, ... and is planned to be expanded in the next few releases.- Add warn-by-default
c_void_returnslint to checkcore::ffi::c_voidas a return typePlatform Support
- Add
powerpc64-unknown-linux-gnuelfv2as Tier 3- Add
aarch64-unknown-linux-pauthtestas Tier 3 target- Promote
thumbv7a-none-eabito Tier 2- Promote
thumbv7a-none-eabihfto Tier 2- Promote
thumbv7r-none-eabito Tier 2- Promote
thumbv7r-none-eabihfto Tier 2- Promote
thumbv8r-none-eabihfto Tier 2Refer to Rust's platform support page for more information on Rust's tiered platform support.
Libraries
- Change
Location<'_>lifetime to'staticinPanic[Hook]Info- Document panic in
RangeInclusive::from(legacy::RangeInclusive)- Document that
ManuallyDrop'sBoxinteraction has been fixed- Stabilize LoongArch CRC Intrinsics
- The
derivemacro is available at{core,std}::derive. This was previously unintentionally stabilized in 1.96, but is now explicitly accepted as a stabilized API.
- Please note that the MSRV for
{core,std}::derivewill be 1.96, and not 1.98.Stabilized APIs
... (truncated)
Changelog
Sourced from rust-toolchain's changelog.
Version 1.98.0 (2026-08-20)
Language
- Allow shortening lifetime of
&mutwhen unsize-coercing, even in an invariant position. For example, you can now coerce aCell<&'long mut i32>to aCell<&'short mut dyn Send>. Such shortenings were already previously allowed when coercing a&mutto a&, or coercing a&to a&.- Add deny-by-default
invalid_runtime_symbol_definitionslint and warn-by-defaultsuspicious_runtime_symbol_definitionslint
- The lints currently specifically targets
coreruntime symbols likememcmp,memset,strlen, ... and is planned to be expanded in the next few releases.- Add warn-by-default
c_void_returnslint to checkcore::ffi::c_voidas a return typePlatform Support
- Add
powerpc64-unknown-linux-gnuelfv2as Tier 3- Add
aarch64-unknown-linux-pauthtestas Tier 3 target- Promote
thumbv7a-none-eabito Tier 2- Promote
thumbv7a-none-eabihfto Tier 2- Promote
thumbv7r-none-eabito Tier 2- Promote
thumbv7r-none-eabihfto Tier 2- Promote
thumbv8r-none-eabihfto Tier 2Refer to Rust's platform support page for more information on Rust's tiered platform support.
Libraries
- Change
Location<'_>lifetime to'staticinPanic[Hook]Info- Document panic in
RangeInclusive::from(legacy::RangeInclusive)- Document that
ManuallyDrop'sBoxinteraction has been fixed- Stabilize LoongArch CRC Intrinsics
- The
derivemacro is available at{core,std}::derive. This was previously unintentionally stabilized in 1.96, but is now explicitly accepted as a stabilized API.
- Please note that the MSRV for
{core,std}::derivewill be 1.96, and not 1.98.Stabilized APIs
... (truncated)
Commits
88d9e12Auto merge of #161313 - cuviper:stable-next, r=cuviper8f6f43cupdate relnotesc6d0dd0Bump stable channel824ef7eRevert "riscv: promote d, e, and f target_features to CfgStableToggleUnstable"04eb0d7Auto merge of #161039 - flip1995:clippy-beta-backport, r=Mark-Simulacrum6cc2858Fix ICE when resolving local inunnecessary_unwrap_unchecked(#17353)d440739unnecessary_unwrap_unchecked: don't trigger inside the_uncheckedfn (#17...e1114a1Auto merge of #160714 - cuviper:beta-next, r=cuviperebcacaa[beta-1.98] Update cargo submodule33c0be1Update attr name for#[unroll]in Unstable Book- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Upgrade codex-rs Rust toolchain from 1.95.0 to 1.98.0 to track stable and pick up compiler, clippy, and rustfmt updates. Old behavior: builds used 1.95.0. New behavior: builds require 1.98.0. Side effects: new rustc/clippy lints may surface warnings and can fail CI if warnings are denied.
- Review/rollout
- Ensure CI installs 1.98.0 with components:
clippy,rustfmt,rust-src. - Run with 1.98.0 locally: format,
clippy, and tests; address any new warnings if-D warningsis enabled. - Treat this as an MSRV bump for
codex-rsto 1.98.0.
- Ensure CI installs 1.98.0 with components: