Update fallthrough deprecation notice.
The `default` case selector has been implemented in Tint. This CL updates the deprecation notice with that fact along with some more information on replacements. Bug: tint:1644 Change-Id: I883b4465d11d9696d46523d11e66c9a2dc2777ac Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106460 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
6e77b47ed9
commit
882b38a2f5
|
@ -2213,7 +2213,8 @@ Maybe<const ast::BlockStatement*> ParserImpl::case_body() {
|
|||
deprecated(source,
|
||||
"fallthrough is set to be removed from WGSL. "
|
||||
"Case can accept multiple selectors if the existing case bodies are empty. "
|
||||
"default is not yet supported in a case selector list.");
|
||||
"(e.g. `case 1, 2, 3:`) "
|
||||
"`default` is a valid case selector value. (e.g. `case 1, default:`)");
|
||||
|
||||
stmts.Push(create<ast::FallthroughStatement>(source));
|
||||
break;
|
||||
|
|
|
@ -3423,7 +3423,7 @@ fn foo() {
|
|||
RunTest(src, false);
|
||||
EXPECT_EQ(
|
||||
error_,
|
||||
R"(test:11:7 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
R"(test:11:7 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
@ -3493,7 +3493,7 @@ fn foo() {
|
|||
RunTest(src, false);
|
||||
EXPECT_EQ(
|
||||
error_,
|
||||
R"(test:10:7 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
R"(test:10:7 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. default is not yet supported in a case selector list.
|
||||
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
||||
fallthrough;
|
||||
^^^^^^^^^^^
|
||||
|
||||
|
|
Loading…
Reference in New Issue