Skip to main content

builtin_function_deprecation

Function builtin_function_deprecation 

Source
pub fn builtin_function_deprecation(name: &str) -> Option<DeprecatedBy>
Expand description

The replacement when name resolves to a deprecated built-in function, None otherwise. One typed lookup over the same table SHOW FUNCTIONS renders, so no caller keeps a second list of deprecated names. A name’s arity rows share one deprecated_by (the lockstep test below), so the first row that carries a replacement speaks for every sibling.