Actually give deprecation for -noboundscheck (#16687)

This has been deprecated for at least 7 years...
This commit is contained in:
Nicholas Wilson 2024-07-13 16:08:02 +08:00 committed by GitHub
parent 82eee6f4e0
commit 9a5ce0e1ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -1493,6 +1493,9 @@ bool parseCommandLine(const ref Strings arguments, const size_t argc, ref Param
}
else if (arg == "-noboundscheck") // https://dlang.org/dmd.html#switch-noboundscheck
{
/// @@@DEPRECATED_2.113@@@
// Deprecated since forever, deprecation message added in 2.111. Remove in 2.113
eSink.deprecation(Loc.initial, "`-noboundscheck` is deprecated. Use `-boundscheck=off` instead");
params.boundscheck = CHECKENABLE.off;
}
else if (startsWith(p + 1, "boundscheck")) // https://dlang.org/dmd.html#switch-boundscheck

View file

@ -1,5 +1,5 @@
// EXTRA_FILES: imports/std11069array.d imports/std11069container.d imports/std11069range.d imports/std11069typecons.d
// REQUIRED_ARGS: -noboundscheck
// REQUIRED_ARGS: -boundscheck=off
// <-- To remove necessity of _D7imports13std11069array7__arrayZ
class Bar

View file

@ -1,4 +1,4 @@
/* REQUIRED_ARGS: -O -inline -noboundscheck
/* REQUIRED_ARGS: -O -inline -boundscheck=off
*/
// https://github.com/dlang/pull/13220