about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2021-02-10 11:26:48 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2021-02-10 11:26:48 +0300
commitd932812134ff28d00a0c98791926b11d1fd2025a (patch)
tree7ca2ae395294da69c98f6809e3f90396d7b52a0f /docs/dev
parent36465b34b3b7f991ebf85680924acdb809b0494e (diff)
downloadrust-d932812134ff28d00a0c98791926b11d1fd2025a.tar.gz
rust-d932812134ff28d00a0c98791926b11d1fd2025a.zip
Use track caller in test documentation
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/architecture.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md
index 01063824f36..081ee5b9d90 100644
--- a/docs/dev/architecture.md
+++ b/docs/dev/architecture.md
@@ -372,11 +372,11 @@ Tests which directly call various API functions are a liability, because they ma
 So most of the tests look like this:
 
 ```rust
+#[track_caller]
 fn check(input: &str, expect: expect_test::Expect) {
     // The single place that actually exercises a particular API
 }
 
-
 #[test]
 fn foo() {
     check("foo", expect![["bar"]]);