Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mcmah309
Copy link
Contributor

@mcmah309 mcmah309 commented Aug 13, 2025

This renames all "unchecked" methods to better define their behavior. "unchecked" methods in Rust are traditionally used to signify methods that can have undefined behavior if used incorrectly. These methods do not have undefined behavior. These methods are completely safe and what is really happening is the lifetime is not "unchecked" but rather extended to 'static and runtime checks are used to enforce safety instead. Thus unchecked is renamed to extended.

This a small breaking change @jkelleyrtp but I do think it would be worth while to get in now for the 0.7 release.

closes #4517

@mcmah309 mcmah309 requested a review from a team as a code owner August 13, 2025 03:28
@mcmah309
Copy link
Contributor Author

@jkelleyrtp I added back the unchecked methods as deprecated default implemented members of the traits as per our discussion https://discord.com/channels/899851952891002890/928812591126569000/1407446072875417681

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.

Rename read_unchecked methods
1 participant