Open robin-aws opened 3 months ago
The Rust code generator wrapping the dafny code will throw an exception if an error is detected in Dafny, and the option --emit-uncompilable-code
is not set
Does that solve the issue?
Is the message above sufficient to consider the issue as already solved?
The
DafnyCodeGenerator
class will throwUnsupportedFeatureException
s when it hitsFeature
s it doesn't support, which lets it opt out of certain tests in the suite as long as those unsupported features are documented. The Dafny code implementing the rest of the compilation, however, can't throw such exceptions, and the RustCodeGenerator (i.e.Dafny-compiler-rust.dfy
) currently inserts code comments for unsupported things instead.It looks like if the errors use the
UnsupportedFeatureException.MessagePrefix
this should just work, but I haven't tried it.