Skip to content

Update a bunch of library types for MCP807#135236

Merged
bors merged 2 commits intorust-lang:masterfrom
scottmcm:more-mcp807-library-updates
Jan 11, 2025
Merged

Update a bunch of library types for MCP807#135236
bors merged 2 commits intorust-lang:masterfrom
scottmcm:more-mcp807-library-updates

Conversation

@scottmcm
Copy link
Copy Markdown
Member

@scottmcm scottmcm commented Jan 8, 2025

This greatly reduces the number of places that actually use the rustc_layout_scalar_valid_range_* attributes down to just 3:

library/core\src\ptr\non_null.rs
68:#[rustc_layout_scalar_valid_range_start(1)]

library/core\src\num\niche_types.rs
19:        #[rustc_layout_scalar_valid_range_start($low)]
20:        #[rustc_layout_scalar_valid_range_end($high)]

Everything else -- PAL Nanoseconds, alloc's Cap, niched FDs, etc -- all just wrap those niche_types types.

r? ghost

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-solid Operating System: SOLID O-unix Operating system: Unix-like O-windows Operating system: Windows S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants