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

Fix invalid macro_export usage #2320

Merged
merged 1 commit into from
May 1, 2023

Conversation

ZhongRuoyu
Copy link
Contributor

@ZhongRuoyu ZhongRuoyu commented May 1, 2023

Pull request

Description

This fixes build failure with Rust 1.69+. According to 1, "the only valid argument is #[macro_export(local_inner_macros)] or no argument (#[macro_export])".

The check for invalid #[macro_export] arguments was added in rust-lang/rust#107911 and first released in Rust 1.69.0.

Related

Checklist

(Please let me know if this needs to be documented in CHANGELOG.)

  • The RFC, if required, has been submitted and approved
  • Any user-facing impact of the changes is reflected in docs.tremor.rs
  • The code is tested (tremor-runtime: fix for rust 1.69; use brewed deps Homebrew/homebrew-core#129863)
  • Use of unsafe code is reasoned about in a comment
  • Update CHANGELOG.md appropriately, recording any changes, bug fixes, or other observable changes in behavior
  • The performance impact of the change is measured (see below)

Performance

Not applicable.

Footnotes

  1. https://github.com/rust-lang/rust/blob/1.69.0/compiler/rustc_lint_defs/src/builtin.rs#L4129

This fixes build failure with Rust 1.69+. According to [^1], "the only
valid argument is `#[macro_export(local_inner_macros)]` or no argument
(`#[macro_export]`)".

The check for invalid `#[macro_export]` arguments was added in
rust-lang/rust#107911 and first released in Rust 1.69.0.

[^1]: https://github.com/rust-lang/rust/blob/1.69.0/compiler/rustc_lint_defs/src/builtin.rs#L4129

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Copy link
Member

@Licenser Licenser left a comment

Choose a reason for hiding this comment

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

Good catch! Thank you :)

@Licenser Licenser enabled auto-merge (rebase) May 1, 2023 18:03
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Merging #2320 (098b777) into main (8cca5dc) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2320   +/-   ##
=======================================
  Coverage   91.11%   91.12%           
=======================================
  Files         275      275           
  Lines       58093    58093           
=======================================
+ Hits        52934    52937    +3     
+ Misses       5159     5156    -3     
Flag Coverage Δ
unittests 91.12% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/lib.rs 100.00% <ø> (ø)

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8cca5dc...098b777. Read the comment docs.

@Licenser Licenser merged commit 986fae5 into tremor-rs:main May 1, 2023
@ZhongRuoyu ZhongRuoyu deleted the macro_export-log_error branch May 1, 2023 18:38
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