Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang committed Sep 24, 2024
1 parent 5bf9a83 commit 88c85a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions third_party/move/move-compiler/src/shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ impl Flags {
pub fn set_language_version(self, language_version: LanguageVersion) -> Self {
Self {
language_version,
lang_v2: language_version >= LanguageVersion::V2,
..self
}
}
Expand Down
1 change: 0 additions & 1 deletion third_party/move/move-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ pub fn run_model_builder_in_compiler_mode(
.set_skip_attribute_checks(skip_attribute_checks)
.set_verify(compile_verify_code)
.set_keep_testing_functions(compile_test_code)
.set_lang_v2(language_version != LanguageVersion::V1)
.set_language_version(match language_version {
LanguageVersion::V1 => CompilerLanguageVersion::V1,
LanguageVersion::V2_0 => CompilerLanguageVersion::V2_0,
Expand Down

0 comments on commit 88c85a2

Please sign in to comment.