You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This shouldn't error with 'field is never initialized'.
The real use case for this is of the form:
new() {
res = some_operation();
if res.is_err() {
fail "This is a specific and helpful error message about the failure of some_operation().";
} else {
some_local = res.get();
}
}
This can be worked around by initializing some_local to a placeholder value, but the type of some_local may not provide a convenient one. It can also be worked around in this specific case by not casing, and just setting some_local = res.get(), at the cost of a less useful error message.
The text was updated successfully, but these errors were encountered:
I think this can now be closed, since the inline constructor syntax no longer works, and the new struct initialization syntax does not have this problem.
…in` (rust-lang#2845)
Adds a new workflow "Kani CI M1" that runs the regression suite on Apple
M1 runners (`macos-13-xlarge`), but only on pushes to `main`.
### Callouts
* Hasn't been tested since I don't have access to the `macos-13-xlarge`
runners in my fork.
* Added a new workflow to avoid making the "Kani CI" workflow more
complex. In particular, I first considered adding conditions to the
steps, but that would result in M1 runners being invoked only to skip
the job on PRs. Second, I tried adding a condition for the job itself,
but it's not possible to refer to `${{ os.matrix }}` at that stage.
* Similarly, I don't remove the `-xlarge` substring used for M1 runners.
This shouldn't error with 'field is never initialized'.
The real use case for this is of the form:
This can be worked around by initializing some_local to a placeholder value, but the type of some_local may not provide a convenient one. It can also be worked around in this specific case by not casing, and just setting some_local = res.get(), at the cost of a less useful error message.
The text was updated successfully, but these errors were encountered: