Skip to content

ty_utils: recurse through unsafe binder ops in const expr build#582

Open
SebTardif wants to merge 1 commit into
mainfrom
fix-r72-ty-utils-unsafe-binder-const
Open

ty_utils: recurse through unsafe binder ops in const expr build#582
SebTardif wants to merge 1 commit into
mainfrom
fix-r72-ty-utils-unsafe-binder-const

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Summary

recurse_build treated unsafe binder wrap/unwrap THIR nodes as todo!. Recurse into the inner source expression instead (transparent for const value trees).

Closes #580

Related: #567, #570, #572

Origin

rust-lang@fc1a9186dcd

Test plan

  • Matches THIR visitor which already walks source for these expr kinds
  • Code review

Wrap/unwrap unsafe binder THIR nodes do not change the constant value;
build the const from the inner source expression instead of todo!.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
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.

ty_utils: const expr build todo! on unsafe binder wrap/unwrap THIR

1 participant