Add explicit deprecation suffixes to dangerous methods #check-lint-warning
Split into two commits:
- the first adds the deprecation notice to the
Adds()
function, and makes non-functional code collapsing changes. - the second adds the
_deprecated
suffix to the two dangerous functions that return a result reference while also mutating internal state (this is what triggers the lint warning)
There is no functional change in this PR.