Draft
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#26