Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 committed Aug 21, 2024
2 parents f467ca6 + a77edd1 commit 28e8f16
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SmithyDafnyMakefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ transpile_implementation:
$(TRANSPILE_MODULE_NAME) \
$(if $(strip $(STD_LIBRARY)) , --library:$(PROJECT_ROOT)/$(STD_LIBRARY)/src/Index.dfy, ) \
$(TRANSLATION_RECORD) \
$(TRANSPILE_DEPENDENCIES) \
$(TRANSPILE_DEPENDENCIES)


# If the project under transpilation uses `replaceable` modules,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module SimpleTimestampImplTest {
modifies client.Modifies
ensures client.ValidState()
{
var dafnyTimestamp := "2024-06-11T12:34:56";
var dafnyTimestamp := "2024-06-11T12:34:56Z";
var ret :- expect client.GetTimestamp(SimpleTimestamp.Types.GetTimestampInput(value:= Some(dafnyTimestamp)));
expect ret.value == Some(dafnyTimestamp);
print ret;
Expand Down
2 changes: 1 addition & 1 deletion TestModels/dafny-dependencies/Model/traits.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ list ServiceList {
// A trait for explicitly modeling the configuration options that should be
// available in the generated methods for creating clients.
@trait(selector: "service")
@protocolDefinition()
@protocolDefinition
structure localService {
@required
sdkId: String,
Expand Down
10 changes: 9 additions & 1 deletion TestModels/dafny-dependencies/StandardLibrary/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ polymorph_python :
# Using this target for the side-effect of maintaining patches,
# Since Dafny Rust code generation is incomplete and also needs to be patched.
# That only works if you run transpile_rust first.

polymorph_rust :
echo "Skipping polymorph_rust for StandardLibrary"

Expand Down Expand Up @@ -96,10 +95,19 @@ transpile_implementation:
--allow-warnings \
--output $(OUT) \
$(DAFNY_OPTIONS) \
<<<<<<< HEAD
$(TRANSPILE_MODULE_NAME)

$(DAFNY_OTHER_FILES) \
-out $(OUT)
=======
<<<<<<< HEAD
$(TRANSPILE_MODULE_NAME)
=======
$(DAFNY_OTHER_FILES) \
-out $(OUT)
>>>>>>> main-1.x
>>>>>>> python-reviewed

# Override SharedMakefile's build_java to not install
# StandardLibrary as a dependency
Expand Down

0 comments on commit 28e8f16

Please sign in to comment.