Skip to content

fix macro path #740

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

Merged
merged 1 commit into from
Jun 1, 2020
Merged

fix macro path #740

merged 1 commit into from
Jun 1, 2020

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented May 29, 2020

Motivation

Hello 👋 ! I had some issues playing with tracing and event! macro due to a call to a macro prefixed by tracing:: so I fixed with $crate:: like it's done for all other macros :)

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@bnjjj bnjjj requested review from hawkw and a team as code owners May 29, 2020 09:48
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

Thanks, now that we're using $crate rather than local_inner_macros, I believe it's correct to change these macros as well.

As a side note, I believe this should fix the issues that have occurred when using the "log" feature flag when the tracing crate has been renamed in Cargo.toml.

@bnjjj
Copy link
Contributor Author

bnjjj commented Jun 1, 2020

Great ! Do you know when it will be merged ?

@hawkw hawkw merged commit 309c126 into tokio-rs:master Jun 1, 2020
@hawkw
Copy link
Member

hawkw commented Jun 1, 2020

Great ! Do you know when it will be merged ?

Sorry, my bad! I meant to merge this as soon as CI passed, but I think I must've forgot. It's merged now.

Thanks again for the fix!

hawkw added a commit that referenced this pull request Jun 3, 2020
# 0.1.15 (June 2, 2020)

### Changed

- **macros**: Replaced use of legacy `local_inner_macros` with
  `$crate::` (#740)

### Added

- Docs fixes and improvements (#742, #731, #730)

Thanks to @bnjjj, @blaenk, and @LukeMathWalker for contributing to this
release!

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
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