diff options
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/autoderef.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/autoderef.rs b/crates/ra_hir/src/ty/autoderef.rs index 24a386558..d95879e46 100644 --- a/crates/ra_hir/src/ty/autoderef.rs +++ b/crates/ra_hir/src/ty/autoderef.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | //! In certain situations, rust automatically inserts derefs as necessary: For | 1 | //! In certain situations, rust automatically inserts derefs as necessary: for |
2 | //! example, field accesses `foo.bar` still work when `foo` is actually a | 2 | //! example, field accesses `foo.bar` still work when `foo` is actually a |
3 | //! reference to a type with the field `bar`. This is an approximation of the | 3 | //! reference to a type with the field `bar`. This is an approximation of the |
4 | //! logic in rustc (which lives in librustc_typeck/check/autoderef.rs). | 4 | //! logic in rustc (which lives in librustc_typeck/check/autoderef.rs). |
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 2749d740c..ba2a44474 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -15,7 +15,7 @@ use crate::{ | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | // These tests compare the inference results for all expressions in a file | 17 | // These tests compare the inference results for all expressions in a file |
18 | // against snapshots of the current results. If you change something and these | 18 | // against snapshots of the expected results. If you change something and these |
19 | // tests fail expectedly, you can update the comparison files by deleting them | 19 | // tests fail expectedly, you can update the comparison files by deleting them |
20 | // and running the tests again. Similarly, to add a new test, just write the | 20 | // and running the tests again. Similarly, to add a new test, just write the |
21 | // test here in the same pattern and it will automatically write the snapshot. | 21 | // test here in the same pattern and it will automatically write the snapshot. |