mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Actually give deprecation for -noboundscheck
(#16687)
This has been deprecated for at least 7 years...
This commit is contained in:
parent
82eee6f4e0
commit
9a5ce0e1ef
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* REQUIRED_ARGS: -O -inline -noboundscheck
|
||||
/* REQUIRED_ARGS: -O -inline -boundscheck=off
|
||||
*/
|
||||
// https://github.com/dlang/pull/13220
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue