rust/tests/ui/auto-traits
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
..
auto-is-contextual.rs
auto-trait-projection-recursion.rs
auto-trait-validation.fixed
auto-trait-validation.rs
auto-trait-validation.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
auto-traits.rs
bad-generics-on-dyn.rs
bad-generics-on-dyn.stderr
issue-23080-2.rs
issue-23080-2.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
issue-23080.rs
issue-23080.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
issue-84075.rs
issue-84075.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
str-contains-slice-conceptually.rs Treat str as containing [u8] for auto trait purposes 2023-02-25 20:01:33 +00:00
str-contains-slice-conceptually.stderr Special note for str in auto traits 2023-02-25 20:01:33 +00:00
suspicious-impls-lint.rs
suspicious-impls-lint.stderr
typeck-auto-trait-no-supertraits-2.rs
typeck-auto-trait-no-supertraits-2.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
typeck-auto-trait-no-supertraits.rs
typeck-auto-trait-no-supertraits.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
typeck-default-trait-impl-constituent-types-2.rs
typeck-default-trait-impl-constituent-types-2.stderr
typeck-default-trait-impl-constituent-types.rs
typeck-default-trait-impl-constituent-types.stderr
typeck-default-trait-impl-negation.rs
typeck-default-trait-impl-negation.stderr
typeck-default-trait-impl-precedence.rs
typeck-default-trait-impl-precedence.stderr Rollup merge of #106360 - estebank:remove-borrow-suggestion, r=compiler-errors 2023-01-11 22:25:49 -08:00