Skip to content

Make rust-mode derive from prog-mode if available #7948

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

Make rust-mode derive from prog-mode if available #7948

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 21, 2013

This let rust-mode be classified as a programming mode, which is only relevant to Emacs 24.x. This way, for one thing, prog-mode-hooks will be run when entering rust-mode.

@graydon
Copy link
Contributor

graydon commented Jul 27, 2013

I incorporated these changes in #8031, closing this PR.

@graydon graydon closed this Jul 27, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 23, 2021
Lint for bool to integer casts in `cast_lossless`

The lint description says

> Checks for casts between *numerical* types that may be replaced by safe conversion functions.

Which is strictly speaking being violated here, but it seems within the spirit of the lint. I think it is still a useful lint to have, and having a different lint for just this feels excessive. Thoughts?

Fixes rust-lang#7947

changelog: Lint for bool to integer casts in [`cast_lossless`]
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.

2 participants