-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make var
/pointer types not match if base type has to be converted
#24130
Conversation
@@ -164,8 +162,7 @@ pkg "ssostrings" | |||
pkg "stew" | |||
pkg "stint", "nim c stint.nim" | |||
pkg "strslice" | |||
pkg "strunicode", "nim c -r --mm:refc src/strunicode.nim", | |||
preCmd = "nimble install -y normalize@#HEAD; nimble uninstall -y normalize; nimble install -y normalize@#HEAD" | |||
pkg "strunicode", "nimble uninstall -i -y normalize; nimble install -y normalize@#HEAD; nimble install --depsOnly -y; nim c -r --mm:refc src/strunicode.nim" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've asked @nitely to bump normalize
's version, in hopes this hack won't be needed anymore.
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
…24130) split again from #24038, fixes status-im/nimbus-eth2#6554 (comment) `var`/pointer types are no longer implicitly convertible to each other if their element types either: * require an int conversion or another conversion operation as long as it's not to `openarray`, * are subtypes with pointer indirection, Previously any conversion below a subrange match would match if the element type wasn't a pointer type, then it would error later in `analyseIfAddressTaken`. Different from #24038 in that the preview define that made subrange matches also fail to match is removed for a simpler diff so that it can be backported. (cherry picked from commit 1660ddf)
…im-lang#24130) split again from nim-lang#24038, fixes status-im/nimbus-eth2#6554 (comment) `var`/pointer types are no longer implicitly convertible to each other if their element types either: * require an int conversion or another conversion operation as long as it's not to `openarray`, * are subtypes with pointer indirection, Previously any conversion below a subrange match would match if the element type wasn't a pointer type, then it would error later in `analyseIfAddressTaken`. Different from nim-lang#24038 in that the preview define that made subrange matches also fail to match is removed for a simpler diff so that it can be backported.
split again from #24038, fixes status-im/nimbus-eth2#6554 (comment)
var
/pointer types are no longer implicitly convertible to each other if their element types either:openarray
,Previously any conversion below a subrange match would match if the element type wasn't a pointer type, then it would error later in
analyseIfAddressTaken
.Different from #24038 in that the preview define that made subrange matches also fail to match is removed for a simpler diff so that it can be backported.