forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add note to new warnings about being an error in the future
Adjusts the warnings from PRs chapel-lang#22697 chapel-lang#22745 and chapel-lang#22784 to include a note about the warning possibly being an error in the future when compiling with `--warn-unstable`. --- Signed-off-by: Michael Ferguson <[email protected]>
- Loading branch information
Showing
8 changed files
with
25 additions
and
0 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
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
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 @@ | ||
--warn-unstable |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
inherit-generic-q.chpl:4: warning: missing '(?)' after a generic parent class | ||
note: this warning may be an error in the future | ||
inherit-generic-q.chpl:8: error: '(?)' after a concrete parent class |
1 change: 1 addition & 0 deletions
1
test/types/records/generic/warn-field-generic-declared-type.compopts
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 @@ | ||
--warn-unstable |
5 changes: 5 additions & 0 deletions
5
test/types/records/generic/warn-field-generic-declared-type.good
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
warn-field-generic-declared-type.chpl:12: warning: field is declared with generic memory management | ||
note: consider adding 'owned', 'shared', or 'borrowed' | ||
note: if generic memory management is desired, use a 'type' field to store the class type | ||
note: this warning may be an error in the future | ||
warn-field-generic-declared-type.chpl:21: warning: field is declared with generic memory management | ||
note: consider adding 'owned', 'shared', or 'borrowed' | ||
note: if generic memory management is desired, use a 'type' field to store the class type | ||
note: this warning may be an error in the future | ||
warn-field-generic-declared-type.chpl:30: warning: field is declared with generic memory management | ||
note: consider adding 'owned', 'shared', or 'borrowed' | ||
note: if generic memory management is desired, use a 'type' field to store the class type | ||
note: this warning may be an error in the future | ||
warn-field-generic-declared-type.chpl:56: warning: please use '?' when declaring a field with generic type | ||
warn-field-generic-declared-type.chpl:56: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-field-generic-declared-type.chpl:96: warning: please use 'domain(?)' for the type of a generic field storing any domain | ||
note: this warning may be an error in the future | ||
(myfield = 0) | ||
(myfield = {}) : A(owned MyClass?) | ||
(myfield = nil) : B(owned MyClass?) |
1 change: 1 addition & 0 deletions
1
test/types/type_variables/ferguson/warn-generic-var-field-no-q.compopts
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 @@ | ||
--warn-unstable |
7 changes: 7 additions & 0 deletions
7
test/types/type_variables/ferguson/warn-generic-var-field-no-q.good
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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
warn-generic-var-field-no-q.chpl:6: warning: please use '?' when declaring a field with generic type | ||
warn-generic-var-field-no-q.chpl:6: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:10: warning: please use '?' when declaring a field with generic type | ||
warn-generic-var-field-no-q.chpl:10: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:14: warning: please use '?' when declaring a field with generic type | ||
warn-generic-var-field-no-q.chpl:14: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:25: warning: please use '?' when declaring a variable with generic type | ||
warn-generic-var-field-no-q.chpl:25: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:27: warning: please use '?' when declaring a variable with generic type | ||
warn-generic-var-field-no-q.chpl:27: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:34: warning: please use '?' when declaring a variable with generic type | ||
warn-generic-var-field-no-q.chpl:34: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:43: warning: please use '?' when declaring a variable with generic type | ||
warn-generic-var-field-no-q.chpl:43: note: for example with 'GR(?)' | ||
note: this warning may be an error in the future | ||
warn-generic-var-field-no-q.chpl:20: error: done |