Skip to content

Fix spelling errors in comments.#13369

Closed
jbcrail wants to merge 1 commit into
rust-lang:masterfrom
jbcrail:fix-spelling
Closed

Fix spelling errors in comments.#13369
jbcrail wants to merge 1 commit into
rust-lang:masterfrom
jbcrail:fix-spelling

Conversation

@jbcrail
Copy link
Copy Markdown
Contributor

@jbcrail jbcrail commented Apr 7, 2014

I corrected the misspelling of the word "dependent" when used as an adjective.

@jbcrail jbcrail deleted the fix-spelling branch April 20, 2014 05:06
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
Special-case suggestions for null pointers constness cast

This implements the suggestions from rust-lang#13361. It fits into the existing `ptr_cast_constness` lint, as this is a specialized version. However,

1. I have not modified the lint MSRV, so the documentation for this lint will still show that it applies only from Rust 1.72.0. This is true in the general case, but the lint for null pointers will trigger even before this version as `null()` and `null_mut()` were already present in Rust 1.0 and there is no reason not to apply this lint. I guess this is only a minor documentation issue that can be ignored.
2. I have not covered the `core::ptr::null::<T>().cast_mut()` (could be made into `core::ptr::null_mut::<T>()`) and `cotr::ptr::null_mut::<T>().cast_const()` (could be made into `core::ptr::null::<T>()`) cases. Should they be covered? If they should, here or in a separate PR?

changelog: [`ptr_cast_constness`]: special-case suggestions for null pointers constness cast

Fix rust-lang#13361
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