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

Remove 'rustc is so bad at spans' workaround #19

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Remove 'rustc is so bad at spans' workaround #19

merged 2 commits into from
Oct 25, 2022

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Oct 25, 2022

rust-lang/rust#43081 is (mostly?) no longer an issue since rust 1.53.

    error: this argument is passed by value, but not consumed in the function body
      --> src/emit.rs:13:18
       |
    13 | pub fn emit(err: Error, kind: Kind, output: TokenStream) -> TokenStream {
       |                  ^^^^^ help: consider taking a reference instead: `&Error`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
       = note: `-D clippy::needless-pass-by-value` implied by `-D clippy::pedantic`
@dtolnay dtolnay merged commit d55f794 into master Oct 25, 2022
@dtolnay dtolnay deleted the workaround branch October 25, 2022 04:42
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.

None yet

1 participant