Skip to content

Update toolchain to nightly-2025-03-08#84

Merged
coord-e merged 1 commit into
mainfrom
coord-e/claude/nightly-2025-03-08
May 11, 2026
Merged

Update toolchain to nightly-2025-03-08#84
coord-e merged 1 commit into
mainfrom
coord-e/claude/nightly-2025-03-08

Conversation

@coord-e
Copy link
Copy Markdown
Owner

@coord-e coord-e commented May 10, 2026

#26

@coord-e coord-e force-pushed the coord-e/claude/nightly-2025-03-08 branch 3 times, most recently from f7b37ba to 53eed0d Compare May 10, 2026 16:00
@coord-e coord-e marked this pull request as ready for review May 10, 2026 16:00
@coord-e coord-e requested a review from Copilot May 10, 2026 16:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project to Rust nightly-2025-03-08 and adjusts the codebase to match the corresponding rustc internal API changes (notably rustc_abi, TypingEnv, HIR helpers, and token APIs), to restore compatibility with rust-analyzer and align with current nightly docs.

Changes:

  • Bump toolchain from nightly-2024-09-08 to nightly-2025-03-08.
  • Migrate multiple rustc-internal API usages (e.g., ParamEnvTypingEnv, rustc_target::abi::*rustc_abi::*, updated HIR accessors).
  • Update annotation/token parsing and MIR/dataflow helpers to newer token and dataflow interfaces.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rust-toolchain.toml Bumps pinned nightly toolchain to 2025-03-08.
src/main.rs Updates rustc_driver callback signatures and compiler entrypoint API usage.
src/lib.rs Adds extern crate rustc_abi for new ABI imports.
thrust-macros/src/lib.rs Uses is_some_and for trait-segment matching under newer std/nightly.
src/rty.rs Switches VariantIdx import source and simplifies Pretty impl lifetimes.
src/rty/params.rs Simplifies Pretty impl lifetimes for references.
src/refine/template.rs Replaces ParamEnv normalization with TypingEnv and updates ABI enum usage.
src/refine/env.rs Moves ABI indices to rustc_abi, adjusts Pretty impls, and boxes PlaceType in Path.
src/refine/basic_block.rs Simplifies Pretty impl lifetimes.
src/pretty.rs Simplifies Pretty impl lifetimes for PrettySlice.
src/chc.rs Simplifies Pretty impl lifetimes across multiple CHC types.
src/annot.rs Reworks token cursoring to avoid removed cursor APIs and updates token-kind matching.
src/analyze.rs Updates HIR body access helper usage.
src/analyze/annot.rs Switches to rustc_hir::Attribute and updates token extraction/splitting.
src/analyze/annot_fn.rs Updates HIR body access and normalization to TypingEnv.
src/analyze/crate_.rs Updates token-stream iteration for raw command annotations and lifetime kind matching.
src/analyze/did_cache.rs Updates HIR item iteration/access and moves FieldIdx import to rustc_abi.
src/analyze/local_def.rs Updates MIR/dataflow APIs, HIR helpers, BitSet → DenseBitSet, and transmute-based box-deref pattern matching.
src/analyze/basic_block.rs Updates layout/const-eval to TypingEnv, adapts cast matching, and adds handling for Transmute.
src/analyze/basic_block/drop_point.rs BitSet → DenseBitSet and adapts visitor traversal to newer MIR visitation APIs.
src/analyze/basic_block/visitor/rust_call.rs Updates ABI matching to rustc_abi::ExternAbi.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/analyze/basic_block.rs Outdated
@coord-e coord-e force-pushed the coord-e/claude/nightly-2025-03-08 branch 2 times, most recently from 498c1d0 to ba2f6fd Compare May 11, 2026 13:26
@coord-e coord-e requested a review from Copilot May 11, 2026 13:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Comment thread src/analyze/basic_block.rs Outdated
API migrations:
- rustc_index::bit_set::BitSet → DenseBitSet (aliased as BitSet)
- rustc_target::abi → rustc_abi for FieldIdx, VariantIdx
- rustc_target::spec::abi::Abi → rustc_abi::ExternAbi
- MoveDataParamEnv removed; replaced with tuple (MoveData, TypingEnv)
- ParamEnv::reveal_all()/with_reveal_all_normalized() → TypingEnv::fully_monomorphized()
- ParamEnv usages in const_eval_resolve/Instance::try_resolve/
  normalize_erasing_regions/layout_of → TypingEnv
- tcx.param_env_reveal_all_normalized() → TypingEnv::fully_monomorphized()
- MirVisitable removed; replaced with explicit visit_statement/visit_terminator calls
- BinOpToken removed; token kinds flattened (BinOp(X) → X)
- TokenKind::Not → TokenKind::Bang
- TokenStream::trees() → TokenStream::iter()
- RefTokenTreeCursor removed; replaced with custom TokenCursor
- hir::Map methods moved to TyCtxt: body_owned_by → hir_body_owned_by,
  maybe_body_owned_by → hir_maybe_body_owned_by, body → hir_body,
  items → hir_free_items, item → hir_item
- rustc_hir::Attribute is now enum (Parsed/Unparsed) instead of rustc_ast::Attribute
- into_engine removed from dataflow analyses → iterate_to_fixpoint(tcx, body, None)
- MoveData::gather_moves takes 3 args (no param_env)
- ItemKind::Fn changed from tuple to struct variant
- PointerCoercion::ReifyFnPointer now has 2 fields
- rustc_driver::RunCompiler → rustc_driver::run_compiler
- Callbacks::after_analysis now takes TyCtxt directly
- Callbacks::after_crate_root_parsing now takes &mut Crate
- CastKind::Transmute now generated for Box pointer internals
- thrust-macros: syn::Path PartialEq removed; use token string comparison

https://claude.ai/code/session_01URrtbSTUKNrVKLK2MNLBFc
@coord-e coord-e force-pushed the coord-e/claude/nightly-2025-03-08 branch from ba2f6fd to aa544aa Compare May 11, 2026 13:35
@coord-e coord-e merged commit b2dfe1b into main May 11, 2026
6 checks passed
@coord-e coord-e deleted the coord-e/claude/nightly-2025-03-08 branch May 11, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants