-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Dafny to Rust refactorings (#5513)
- extern module as attribute - Type arguments with type bounds - Attributes handling - Type on Select field and TupleSelect - Name refactoring to ensure we distinguish Dafny names from Rust names - Binary In operator - `NoStatementBuffer` to convert - `GenFormals` - `EmitNameAndActualTypeArgs` (for classes) - `ParseAttributes` - `GetExtractOverrideName` (to be able to model Rust options) Dafny - `StructBuild` first argument to be an expression instead of a string - `Apply` split into `Apply` for expressions and `ApplyType` for type arguments - Conversion from `Type` to `TypeParamDecl` so that we can support bounds - Changed `Formals` to `Fields`, and `NamelessFormals` to `NamelessFields` - `Visibility` has its own datatype - Renamed `Self` to `SelfBorrowed` - Renamed `SeltMut` to `SelfBorrowedMut` - `Box`/`BoxNew` (for attribute annotations) - Support for native `bool` - `ToOwned` (used in tail recursion) - `IsImmutableConversion` - `Formal.self` becomes `Formal.selfBorrowed` - `Formal.selfMut` becomes `Formal.selfBorrowedMut` - `AssignMember` and all new variants `ExtractTuple` and `Index` - `ExprFromType` to be able to simulate macros like expressions - `Lambda` (makes code prettier) - Error handling - `Debug` trait for datatypes - No more system object, just `std::any::Any` - New char encoding - `int!` macro - Refactoring of DafatypeValue's first argument - `constant` - `GenIdent` refactoring ### How has this been tested? Existing tests should just pass. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
- Loading branch information
1 parent
e3273ad
commit 0860638
Showing
165 changed files
with
11,475 additions
and
6,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
230 changes: 116 additions & 114 deletions
230
Source/DafnyCore.Test/GeneratedFromDafny/DafnyToRustCompilerCoverage_RASTCoverage.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.