rust/library/core/src
Matthias Krüger 6970cf5a23
Rollup merge of #91096 - compiler-errors:elaborate_opaque_trait, r=estebank
Print associated types on opaque `impl Trait` types

This PR generalizes #91021, printing associated types for all opaque `impl Trait` types instead of just special-casing for future.

before:
```
error[E0271]: type mismatch resolving `<impl Iterator as Iterator>::Item == u32`
```

after:
```
error[E0271]: type mismatch resolving `<impl Iterator<Item = usize> as Iterator>::Item == u32`
```

---

Questions:
1. I'm kinda lost in binders hell with this one. Is all of the `rebind`ing necessary?
2. Is there a map collection type that will give me a stable iteration order? Doesn't seem like TraitRef is Ord, so I can't just sort later..
3. I removed the logic that suppresses printing generator projection types. It creates outputs like this [gist](https://gist.github.com/compiler-errors/d6f12fb30079feb1ad1d5f1ab39a3a8d). Should I put that back?
4. I also added spaces between traits, `impl A+B` -> `impl A + B`. I quite like this change, but is there a good reason to keep it like that?

r? ````@estebank````
2021-11-25 15:05:37 +01:00
..
alloc Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
array Moar #[inline] 2021-11-10 11:57:14 -08:00
char Turn all 0x1b_u8 into '\x1b' or b'\x1b' 2021-11-19 18:14:18 +01:00
convert Make From impls of NonZero integer const. 2021-10-20 12:04:58 +09:00
fmt Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
future Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
hash Rollup merge of #89729 - jkugelman:must-use-core-std-constructors, r=joshtriplett 2021-10-11 14:11:43 +02:00
iter Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
macros Document unreachable!() custom panic message 2021-11-11 13:41:21 +00:00
mem Add #[must_use] to mem/ptr functions 2021-10-30 18:54:48 -04:00
num Rollup merge of #91008 - Urgau:float-minimum-maximum, r=scottmcm 2021-11-21 09:55:13 +01:00
ops Add generator lang-item 2021-11-23 10:34:16 -08:00
panic Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
prelude Move asm! and global_asm! to core::arch 2021-07-18 18:30:58 -04:00
ptr Fill in tracking issue for feature const_align_offset 2021-11-16 23:58:40 +03:00
slice Auto merge of #90821 - scottmcm:new-slice-reverse, r=Mark-Simulacrum 2021-11-15 20:19:23 +00:00
str libcore: assume the input of next_code_point and next_code_point_reverse is UTF-8-like 2021-11-21 17:05:55 +01:00
stream Apply 16 commits (squashed) 2021-09-25 20:04:35 +02:00
sync Make From impls of NonZero integer const. 2021-10-20 12:04:58 +09:00
task Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
unicode Regenerate tables for Unicode 14.0.0 2021-10-06 17:49:33 -07:00
any.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
ascii.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
bool.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
borrow.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cell.rs Add comments regarding superfluous !Sync impls 2021-11-08 13:07:20 -05:00
clone.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
cmp.rs Add #[repr(i8)] to Ordering 2021-10-03 20:59:54 -07:00
default.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
ffi.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00
hint.rs Stabilize unreachable_unchecked as const fn 2021-10-04 01:04:17 -04:00
internal_macros.rs Added docs to internal_macro const 2021-10-22 10:07:35 +13:00
intrinsics.rs Re-enable copy[_nonoverlapping]() runtime checks 2021-11-09 10:02:09 +01:00
lazy.rs Make more From impls const 2021-10-18 19:19:28 +09:00
lib.rs Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid 2021-11-24 22:56:37 +01:00
marker.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
option.rs Rollup merge of #89951 - ojeda:stable-unwrap_unchecked, r=dtolnay 2021-10-31 09:20:27 +01:00
panic.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
panicking.rs Permit const assertions in stdlib 2021-11-08 17:06:00 -05:00
pin.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Remove unnecessary doc links 2021-11-19 19:13:53 +03:00
result.rs Stabilize option_result_unwrap_unchecked 2021-10-20 04:03:43 +02:00
time.rs Partially stabilize duration_consts_2 2021-11-22 13:09:08 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00