From 69c193e5e2dbdbadbf2d8767602b27451afd1e5e Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 26 Apr 2023 14:04:13 +0800 Subject: fixes #21731; fixes #21537; disable `warnBareExcept` by default [backport] (#21728) * disable warnBareExcept for default * fixes a typo --- changelogs/changelog_2_0_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'changelogs') diff --git a/changelogs/changelog_2_0_0.md b/changelogs/changelog_2_0_0.md index bb0a9bf4d..17f0fcfc4 100644 --- a/changelogs/changelog_2_0_0.md +++ b/changelogs/changelog_2_0_0.md @@ -131,7 +131,7 @@ `foo` had type `proc ()` were assumed by the compiler to mean `foo(a, b, proc () = ...)`. This behavior is now deprecated. Use `foo(a, b) do (): ...` or `foo(a, b, proc () = ...)` instead. -- If no exception or any exception deriving from Exception but not Defect or CatchableError given in except, a `warnBareExcept` warning will be triggered. +- When `--warning[BareExcept]:on` is enabled, if no exception or any exception deriving from Exception but not Defect or CatchableError given in except, a `warnBareExcept` warning will be triggered. - The experimental strictFuncs feature now disallows a store to the heap via a `ref` or `ptr` indirection. -- cgit 1.4.1-2-gfad0