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
"The constructor must initialize all fields of the object and cannot call any methods on self until it has done so." (currently there's no check that the ctor initializes fields, even)
"After calling a method on self, the constructor is not allowed to mutate any of its immutable fields."
The text was updated successfully, but these errors were encountered:
this is implemented in the new liveness code. if I'd realized it wasn't implemented at all in typestate I probably wouldn't have bothered, but oh well. =)
Use the overflow result operations instead of doing the math twice.
This is related to the performance degradation we are seeing in the toolchain upgrade: rust-lang#2293
Co-authored-by: Michael Tautschnig <tautschn@amazon.com>
jieyouxu
pushed a commit
to jieyouxu/rust
that referenced
this issue
Mar 18, 2025
Enforce these invariants in typestate:
"The constructor must initialize all fields of the object and cannot call any methods on self until it has done so." (currently there's no check that the ctor initializes fields, even)
"After calling a method on self, the constructor is not allowed to mutate any of its immutable fields."
The text was updated successfully, but these errors were encountered: