Skip to content

Conversation

@folkertdev
Copy link
Member

No description provided.

@folkertdev folkertdev force-pushed the loop-match-use-deconstructed-pat branch from f9f52c8 to 264d16b Compare March 12, 2025 10:05
@folkertdev folkertdev force-pushed the loop-match-use-deconstructed-pat branch from 264d16b to d2c139e Compare March 12, 2025 10:37
// apply the sign
let raw = pu.get() as i128;
let signed = if *neg { -raw } else { raw };
scope.match_arms.target_for_value(recast as u128)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@folkertdev folkertdev force-pushed the loop-match-use-deconstructed-pat branch from c09e84d to 47298b2 Compare March 12, 2025 11:25
@folkertdev folkertdev force-pushed the loop-match-use-deconstructed-pat branch from 47298b2 to c0184c1 Compare March 12, 2025 11:29

let dropless_arena = rustc_arena::DroplessArena::default();
let typeck_results = this.tcx.typeck(this.def_id);
let lint_level = this.tcx.local_def_id_to_hir_id(this.def_id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a commented out lint_level field in LoopMatch. That one should probably be uncommented and used here instead. The current code would use the lint level for the whole function. Alternatively adding a FIXME would be fine.

@folkertdev folkertdev merged commit ee492fc into trifectatechfoundation:loop_match_attr Mar 12, 2025
1 of 5 checks passed
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