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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-projection-recursion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
auto-traits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-generics-on-dyn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-generics-on-dyn.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23080-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23080-2.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
issue-23080.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23080.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
issue-84075.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suspicious-impls-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-auto-trait-no-supertraits-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-constituent-types-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-constituent-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-constituent-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-negation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-negation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-precedence.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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