diff options
| author | bors <bors@rust-lang.org> | 2023-01-11 11:17:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-11 11:17:22 +0000 |
| commit | b22c152958eade17a71d899b29a2d39bcc77aa48 (patch) | |
| tree | ec6da75dc598a0a4086c0cc032c86d7241be1bc1 /src/test/ui/lint/lint-unconditional-recursion.stderr | |
| parent | 8ecaad85f61375b18e1667b51a3ef350121d2ca0 (diff) | |
| parent | 40ba0e84d53f605ccf01836e9c2d27892728ae81 (diff) | |
| download | rust-b22c152958eade17a71d899b29a2d39bcc77aa48.tar.gz rust-b22c152958eade17a71d899b29a2d39bcc77aa48.zip | |
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
Move src/test to the root
See MCP at rust-lang/compiler-team#573
There may be more changes needed.
The first commit is just the move of the files:
You can check that the first commit did not do anything else than renames by running
```
git diff --diff-filter=r -M100% <rust-lang remote>/master <first commit hash>
```
The output should be empty, because the filter excludes renames, and the match threshold for qualifying a rename is 100%.
The second one is mostly a "find and replace" of `src/test` to `tests` and whatever is needed to make CI pass.
What is left to do:
---
- [x] Move directory
- [ ] Change references to `src/test`
- [x] Change references in-tree
- [ ] Change references in submodules / out-of-tree docs
- [x] Make CI pass:
- [x] Fix tidy
- [x] Fix tests
- [x] Bless tests if needed (shouldn't normally)
- [ ] Merge it !
Diffstat (limited to 'src/test/ui/lint/lint-unconditional-recursion.stderr')
| -rw-r--r-- | src/test/ui/lint/lint-unconditional-recursion.stderr | 201 |
1 files changed, 0 insertions, 201 deletions
diff --git a/src/test/ui/lint/lint-unconditional-recursion.stderr b/src/test/ui/lint/lint-unconditional-recursion.stderr deleted file mode 100644 index 9d200a7898e..00000000000 --- a/src/test/ui/lint/lint-unconditional-recursion.stderr +++ /dev/null @@ -1,201 +0,0 @@ -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:4:1 - | -LL | fn foo() { - | ^^^^^^^^ cannot return without recursing -LL | foo(); - | ----- recursive call site - | - = help: a `loop` may express intention better if this is on purpose -note: the lint level is defined here - --> $DIR/lint-unconditional-recursion.rs:1:9 - | -LL | #![deny(unconditional_recursion)] - | ^^^^^^^^^^^^^^^^^^^^^^^ - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:14:1 - | -LL | fn baz() { - | ^^^^^^^^ cannot return without recursing -LL | if true { -LL | baz() - | ----- recursive call site -LL | } else { -LL | baz() - | ----- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:26:1 - | -LL | fn quz() -> bool { - | ^^^^^^^^^^^^^^^^ cannot return without recursing -LL | if true { -LL | while quz() {} - | ----- recursive call site -... -LL | loop { quz(); } - | ----- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:37:5 - | -LL | fn bar(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | self.bar() - | ---------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:43:5 - | -LL | fn bar(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | loop { -LL | self.bar() - | ---------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:52:5 - | -LL | fn bar(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | 0.bar() - | ------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:65:5 - | -LL | fn bar(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | Foo2::bar(self) - | --------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:71:5 - | -LL | fn bar(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | loop { -LL | Foo2::bar(self) - | --------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:81:5 - | -LL | fn qux(&self) { - | ^^^^^^^^^^^^^ cannot return without recursing -LL | self.qux(); - | ---------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:86:5 - | -LL | fn as_ref(&self) -> &Self { - | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | Baz::as_ref(self) - | ----------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:93:5 - | -LL | fn default() -> Baz { - | ^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | let x = Default::default(); - | ------------------ recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:102:5 - | -LL | fn deref(&self) -> &() { - | ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | &**self - | ------ recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:109:5 - | -LL | fn index(&self, x: usize) -> &Baz { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | &self[x] - | ------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:118:5 - | -LL | fn deref(&self) -> &Baz { - | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | self.as_ref() - | ------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:162:1 - | -LL | pub fn drop_and_replace(mut a: Option<String>) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | a = None; -LL | drop_and_replace(a); - | ------------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:168:1 - | -LL | pub fn call() -> String { - | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | let s = String::new(); -LL | call(); - | ------ recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:175:1 - | -LL | pub fn overflow_check(a: i32, b: i32) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -LL | let _ = a + b; -LL | overflow_check(a, b); - | -------------------- recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: function cannot return without recursing - --> $DIR/lint-unconditional-recursion.rs:186:5 - | -LL | fn default() -> Self { - | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing -... -LL | ..Default::default() - | ------------------ recursive call site - | - = help: a `loop` may express intention better if this is on purpose - -error: aborting due to 18 previous errors - |
