rust/compiler
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
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Use ThinVec in a few more AST types. 2023-02-21 11:51:56 +11:00
rustc_ast_lowering pluralize stuff 2023-02-22 21:52:26 +00:00
rustc_ast_passes Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
rustc_ast_pretty Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
rustc_attr errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_baked_icu_data
rustc_borrowck Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_builtin_macros errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_codegen_cranelift Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_codegen_gcc Use List::empty() instead of mk_substs(&[]). 2023-02-24 07:33:02 +11:00
rustc_codegen_llvm Use List::empty() instead of mk_substs(&[]). 2023-02-24 07:33:02 +11:00
rustc_codegen_ssa Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_const_eval Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_data_structures Auto merge of #108300 - oli-obk:elsa, r=eholk 2023-02-22 08:44:30 +00:00
rustc_driver
rustc_driver_impl various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
rustc_error_codes docs/test: add UI test and docs for E0476 2023-02-25 19:31:02 +13:00
rustc_error_messages Handle selecting the default locale better 2023-02-23 01:14:10 +01:00
rustc_errors Rollup merge of #108456 - clubby789:ast-passes-diag-migrate, r=compiler-errors 2023-02-26 00:46:28 +01:00
rustc_expand make "proc macro panicked" translatable 2023-02-24 23:37:10 +02:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir diagnostics: if AssocFn has self argument, describe as method 2023-02-22 08:40:33 -07:00
rustc_hir_analysis Auto merge of #108450 - matthiaskrgr:rollup-rqvfgu3, r=matthiaskrgr 2023-02-25 16:48:04 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors 2023-02-25 13:55:26 +00:00
rustc_incremental errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_index
rustc_infer Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_interface Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_lexer
rustc_lint Rollup merge of #107890 - obeis:mapping-to-unit, r=cjgillot 2023-02-26 00:46:25 +01:00
rustc_lint_defs Add check for invalid \#[macro_export]\ arguments 2023-02-22 21:53:16 +00:00
rustc_llvm
rustc_log
rustc_macros Auto merge of #108340 - eggyal:remove_traversal_trait_aliases, r=oli-obk 2023-02-22 18:26:51 +00:00
rustc_metadata Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_middle Auto merge of #108450 - matthiaskrgr:rollup-rqvfgu3, r=matthiaskrgr 2023-02-25 16:48:04 +00:00
rustc_mir_build Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_mir_dataflow Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors 2023-02-25 13:55:26 +00:00
rustc_mir_transform Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors 2023-02-25 13:55:26 +00:00
rustc_monomorphize Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_parse parser: provide better errors on closures with braces missing 2023-02-23 19:05:13 +09:00
rustc_parse_format
rustc_passes Auto merge of #108473 - matthiaskrgr:rollup-qjyae58, r=matthiaskrgr 2023-02-26 02:04:23 +00:00
rustc_plugin_impl errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_privacy Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
rustc_query_impl Upgrade thin-vec from 0.2.9 to 0.2.12. 2023-02-21 11:51:55 +11:00
rustc_query_system Auto merge of #91742 - cjgillot:force-backtrace, r=estebank 2023-02-24 23:48:44 +00:00
rustc_resolve Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
rustc_serialize Auto merge of #104754 - nnethercote:more-ThinVec-in-ast, r=the8472 2023-02-21 07:02:57 +00:00
rustc_session Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_smir
rustc_span
rustc_symbol_mangling Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_target
rustc_trait_selection Rollup merge of #107941 - compiler-errors:str-has-u8-slice-for-auto, r=lcnr 2023-02-26 12:04:57 +01:00
rustc_traits Add mk_canonical_var_infos_from_iter. 2023-02-24 07:33:02 +11:00
rustc_transmute Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
rustc_ty_utils Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_type_ir