diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-10 08:25:12 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-10 08:25:12 +0000 |
commit | 8ece5ad0c00a11c2ca60cd0d8f86b3b0d31c9996 (patch) | |
tree | 1291cdae663a1b2b86029f56630371b141e6dee7 /crates/ide_db/src/line_index | |
parent | 36465b34b3b7f991ebf85680924acdb809b0494e (diff) | |
parent | bfa99f20ffeaf2ef6f2647f2fc8c7b708c7d75d3 (diff) |
Merge #7619
7619: Add #[track_caller] to assist tests r=matklad a=yoshuawuyts
This points the source of a failed assertion to the code which called it, rather than the location within the assertion helper method. While working on https://github.com/rust-analyzer/rust-analyzer/pull/7617 I had trouble locating some failing tests, and it was only by adding these attributes during development that I was able to locate them.
This is only applied to test helpers, which means it comes at no runtime cost. And even then: I didn't experience any noticeable performance with this enabled or disabled. Mostly just a more pleasant experience debugging test failures (:
Co-authored-by: Yoshua Wuyts <[email protected]>
Diffstat (limited to 'crates/ide_db/src/line_index')
0 files changed, 0 insertions, 0 deletions