Skip to content

rustc_layout_scalar_valid_range_start doesn't prevent unused_unsafe lint #57183

Closed
@varkor

Description

@varkor

Edit: this is just a stage 0 problem, so we can conditionally ignore those warnings for now.


rustc_layout_scalar_valid_range_start requires unsafe, but does not cause unsafe blocks to be counted as "used", meaning that the following:

Some(unsafe { $Ty(n) })

is warned as unused, but removing the unsafe causes an error.

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions