rust/src
Dylan DPC 8f95dc8d4e
Rollup merge of #72533 - Diggsey:db-fix-arc-ub2, r=dtolnay
Resolve UB in Arc/Weak interaction (2)

Use raw pointers to avoid making any assertions about the data field.

Follow up from #72479, see that PR for more detail on the motivation.

@RalfJung I was able to avoid a lot of the changes to `Weak`, by making a helper type (`WeakInner`) - because of auto-deref and because the fields have the same name, the rest of the code continues to compile.
2020-05-27 03:09:12 +02:00
..
bootstrap bootstrap: propagate test-args to miri and clippy test suites 2020-05-24 09:45:14 +02:00
build_helper
ci Revert MSYS2 CI workaround 2020-05-22 19:08:39 +02:00
doc Update books 2020-05-25 17:17:27 -07:00
etc
liballoc Rollup merge of #72533 - Diggsey:db-fix-arc-ub2, r=dtolnay 2020-05-27 03:09:12 +02:00
libarena Be less aggressive with `DroplessArena`/`TypedArena` growth. 2020-05-13 11:35:32 +10:00
libcore Rollup merge of #72450 - csmoe:issue-72442, r=oli-obk 2020-05-25 23:58:56 +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 Collect tokens for `ast::Expr` 2020-05-24 15:54:48 -04:00
librustc_ast_lowering Collect tokens for `ast::Expr` 2020-05-24 15:54:48 -04: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 Use `OnceCell` instead of `Once` 2020-05-22 13:31:02 -07:00
librustc_codegen_ssa Removed all instances of const_field. 2020-05-24 19:38:54 +05:30
librustc_data_structures Replace `rustc_data_structures::sync::Once` with `OnceCell` 2020-05-22 13:26:39 -07:00
librustc_driver Use `OnceCell` instead of `Once` 2020-05-22 13:31:02 -07:00
librustc_error_codes Rollup merge of #72567 - GuillaumeGomez:cleanup-e0608, r=Dylan-DPC 2020-05-25 18:07:48 +02:00
librustc_errors
librustc_expand Collect tokens for `ast::Expr` 2020-05-24 15:54:48 -04:00
librustc_feature Implement `#[ffi_const]` and `#[ffi_pure]` function attributes 2020-05-20 01:16:11 +02:00
librustc_fs_util
librustc_hir Rollup merge of #72450 - csmoe:issue-72442, r=oli-obk 2020-05-25 23:58:56 +02: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
librustc_infer Document `collect_bounding_regions` 2020-05-22 18:03:08 +01:00
librustc_interface Add a small MIR validation pass 2020-05-25 21:44:36 +02:00
librustc_lexer Fix bug in shebang handling 2020-05-25 10:11:08 -04:00
librustc_lint Implement warning for unused dependencies. 2020-05-25 22:47:55 -07:00
librustc_llvm
librustc_macros
librustc_metadata Implement warning for unused dependencies. 2020-05-25 22:47:55 -07:00
librustc_middle Rollup merge of #72538 - rakshith-ravi:refactor/remove-const-query, r=oli-obk 2020-05-25 23:58:59 +02:00
librustc_mir Rollup merge of #72401 - ecstatic-morse:issue-72394, r=eddyb 2020-05-26 22:11:31 +02:00
librustc_mir_build Rollup merge of #72153 - lcnr:exhaustively-match, r=pnkfelix 2020-05-25 18:07:42 +02:00
librustc_parse Rollup merge of #72348 - chrissimpkins:fix-72253, r=estebank 2020-05-27 03:09:11 +02:00
librustc_passes Rollup merge of #72581 - samrat:allow-desugared-break-in-labeled-block, r=davidtwco 2020-05-26 22:11:33 +02:00
librustc_plugin_impl Remove ast::{Ident, Name} reexports. 2020-05-08 13:13:15 +02:00
librustc_privacy introduce newtype'd `Predicate<'tcx>` 2020-05-20 15:44:34 +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 Rollup merge of #72308 - Aaron1011:fix/hygiene-error-message, r=matthewjasper 2020-05-25 18:07:44 +02:00
librustc_save_analysis Use `OnceCell` instead of `Once` 2020-05-22 13:31:02 -07:00
librustc_session Rollup merge of #72342 - jsgf:warn-unused-deps, r=petrochenkov 2020-05-26 22:11:29 +02:00
librustc_span Remove `macro_defs` map 2020-05-22 16:57:25 -04:00
librustc_symbol_mangling Remove unused dependencies 2020-05-19 14:34:23 -07:00
librustc_target Export ZERO_AR_DATE for macos linker invocations 2020-05-26 07:38:43 -07:00
librustc_trait_selection Rollup merge of #72450 - csmoe:issue-72442, r=oli-obk 2020-05-25 23:58:56 +02:00
librustc_traits Auto merge of #72362 - matthewjasper:remove-rescope, r=nikomatsakis 2020-05-24 04:15:08 +00:00
librustc_ty Use `OnceCell` instead of `Once` 2020-05-22 13:31:02 -07:00
librustc_typeck Rollup merge of #72544 - sexxi-goose:upvars_mentioned, r=matthewjasper 2020-05-25 11:01:08 +02:00
librustdoc Rollup merge of #72294 - GuillaumeGomez:js-cleanup, r=kinnison 2020-05-26 22:11:26 +02:00
libserialize linker: More systematic handling of CRT objects 2020-05-14 10:45:11 +03:00
libstd Auto merge of #72472 - LeSeulArtichaut:sync-command, r=dtolnay 2020-05-25 02:48:55 +00: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 #72348 - chrissimpkins:fix-72253, r=estebank 2020-05-27 03:09:11 +02:00
tools Import missing functions from storage.js 2020-05-26 15:11:44 +02:00
README.md
stage0.txt

README.md

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.