used to find affected function/variable, and for checking whether we are in a deprecated / speculative scope
feature state from the preview flag
surpress error message
location of error
printf-style format string
(optional) argument for first %s format specifier
(optional) argument for second %s format specifier
(optional) argument for third %s format specifier
whether an actual safe error (not deprecation) occured
Like setUnsafe, but for safety errors still behind preview switches
Given a FeatureState fs, for example dip1000 / dip25 / systemVariables, the behavior changes based on the setting:
- In case of -revert=fs, it does nothing. - In case of -preview=fs, it's the same as setUnsafe - By default, print a deprecation in @safe functions, or store an attribute violation in inferred functions.