rust/tests
Matthias Krüger ffdb471872
Rollup merge of - estebank:issue-85843, r=wesleywiser
On borrow return type, suggest borrowing from arg or owned return type

When we encounter a function with a return type that has an anonymous lifetime with no argument to borrow from, besides suggesting the `'static` lifetime we now also suggest changing the arguments to be borrows or changing the return type to be an owned type.

```
error[E0106]: missing lifetime specifier
  --> $DIR/variadic-ffi-6.rs:7:6
   |
LL | ) -> &usize {
   |      ^ expected named lifetime parameter
   |
   = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
   |
LL | ) -> &'static usize {
   |       +++++++
help: instead, you are more likely to want to change one of the arguments to be borrowed...
   |
LL |     x: &usize,
   |        +
help: ...or alternatively, to want to return an owned value
   |
LL - ) -> &usize {
LL + ) -> usize {
   |
```

Fix .
2023-12-12 17:40:53 +01:00
..
assembly fix: stop emitting .debug_pubnames and .debug_pubtypes 2023-12-11 14:58:02 -05:00
auxiliary
codegen Remove codegen test that depends on optimizations 2023-12-10 09:18:26 -05:00
codegen-units
coverage Rollup merge of - Zalathar:body-closure, r=cjgillot 2023-12-09 00:48:10 -08:00
coverage-run-rustdoc
debuginfo
incremental Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
mir-opt End locals' live range before suspending coroutine 2023-12-11 23:11:20 +01:00
pretty Improve print_tts by changing tokenstream::Spacing. 2023-12-11 09:19:09 +11:00
run-make Improve print_tts by changing tokenstream::Spacing. 2023-12-11 09:19:09 +11:00
run-make-fulldeps
run-pass-valgrind
rustdoc Rollup merge of - hdost:patch-1, r=fmease 2023-12-05 16:08:35 +01:00
rustdoc-gui Extend GUI tests for doc_cfg 2023-12-07 10:44:55 +01:00
rustdoc-js rustdoc-search: fix fast path unboxing bindings 2023-12-10 20:53:53 -07:00
rustdoc-js-std Auto merge of - calebzulawski:sync-portable-simd-2023-11-19, r=workingjubilee 2023-12-02 18:04:01 +00:00
rustdoc-json
rustdoc-ui Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
ui Rollup merge of - estebank:issue-85843, r=wesleywiser 2023-12-12 17:40:53 +01:00
ui-fulldeps remove redundant imports 2023-12-10 10:56:22 +08:00
COMPILER_TESTS.md