rust/src
Ralf Jung 8d64fd80ad
Rollup merge of #72499 - mendess:master, r=dtolnay
Override Box::<[T]>::clone_from

Avoid dropping and reallocating when cloning to an existing box if the lengths are the same.

It would be nice if this could also be specialized for `Copy` but I don't know how that works since it's not on stable. Will gladly look into it if it's deemed as a good idea.

This is my first PR with code, hope I did everything right 😄
2020-05-30 13:45:06 +02:00
..
bootstrap Auto merge of #72671 - flip1995:clippyup, r=Xanewok 2020-05-29 11:16:45 +00:00
build_helper
ci Revert MSYS2 CI workaround 2020-05-22 19:08:39 +02:00
doc Rollup merge of #72439 - westernmagic:master, r=Amanieu 2020-05-29 21:58:34 +02:00
etc
liballoc Rollup merge of #72499 - mendess:master, r=dtolnay 2020-05-30 13:45:06 +02:00
libarena Be less aggressive with DroplessArena/TypedArena growth. 2020-05-13 11:35:32 +10:00
libcore Rollup merge of #72368 - CAD97:rangeto, r=dtolnay 2020-05-30 13:45:02 +02:00
libfmt_macros Fix tests 2020-05-18 14:41:34 +01:00
libgraphviz
libpanic_abort
libpanic_unwind make abort intrinsic safe, and correct its documentation 2020-05-17 11:23:42 +02:00
libproc_macro Add test for proc_macro::LineColumn 2020-05-21 17:15:13 -07:00
libprofiler_builtins
librustc_apfloat
librustc_ast Revert "Move functions to librustc_parse" 2020-05-29 00:19:11 -04:00
librustc_ast_lowering Rollup merge of #72750 - marmeladema:remove-as-local-node-id, r=petrochenkov 2020-05-30 12:39:23 +09:00
librustc_ast_passes Disallow forbidden usage of non-ascii identifiers. 2020-05-17 01:31:18 +08:00
librustc_ast_pretty Move InlineAsmTemplatePiece and InlineAsmOptions to librustc_ast 2020-05-18 14:41:33 +01:00
librustc_attr Fix clippy warnings 2020-05-11 17:13:32 +02:00
librustc_builtin_macros Collect tokens for ast::Expr 2020-05-24 15:54:48 -04:00
librustc_codegen_llvm Minor fixes, as requested in PR review 2020-05-24 08:20:40 +02:00
librustc_codegen_ssa Rollup merge of #71804 - petrochenkov:static-pie, r=cuviper 2020-05-29 21:58:24 +02:00
librustc_data_structures Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
librustc_driver Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
librustc_error_codes Rollup merge of #72731 - GuillaumeGomez:cleanup-e0619, r=Dylan-DPC 2020-05-29 20:21:26 +02:00
librustc_errors Fix spacing of expected/found notes without a label 2020-05-27 16:27:15 -07:00
librustc_expand Collect tokens for ast::Expr 2020-05-24 15:54:48 -04:00
librustc_feature Rollup merge of #71862 - LeSeulArtichaut:unsafe-block-in-unsafe-fn, r=nikomatsakis 2020-05-29 21:58:25 +02:00
librustc_fs_util
librustc_hir Remove remaining calls to as_local_node_id 2020-05-29 20:05:44 +01:00
librustc_hir_pretty Move InlineAsmTemplatePiece and InlineAsmOptions to librustc_ast 2020-05-18 14:41:33 +01:00
librustc_incremental Change WorkProduct::saved_files to an Option. 2020-05-12 17:55:07 +10:00
librustc_index Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
librustc_infer Rollup merge of #72162 - cuviper:extend_one, r=Mark-Simulacrum 2020-05-30 12:39:10 +09:00
librustc_interface more LocalDefIds 2020-05-30 12:22:29 +02:00
librustc_lexer Fix bug in shebang handling 2020-05-25 10:11:08 -04:00
librustc_lint Rollup merge of #71862 - LeSeulArtichaut:unsafe-block-in-unsafe-fn, r=nikomatsakis 2020-05-29 21:58:25 +02:00
librustc_llvm Don't skip building LLVM if already built 2020-05-02 18:43:55 -04:00
librustc_macros Monomorphise load_from_disk_and_cache_in_memory. 2020-05-01 14:29:35 +02:00
librustc_metadata Implement warning for unused dependencies. 2020-05-25 22:47:55 -07:00
librustc_middle Rollup merge of #72299 - lcnr:sized_help, r=petrochenkov 2020-05-30 13:45:00 +02:00
librustc_mir Rollup merge of #72299 - lcnr:sized_help, r=petrochenkov 2020-05-30 13:45:00 +02:00
librustc_mir_build Auto merge of #72756 - RalfJung:rollup-tbjmtx2, r=RalfJung 2020-05-29 23:43:20 +00:00
librustc_parse Rollup merge of #72724 - Aaron1011:revert-tokenstream-expand, r=petrochenkov 2020-05-30 12:39:19 +09:00
librustc_passes liveness: Warn about unused captured variables 2020-05-29 17:46:38 +02:00
librustc_plugin_impl Remove ast::{Ident, Name} reexports. 2020-05-08 13:13:15 +02:00
librustc_privacy iterate List by value 2020-05-23 12:24:19 +02:00
librustc_query_system Rollup merge of #72126 - nnethercote:change-WorkProduct-saved_files, r=alexcrichton 2020-05-14 18:21:50 +02:00
librustc_resolve Remove remaining calls to as_local_node_id 2020-05-29 20:05:44 +01:00
librustc_save_analysis Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
librustc_session Implement RFC 2585 2020-05-27 20:37:56 +02:00
librustc_span Rollup merge of #71862 - LeSeulArtichaut:unsafe-block-in-unsafe-fn, r=nikomatsakis 2020-05-29 21:58:25 +02:00
librustc_symbol_mangling iterate List by value 2020-05-23 12:24:19 +02:00
librustc_target Rollup merge of #72439 - westernmagic:master, r=Amanieu 2020-05-29 21:58:34 +02:00
librustc_trait_selection Rollup merge of #72621 - Aaron1011:fix/trait-select-error, r=nikomatsakis 2020-05-30 12:39:14 +09:00
librustc_traits Auto merge of #72362 - matthewjasper:remove-rescope, r=nikomatsakis 2020-05-24 04:15:08 +00:00
librustc_ty iterate List by value 2020-05-23 12:24:19 +02:00
librustc_typeck Rollup merge of #72441 - doctorn:late-bound-lifetime-ice, r=nikomatsakis 2020-05-30 13:45:04 +02:00
librustdoc Update src/librustdoc/core.rs 2020-05-28 13:23:33 -04:00
libserialize linker: More systematic handling of CRT objects 2020-05-14 10:45:11 +03:00
libstd Rollup merge of #72162 - cuviper:extend_one, r=Mark-Simulacrum 2020-05-30 12:39:10 +09:00
libterm
libtest Fix clippy warnings 2020-05-11 17:13:32 +02:00
libunwind rustc_target: Avoid an inappropriate use of post_link_objects 2020-05-20 21:33:37 +03:00
llvm-project@943dbddc8e Update LLVM submodule 2020-05-20 20:14:16 +02:00
rtstartup
rustc
rustllvm rustllvm: Fix warnings about unused function parameters 2020-05-21 22:05:19 +03:00
stdarch@ec6fccd34c Update stdarch 2020-05-09 16:03:40 -04:00
test Rollup merge of #72441 - doctorn:late-bound-lifetime-ice, r=nikomatsakis 2020-05-30 13:45:04 +02:00
tools Auto merge of #72671 - flip1995:clippyup, r=Xanewok 2020-05-29 11:16:45 +00:00
README.md
stage0.txt

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.