rust/src/test/ui/allocator
Esteban Kuber 3aac307ca6 Mention implementers of unsatisfied trait
When encountering an unsatisfied trait bound, if there are no other
suggestions, mention all the types that *do* implement that trait:

```
error[E0277]: the trait bound `f32: Foo` is not satisfied
  --> $DIR/impl_wf.rs:22:6
   |
LL | impl Baz<f32> for f32 { }
   |      ^^^^^^^^ the trait `Foo` is not implemented for `f32`
   |
   = help: the following other types implement trait `Foo`:
             Option<T>
             i32
             str
note: required by a bound in `Baz`
  --> $DIR/impl_wf.rs:18:31
   |
LL | trait Baz<U: ?Sized> where U: Foo { }
   |                               ^^^ required by this bound in `Baz`
```

Mention implementers of traits in `ImplObligation`s.

Do not mention other `impl`s for closures, ranges and `?`.
2022-04-04 21:01:42 +00:00
..
auxiliary Implement Make handle_alloc_error default to panic (for no_std + liballoc) 2020-10-02 09:00:29 +02:00
allocator-args.rs syntax_ext: Turn #[global_allocator] into a regular attribute macro 2019-07-24 12:29:44 +03:00
allocator-args.stderr syntax_ext: Reuse built-in attribute template checking for macro attributes 2019-07-24 12:29:45 +03:00
custom-in-block.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
custom-in-submodule.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
custom.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
function-allocator.rs Remove licenses 2018-12-25 21:08:33 -07:00
function-allocator.stderr Update tests 2019-03-11 23:10:26 +03:00
hygiene.rs Remove with_legacy_ctxt 2019-09-15 09:15:38 +01:00
no_std-alloc-error-handler-custom.rs add integration tests, unwind across FFI boundary 2021-03-09 14:40:33 -05:00
no_std-alloc-error-handler-default.rs add integration tests, unwind across FFI boundary 2021-03-09 14:40:33 -05:00
not-an-allocator.rs Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
not-an-allocator.stderr Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
object-safe.rs make Allocator object-safe 2021-02-03 20:46:16 -05:00
two-allocators.rs syntax_ext: Turn #[global_allocator] into a regular attribute macro 2019-07-24 12:29:44 +03:00
two-allocators.stderr Various diagnostics clean ups/tweaks 2021-07-19 08:43:35 -07:00
two-allocators2.rs normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
two-allocators2.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
two-allocators3.rs normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
two-allocators3.stderr rustc_metadata: Move has_global_allocator from session to cstore 2019-11-28 20:59:57 +03:00
xcrate-use.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
xcrate-use2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00