Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/test_utils/src/lib.rs')
| -rw-r--r-- | crates/test_utils/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index 871ff20a9b..d811331ae3 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs @@ -440,6 +440,7 @@ pub fn bench(label: &'static str) -> impl Drop { /// Checks that the `file` has the specified `contents`. If that is not the /// case, updates the file and then fails the test. +#[track_caller] pub fn ensure_file_contents(file: &Path, contents: &str) { if let Err(()) = try_ensure_file_contents(file, contents) { panic!("Some files were not up-to-date"); |