Skip to content

rustpkg: Cleanup #9150

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

Closed
wants to merge 1 commit into from
Closed

Conversation

catamorphism
Copy link
Contributor

Just refactoring in tests.rs.

@alexcrichton
Copy link
Member

needs a rebase :(. At least it wasn't a flaky test this time!

bors added a commit that referenced this pull request Sep 15, 2013
@bors bors closed this Sep 15, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 4, 2024
[`let_and_return`]: avoid linting when code between last stmt and return expr is cfg'd out

Fixes rust-lang#9150

This moves `span_contains_cfg` to utils and starts using it in `let_and_return` as well.

changelog: [`let_and_return`]: avoid linting when code between the last statement and the final return expression is `#[cfg]`ed out
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.

3 participants