diff options
| author | Keith Randall <khr@golang.org> | 2022-03-14 15:17:43 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2022-03-15 00:05:18 +0000 |
| commit | 15728ce950eea43d6f1b9fb29819d006071e843a (patch) | |
| tree | 183e3d05e3e913a91f6fb8316e6a156d60208e76 /src/text/template/parse/parse_test.go | |
| parent | b7041c7ad1c9d42078cfc376320e5b307e617a80 (diff) | |
| download | go-15728ce950eea43d6f1b9fb29819d006071e843a.tar.xz | |
cmd/compile: disable rewrite loop detector for deadcode-only changes
We're guaranteed we won't infinite loop on deadcode-only changes,
because each change converts valid -> invalid, and there are only a
finite number of valid values.
The loops this test is looking for are those generated by rule
applications, so it isn't useful to check for loops when rules aren't
involved.
Fixes #51639
Change-Id: Idf1abeab9d47baafddc3a1197d5064faaf07ef78
Reviewed-on: https://go-review.googlesource.com/c/go/+/392760
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/text/template/parse/parse_test.go')
0 files changed, 0 insertions, 0 deletions
