about summary refs log tree commit diff
path: root/src/test/ui/borrowck
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-11-03 12:26:59 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-11-23 12:17:47 -0800
commitc0e481731ba72eb120a74da454bb806397ca165c (patch)
tree925aeba96197784694e6837aba664f86b242c41e /src/test/ui/borrowck
parent42d7174bbc6f89f15a233d663f212e5e731f4722 (diff)
downloadrust-c0e481731ba72eb120a74da454bb806397ca165c.tar.gz
rust-c0e481731ba72eb120a74da454bb806397ca165c.zip
Remove logic duplication
Diffstat (limited to 'src/test/ui/borrowck')
-rw-r--r--src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr2
-rw-r--r--src/test/ui/borrowck/borrowck-consume-upcast-box.stderr2
-rw-r--r--src/test/ui/borrowck/mut-borrow-in-loop-2.stderr2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr b/src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr
index 00bb13caebd..cfaa8c08df8 100644
--- a/src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr
+++ b/src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr
@@ -8,7 +8,7 @@ LL |     consume(b);
 LL |     consume(b);
    |             ^ value used here after move
    |
-note: consider changing this parameter type in `consume` to borrow instead if ownering the value isn't necessary
+note: consider changing this parameter type in function `consume` to borrow instead if ownering the value isn't necessary
   --> $DIR/borrowck-consume-unsize-vec.rs:3:15
    |
 LL | fn consume(_: Box<[i32]>) {
diff --git a/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr b/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
index 103f45155d7..c73d1df971a 100644
--- a/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
+++ b/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr
@@ -8,7 +8,7 @@ LL |     consume(b);
 LL |     consume(b);
    |             ^ value used here after move
    |
-note: consider changing this parameter type in `consume` to borrow instead if ownering the value isn't necessary
+note: consider changing this parameter type in function `consume` to borrow instead if ownering the value isn't necessary
   --> $DIR/borrowck-consume-upcast-box.rs:5:15
    |
 LL | fn consume(_: Box<dyn Foo>) {
diff --git a/src/test/ui/borrowck/mut-borrow-in-loop-2.stderr b/src/test/ui/borrowck/mut-borrow-in-loop-2.stderr
index eaf53868014..4f287d3a735 100644
--- a/src/test/ui/borrowck/mut-borrow-in-loop-2.stderr
+++ b/src/test/ui/borrowck/mut-borrow-in-loop-2.stderr
@@ -8,7 +8,7 @@ LL |     for _ in 0..3 {
 LL |         Other::handle(value);
    |                       ^^^^^ value moved here, in previous iteration of loop
    |
-note: consider changing this parameter type in `handle` to borrow instead if ownering the value isn't necessary
+note: consider changing this parameter type in function `handle` to borrow instead if ownering the value isn't necessary
   --> $DIR/mut-borrow-in-loop-2.rs:9:22
    |
 LL |     fn handle(value: T) -> Self;