1
Fork 0
rust/compiler/rustc_trait_selection/src
Matthias Krüger 2bc553c6ea
Rollup merge of #107941 - compiler-errors:str-has-u8-slice-for-auto, r=lcnr
Treat `str` as containing `[u8]` for auto trait purposes

Wanted to gauge ``@rust-lang/lang`` and ``@rust-lang/types`` teams' thoughts on treating `str` as "containing" a `[u8]` slice for auto-trait purposes.

``@dtolnay`` brought this up in https://github.com/rust-lang/rust/issues/13231#issuecomment-1399386472 as a blocker for future `str` type librarification, and I think it's both a valid concern and very easy to fix. I'm interested in actually doing that `str` type librarification (#107939), but this probably should be considered in the mean time regardless of that PR.

r? types for the impl, though this definitely needs an FCP.
2023-02-26 12:04:57 +01:00
..
solve Rollup merge of #107941 - compiler-errors:str-has-u8-slice-for-auto, r=lcnr 2023-02-26 12:04:57 +01:00
traits Special note for str in auto traits 2023-02-25 20:01:33 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
infer.rs Rollup merge of #108350 - compiler-errors:assoc-type-bound-dogfooding, r=oli-obk 2023-02-23 06:18:07 +01:00
lib.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00