rust/tests/ui/intrinsics
bors 1d52972dd8 Auto merge of #125778 - estebank:issue-67100, r=compiler-errors
Use parenthetical notation for `Fn` traits

Always use the `Fn(T) -> R` format when printing closure traits instead of `Fn<(T,), Output = R>`.

Address #67100:

```
error[E0277]: expected a `Fn()` closure, found `F`
 --> file.rs:6:13
  |
6 |     call_fn(f)
  |     ------- ^ expected an `Fn()` closure, found `F`
  |     |
  |     required by a bound introduced by this call
  |
  = note: wrap the `F` in a closure with no arguments: `|| { /* code */ }`
note: required by a bound in `call_fn`
 --> file.rs:1:15
  |
1 | fn call_fn<F: Fn() -> ()>(f: &F) {
  |               ^^^^^^^^^^ required by this bound in `call_fn`
help: consider further restricting this bound
  |
5 | fn call_any<F: std::any::Any + Fn()>(f: &F) {
  |                              ++++++
```
2024-06-03 08:14:03 +00:00
..
auxiliary
always-extern.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
always-extern.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
always-gets-overridden.rs Add a scheme for moving away from extern "rust-intrinsic" entirely 2024-03-04 16:13:50 +00:00
bad-intrinsic-monomorphization.rs Fixup 2 ui tests using changed intrinsics 2024-04-16 12:39:53 +00:00
bad-intrinsic-monomorphization.stderr
const-eval-select-backtrace-std.rs
const-eval-select-backtrace-std.run.stderr
const-eval-select-backtrace.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-backtrace.run.stderr const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-bad.rs
const-eval-select-bad.stderr Use parenthetical notation for Fn traits 2024-05-29 22:26:54 +00:00
const-eval-select-stability.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-stability.stderr
const-eval-select-x86_64.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
feature-gate-safe-intrinsic.rs
feature-gate-safe-intrinsic.stderr
incorrect-read_via_copy-defn.rs Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-read_via_copy-defn.stderr Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-transmute.rs Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-transmute.stderr Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
intrinsic-alignment.rs Make more of the test suite run on Mac Catalyst 2024-05-28 12:31:33 +02:00
intrinsic-assume.rs
intrinsic-atomics-cc.rs
intrinsic-atomics.rs
intrinsic-nearby.rs
intrinsic-raw_eq-const-bad.rs
intrinsic-raw_eq-const-bad.stderr
intrinsic-raw_eq-const.rs
intrinsic-unreachable.rs
intrinsic-volatile.rs
intrinsics-integer.rs Fixup 2 ui tests using changed intrinsics 2024-04-16 12:39:53 +00:00
intrinsics-math.rs
issue-28575.rs
issue-28575.stderr
issue-84297-reifying-copy.rs
non-integer-atomic.rs
non-integer-atomic.stderr
not-overridden.rs Add a scheme for moving away from extern "rust-intrinsic" entirely 2024-03-04 16:13:50 +00:00
not-overridden.stderr Add a scheme for moving away from extern "rust-intrinsic" entirely 2024-03-04 16:13:50 +00:00
panic-uninitialized-zeroed.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
reify-intrinsic.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
reify-intrinsic.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
safe-intrinsic-mismatch.rs Give the (un)likely intrinsics fallback bodies 2024-02-16 22:26:01 +00:00
safe-intrinsic-mismatch.stderr Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
unchecked_math_unsafe.rs
unchecked_math_unsafe.stderr
unchecked_math_unstable.rs
unchecked_math_unstable.stderr