#[instrument]ed functions never trigger a dead_code lint.
Closes (partially?) #1366
Solution
Include all of the input tokens in the output. In particular, the brace tokens surrounding the function body, the parenthesis surrounding the function parameters, and the angle brackets surrounding the generics must be included.
Motivation
#[instrument]
ed functions never trigger adead_code
lint.Closes (partially?) #1366
Solution
Include all of the input tokens in the output. In particular, the brace tokens surrounding the function body, the parenthesis surrounding the function parameters, and the angle brackets surrounding the generics must be included.
Prior art: https://github.com/andrewhickman/fn-error-context/commit/cfa749aaef91157bae8d3a984e6650bc00f6af68