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

Lint attributes currently don't work for marker lints #200

Closed
xFrednet opened this issue Jul 26, 2023 · 0 comments · Fixed by #203
Closed

Lint attributes currently don't work for marker lints #200

xFrednet opened this issue Jul 26, 2023 · 0 comments · Fixed by #203
Assignees
Labels
C-bug Category: Something isn't working D-rustc-driver Driver: Rustc Driver
Milestone

Comments

@xFrednet
Copy link
Member

xFrednet commented Jul 26, 2023

Extracted from #189:

I tried everything I could think of, but #[allow(...)] doesn't work in any possible way. Here was my last non-working try

#![feature(register_tool)]
#![register_tool(marker)]

fn main() {
    let path = std::path::Path::new("foo.txt");

    #[allow(marker::to_string_on_cow_str)]
    let _ = path.to_string_lossy().to_string();
}

[...]

The lint is not ignored, it's always reported when I run cargo marker

Marker version 0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Something isn't working D-rustc-driver Driver: Rustc Driver
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant