From 44902b5aba005ba88ca22744957320c9d5c0a455 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 25 Apr 2021 09:19:44 +0300 Subject: [PATCH] ci: fix tests output files after 7f5c3cc --- vlib/v/checker/tests/chan_ref.out | 7 ------- vlib/v/checker/tests/modify_const_with_ref.out | 16 ++++++++-------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/vlib/v/checker/tests/chan_ref.out b/vlib/v/checker/tests/chan_ref.out index 62637642e8..3eeb76b907 100644 --- a/vlib/v/checker/tests/chan_ref.out +++ b/vlib/v/checker/tests/chan_ref.out @@ -12,10 +12,3 @@ vlib/v/checker/tests/chan_ref.vv:12:8: error: cannot push non-reference `St` on | ^ 13 | // the following works 14 | y := &St{} -vlib/v/checker/tests/chan_ref.vv:28:11: error: cannot have a mutable reference to object from `chan &St` - 26 | y := <-c - 27 | // this should fail - 28 | mut z := <-c - | ~~ - 29 | z.n = 9 - 30 | sem.post() diff --git a/vlib/v/checker/tests/modify_const_with_ref.out b/vlib/v/checker/tests/modify_const_with_ref.out index c392a9982b..c54a42da02 100644 --- a/vlib/v/checker/tests/modify_const_with_ref.out +++ b/vlib/v/checker/tests/modify_const_with_ref.out @@ -1,14 +1,14 @@ -g.v:9:6: warning: unused variable: `unused_var` - 7 | - 8 | fn main() { - 9 | mut unused_var := Foo{} - | ~~~~~~~~~~ - 10 | unused_var = Foo{} - 11 | mut c := &constant -g.v:11:14: error: `constant` is immutable, cannot have a mutable reference to it +vlib/v/checker/tests/modify_const_with_ref.vv:11:11: error: `constant` is immutable, cannot have a mutable reference to it 9 | mut unused_var := Foo{} 10 | unused_var = Foo{} 11 | mut c := &constant | ^ 12 | c.value = 200 13 | } +vlib/v/checker/tests/modify_const_with_ref.vv:9:6: error: unused variable: `unused_var` + 7 | + 8 | fn main() { + 9 | mut unused_var := Foo{} + | ~~~~~~~~~~ + 10 | unused_var = Foo{} + 11 | mut c := &constant