Skip to content

Managed boxes are not completely gated #10920

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
alexcrichton opened this issue Dec 11, 2013 · 2 comments
Closed

Managed boxes are not completely gated #10920

alexcrichton opened this issue Dec 11, 2013 · 2 comments

Comments

@alexcrichton
Copy link
Member

This program successfully compiles when it shouldn't:

fn main() { @3; }
@thestinger
Copy link
Contributor

This is also how once functions are gated, so that probably needs to be changed too.

@alexcrichton
Copy link
Member Author

Taking a look at the AST, Onceness only shows up in TyClosure, so I think that it's correct for once functions, it just appears that box literals aren't handled.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 14, 2023
Add `SPEEDTEST`

In the `master` branch, we currently don't have any way to test the performance of a single lint in changes.
This PR adds `SPEEDTEST`, the environment variable which lets you do a speed test on a lint / category of tests with various configuration options.

Maybe we should merge this with `lintcheck` 🤔
See the book page for more information.

changelog:none
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

No branches or pull requests

2 participants