rust/compiler
Esteban Küber 065454dd1d More move error suggestions to clone
```
error[E0507]: cannot move out of `val`, a captured variable in an `FnMut` closure
  --> $DIR/issue-87456-point-to-closure.rs:10:28
   |
LL |     let val = String::new();
   |         --- captured outer variable
LL |
LL |     take_mut(|| {
   |              -- captured by this `FnMut` closure
LL |
LL |         let _foo: String = val;
   |                            ^^^ move occurs because `val` has type `String`, which does not implement the `Copy` trait
   |
help: consider borrowing here
   |
LL |         let _foo: String = &val;
   |                            +
help: consider cloning the value if the performance cost is acceptable
   |
LL |         let _foo: String = val.clone();
   |                               ++++++++
```
2024-04-11 16:41:41 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_ast_ir
rustc_ast_lowering Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_ast_passes Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_ast_pretty Add pattern types to ast 2024-04-08 11:54:22 +00:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck More move error suggestions to clone 2024-04-11 16:41:41 +00:00
rustc_builtin_macros Add pattern types to parser 2024-04-08 11:57:17 +00:00
rustc_codegen_cranelift Only traverse mono-reachable blocks in cg_clif 2024-04-07 16:46:21 -04:00
rustc_codegen_gcc Save/restore more items in cache with incremental compilation 2024-04-06 10:59:24 -04:00
rustc_codegen_llvm Auto merge of #123185 - scottmcm:more-typed-copy, r=compiler-errors 2024-04-10 16:32:41 +00:00
rustc_codegen_ssa Put the NONTEMPORAL case first 2024-04-09 08:51:33 -07:00
rustc_const_eval Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_data_structures
rustc_driver
rustc_driver_impl driver: unconditionally show update nightly hint 2024-04-09 13:37:27 +00:00
rustc_error_codes
rustc_error_messages
rustc_errors Add redundant_lifetime_args lint 2024-04-09 12:15:27 -04:00
rustc_expand
rustc_feature Set the correct tracking issue for pattern types 2024-04-08 20:53:05 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_hir_analysis Auto merge of #121346 - m-ou-se:temp-lifetime-if-else-match, r=compiler-errors 2024-04-10 18:52:51 +00:00
rustc_hir_pretty Thread pattern types through the HIR 2024-04-08 12:00:07 +00:00
rustc_hir_typeck Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_interface Ensure we do not accidentally insert new early aborts in the analysis passes 2024-04-08 14:44:10 +00:00
rustc_lexer
rustc_lint Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_lint_defs Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
rustc_llvm Rollup merge of #123612 - kxxt:riscv-target-abi, r=jieyouxu,nikic,DianQK 2024-04-10 04:27:40 +02:00
rustc_log
rustc_macros
rustc_metadata Auto merge of #123099 - oli-obk:span_tcx, r=petrochenkov 2024-04-09 03:04:20 +00:00
rustc_middle Fix stage 2 2024-04-09 12:17:34 -04:00
rustc_mir_build Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_mir_dataflow Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_mir_transform Only assert for child/parent projection compatibility AFTER checking that theyre coming from the same place 2024-04-10 10:13:24 -04:00
rustc_monomorphize Only collect mono items from reachable blocks 2024-04-07 14:36:42 -04:00
rustc_next_trait_solver Auto merge of #122077 - oli-obk:eager_opaque_checks4, r=lcnr 2024-04-08 23:01:50 +00:00
rustc_parse parser: reduce visibility of unnecessary public UnmatchedDelim 2024-04-08 23:55:48 +09:00
rustc_parse_format
rustc_passes Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_pattern_analysis Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_privacy Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
rustc_query_impl
rustc_query_system Remove sharding for VecCache 2024-04-06 10:49:31 -04:00
rustc_resolve
rustc_sanitizers sanitizers: Create the rustc_sanitizers crate 2024-04-08 12:05:41 -07:00
rustc_serialize
rustc_session Auto merge of #123099 - oli-obk:span_tcx, r=petrochenkov 2024-04-09 03:04:20 +00:00
rustc_smir Rollup merge of #123659 - celinval:smir-fix-intrinsic, r=oli-obk 2024-04-10 16:15:23 +02:00
rustc_span Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_symbol_mangling Rollup merge of #123649 - maurer:kcfi-v0, r=compiler-errors 2024-04-09 06:02:24 +02:00
rustc_target force_array -> is_consecutive 2024-04-08 11:31:43 +09:00
rustc_trait_selection Add a helper for extending a span to include any trailing whitespace 2024-04-09 14:06:09 -04:00
rustc_traits
rustc_transmute Rollup merge of #123367 - jswrenn:layoutify, r=compiler-errors 2024-04-08 22:06:21 +02:00
rustc_ty_utils Handle const generic pattern types 2024-04-09 16:42:45 -03:00
rustc_type_ir Auto merge of #122077 - oli-obk:eager_opaque_checks4, r=lcnr 2024-04-08 23:01:50 +00:00
stable_mir Rollup merge of #123659 - celinval:smir-fix-intrinsic, r=oli-obk 2024-04-10 16:15:23 +02:00