-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] Hack to move-compiler to avoid warning about unknown attri…
…butes in aptos_std=0x1. This avoids surprising warning on currently deployed library code.
- Loading branch information
1 parent
c123a0f
commit 0dac829
Showing
8 changed files
with
121 additions
and
8 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
24 changes: 24 additions & 0 deletions
24
third_party/move/move-compiler/tests/move_check/parser/aptos_stdlib_attributes.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/parser/aptos_stdlib_attributes.move:2:10 | ||
│ | ||
2 │ #[a, a(x = 0)] | ||
│ - ^^^^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/parser/aptos_stdlib_attributes.move:6:12 | ||
│ | ||
6 │ #[b(a, a = 0, a(x = 1))] | ||
│ - ^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/parser/aptos_stdlib_attributes.move:6:19 | ||
│ | ||
6 │ #[b(a, a = 0, a(x = 1))] | ||
│ - ^^^^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
8 changes: 8 additions & 0 deletions
8
third_party/move/move-compiler/tests/move_check/parser/aptos_stdlib_attributes.move
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module aptos_std::M { | ||
#[a, a(x = 0)] | ||
fun foo() {} | ||
|
||
#[testonly] | ||
#[b(a, a = 0, a(x = 1))] | ||
fun bar() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
third_party/move/move-compiler/tests/move_check/parser/aptos_stdlib_attributes2.move
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module aptos_std::M { | ||
fun foo() {} | ||
|
||
#[testonly] | ||
fun bar() {} | ||
} |
24 changes: 24 additions & 0 deletions
24
...rty/move/move-compiler/tests/move_check/skip_attribute_checks/aptos_stdlib_attributes.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/skip_attribute_checks/aptos_stdlib_attributes.move:2:10 | ||
│ | ||
2 │ #[a, a(x = 0)] | ||
│ - ^^^^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/skip_attribute_checks/aptos_stdlib_attributes.move:6:12 | ||
│ | ||
6 │ #[b(a, a = 0, a(x = 1))] | ||
│ - ^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
||
error[E02001]: duplicate declaration, item, or annotation | ||
┌─ tests/move_check/skip_attribute_checks/aptos_stdlib_attributes.move:6:19 | ||
│ | ||
6 │ #[b(a, a = 0, a(x = 1))] | ||
│ - ^^^^^^^^ Duplicate attribute 'a' attached to the same item | ||
│ │ | ||
│ Attribute previously given here | ||
|
8 changes: 8 additions & 0 deletions
8
...ty/move/move-compiler/tests/move_check/skip_attribute_checks/aptos_stdlib_attributes.move
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module aptos_std::M { | ||
#[a, a(x = 0)] | ||
fun foo() {} | ||
|
||
#[testonly] | ||
#[b(a, a = 0, a(x = 1))] | ||
fun bar() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
...y/move/move-compiler/tests/move_check/skip_attribute_checks/aptos_stdlib_attributes2.move
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module aptos_std::M { | ||
fun foo() {} | ||
|
||
#[testonly] | ||
fun bar() {} | ||
} |
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