Add primitive conversions submodules to the prelude #6105
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As part of #6087, it was revealed that the current
use std::primitive_conversions::*;
line in the prelude does not import anything which a developer can use. To use any of the submodules in the primitive conversions library, users would need to import the individual submodule regardless of the prelude.This PR adds the submodules as an import to the prelude to stay consistent with the original intent. Both the core's and std-lib's primitive conversions modules are imported. Conversions between primitive types should not require additional imports.
Example before:
Example after:
Closes #6088
Dependent on #6087
Checklist
Breaking*
orNew Feature
labels where relevant.