Skip to content

Update nightly toolchain to 2024-09-08#78

Draft
coord-e wants to merge 3 commits intomainfrom
coord-e/claude/nightly-2024-09-08
Draft

Update nightly toolchain to 2024-09-08#78
coord-e wants to merge 3 commits intomainfrom
coord-e/claude/nightly-2024-09-08

Conversation

@coord-e
Copy link
Copy Markdown
Owner

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

#26

claude and others added 3 commits May 6, 2026 18:10
Update rust-toolchain.toml to nightly-2024-09-08 and fix compilation
errors from API changes in this nightly version:

- Rename WithSuccessors to Successors (rustc_data_structures::graph)
- Rename TypeFolder::interner to cx
- TyKind::FnPtr now takes (sig_tys, hdr) instead of (sig)
- Remove Ty::new_unit in favor of tcx.types.unit
- body_owned_by / maybe_body_owned_by now return &Body directly
- boxed_ty() now returns Option<Ty>
- TyKind::RawPtr now takes (ty, mutbl) instead of TypeAndMut
- MaybeInitializedPlaces::new takes &move_data instead of &MoveDataParamEnv
- try_to_int/try_to_u32 renamed to to_int/to_u32
- sig.unsafety renamed to sig.safety
- const_eval_resolve takes DUMMY_SP instead of None
- builtin_deref returns Option<Ty> instead of Option<TypeAndMut>
- TokenKind::ModSep renamed to PathSep
- new_parser_from_source_str returns Result
- Instance::resolve renamed to Instance::try_resolve

Also add normalize_switch_int_discriminant_order() to handle the new
assertion in nightly-2024-09-08 that SwitchInt targets must be in
AdtDef::discriminants order, and skip unknown defs gracefully when
Instance::try_resolve resolves to blanket impls not tracked by thrust.

https://claude.ai/code/session_01URrtbSTUKNrVKLK2MNLBFc

Fix clippy warning and apply cargo fmt

- Use .iter() instead of .into_iter() on Box<[T]> to avoid ambiguity
  with the Rust 2024 edition semantics change (boxed_slice_into_iter)
- Apply cargo fmt formatting

https://claude.ai/code/session_01URrtbSTUKNrVKLK2MNLBFc
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.

2 participants