about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAaron Kofsky <aaronko@umich.edu>2022-06-09 14:03:35 -0400
committerAaron Kofsky <aaronko@umich.edu>2022-06-09 14:03:35 -0400
commitcdf66060666fa53cbca9647ac7434bdfd2cc37a5 (patch)
tree6a1ca4eabff569c136d91778f33a5afdd9117218 /src/test
parent211feb106a188fef698bb36d19402808f9930154 (diff)
downloadrust-cdf66060666fa53cbca9647ac7434bdfd2cc37a5.tar.gz
rust-cdf66060666fa53cbca9647ac7434bdfd2cc37a5.zip
Use `multipart_suggestion` to create an applicable suggestion.
The "consider explicitly droping" can now suggest a machine applicable
suggestion now.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/lint/let_underscore/let_underscore_drop.stderr4
-rw-r--r--src/test/ui/lint/let_underscore/let_underscore_lock.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/lint/let_underscore/let_underscore_drop.stderr b/src/test/ui/lint/let_underscore/let_underscore_drop.stderr
index 5034f682bb7..dfac6d3f741 100644
--- a/src/test/ui/lint/let_underscore/let_underscore_drop.stderr
+++ b/src/test/ui/lint/let_underscore/let_underscore_drop.stderr
@@ -11,8 +11,8 @@ LL |     let _unused = NontrivialDrop;
    |         ~~~~~~~
 help: consider explicitly droping with `std::mem::drop`
    |
-LL |     let _ = drop(...);
-   |             ~~~~~~~~~
+LL |     let _ = drop(NontrivialDrop);
+   |             +++++              +
 
 warning: 1 warning emitted
 
diff --git a/src/test/ui/lint/let_underscore/let_underscore_lock.stderr b/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
index 7ff42cb1524..f37483ddd96 100644
--- a/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
+++ b/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
@@ -11,8 +11,8 @@ LL |     let _unused = data.lock().unwrap();
    |         ~~~~~~~
 help: consider explicitly droping with `std::mem::drop`
    |
-LL |     let _ = drop(...);
-   |             ~~~~~~~~~
+LL |     let _ = drop(data.lock().unwrap());
+   |             +++++                    +
 
 error: aborting due to previous error