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

Loadable lints #14067

Closed
kmcallister opened this issue May 9, 2014 · 5 comments
Closed

Loadable lints #14067

kmcallister opened this issue May 9, 2014 · 5 comments

Comments

@kmcallister
Copy link
Contributor

Now that we have loadable syntax extensions, what about loadable lints? My main interest is application-specific safety checking, either to make unsafe code safer, or to provide guarantees above and beyond Rust's memory safety.

Some example use cases:

  • enforcing correct usage of Servo's JS-managed pointers
  • detecting common misuses of a library, e.g. expensive or non-idiomatic constructs
  • in cryptographic code, annotating which variables contain secrets and then forbidding their use in variable-time operations or memory addressing
@mcpherrinm
Copy link
Contributor

I am interested in working on this. I will post an RFC soon.

@lilyball
Copy link
Contributor

I really want this. rust-lua needs a loadable lint in order to get rid of all the unsafe (because of longjmp).

@kmcallister
Copy link
Contributor Author

This is rust-lang/rfcs#89.

@kmcallister
Copy link
Contributor Author

I have a working quick-and-dirty prototype. There are various issues to resolve before it can be merged.

@kmcallister
Copy link
Contributor Author

This is done! See #15024.

bors added a commit to rust-lang-ci/rust that referenced this issue Feb 13, 2023
…jonas-schievink

fix: Lazily create the trace output channel

Fixes rust-lang/rust-analyzer#13055
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

3 participants