Skip to content

transpile: Split off new macros module#1647

Open
Rua wants to merge 3 commits intoimmunant:masterfrom
Rua:macros-module
Open

transpile: Split off new macros module#1647
Rua wants to merge 3 commits intoimmunant:masterfrom
Rua:macros-module

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Mar 7, 2026

No functional changes, just moving more stuff to dedicated modules.

Comment on lines -4288 to -4296
// Ignoring Complex casts for now
_ => {
warn!(
"Unknown CastKind for {:?} to {:?} cast. Defaulting to BitCast",
source_ty_kind, target_ty_kind,
);

CastKind::BitCast
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not leave this inside fn CastKind::from_types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure if it would be appropriate to have a warn! inside a relatively simple conversion function like that. That seemed like a higher-level thing better suited to the surrounding context. I can move it in if you prefer.

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