Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: minitrace-macro expansion adds empty {} and <> #141

Closed
taqtiqa-mark opened this issue Apr 27, 2022 · 1 comment
Closed

Bug: minitrace-macro expansion adds empty {} and <> #141

taqtiqa-mark opened this issue Apr 27, 2022 · 1 comment

Comments

@taqtiqa-mark
Copy link
Contributor

taqtiqa-mark commented Apr 27, 2022

Legacy minitrace-macro code converts

fn f() {}

into

fn f<>() {
    let __guard = minitrace::local::LocalSpan::enter_with_local_parent("f");
    {}
}

There are two issues:

  1. The __guard should be inside the block expression - correct?
  2. The superfluous <>

This arose in the course of writing unit tests for issue #113

@taqtiqa-mark
Copy link
Contributor Author

Voided by PR #127 rejection.

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

No branches or pull requests

1 participant