This is an archive of the discontinued LLVM Phabricator instance.

[Demangle][Rust] Parse dyn-trait-assoc-binding
ClosedPublic

Authored by tmiasko on May 29 2021, 10:30 AM.

Diff Detail

Event Timeline

tmiasko created this revision.May 29 2021, 10:30 AM
tmiasko requested review of this revision.May 29 2021, 10:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2021, 10:30 AM
dblaikie accepted this revision.Jun 1 2021, 4:44 PM

Looks good - couple of optional things.

llvm/lib/Demangle/RustDemangle.cpp
228

Might be simpler to early return true here - skip the IsOpen variable - since this is the one place that can return true? (and return false at the end of the function)

567

Could use another enum here for "LeaveOpen" to avoid the need to comment call sites?

This revision is now accepted and ready to land.Jun 1 2021, 4:44 PM
tmiasko updated this revision to Diff 349192.Jun 2 2021, 1:21 AM
tmiasko marked 2 inline comments as done.
  • Remove IsOpen variable.
  • Use an enum for LeaveOpen.
This revision was landed with ongoing or failed builds.Jun 7 2021, 9:25 AM
This revision was automatically updated to reflect the committed changes.