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

#[start] makes --test not work #8542

Closed
brson opened this issue Aug 15, 2013 · 2 comments
Closed

#[start] makes --test not work #8542

brson opened this issue Aug 15, 2013 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@brson
Copy link
Contributor

brson commented Aug 15, 2013

I don't know what the failure mode is but I have heard that --test does not work if you define #[start].

@alexcrichton
Copy link
Member

src/librustc/front/test.rs strips functions with the main attribute and injects its own, so I suppose this could be fixed by also stripping functions with the #[start] attribute

@alexcrichton
Copy link
Member

Closing as a dupe of #8464 (that one has a bit more info)

flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 7, 2022
fix FP in lint `[needless_match]`

fixes: rust-lang#8542
fixes: rust-lang#8551
fixes: rust-lang#8595
fixes: rust-lang#8599

---

changelog: check for more complex custom type, and ignore type coercion in [`needless_match`]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

2 participants