about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-03-06 12:22:10 -0500
committerGitHub <noreply@github.com>2025-03-06 12:22:10 -0500
commit6ac714d526fce4f4c917dcb49c29ad50cf6b07e7 (patch)
tree15ffdc3345a98dbe42ce19ddb129ed790d0718ff /tests/codegen/patchable-function-entry
parent5b074125e5d33fd405c58d57f8de973cfd30d693 (diff)
parenta2c1211b6de0c1a93c3ff1f97c49acc237f620a6 (diff)
downloadrust-6ac714d526fce4f4c917dcb49c29ad50cf6b07e7.tar.gz
rust-6ac714d526fce4f4c917dcb49c29ad50cf6b07e7.zip
Rollup merge of #136922 - oli-obk:pattern-types-option-ends, r=BoxyUwU
Pattern types: Avoid having to handle an Option for range ends in the type system or the HIR

Instead,

1. during hir_ty_lowering, we now generate constants for the min/max when the range doesn't have a start/end specified.
2. in a later commit we generate those constants during ast lowering, simplifying everything further by not having to handle the range end inclusivity anymore in the type system (and thus avoiding any issues of `0..5` being different from `0..=4`

I think it makes all the type system code simpler, and the cost of the extra `ConstKind::Value` processing seems negligible.

r? `@BoxyUwU`

cc `@joshtriplett` `@scottmcm`
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions