Eliminate backtrace_if_absent in Error::context This avoids stepping through the list of causes when adding context to the anyhow::Error type which is known to already hold a backtrace. Reduces the release-mode time of the following loop from 4 seconds to 4 milliseconds. let mut err = anyhow!("..."); for _ in 0..25000 { err = err.context("..."); }

Created by  David Tolnay  on October 27, 2019
BA4YE6QGRTYONATHUP347OFUBUCWXQPNZ6Q5DIQ2DLJLRZJ6AC4AC
Change contents