rust/src
Yuki Okushi 48da6758e5
Rollup merge of #75613 - estebank:explain-mut-method, r=petrochenkov
Add explanation for `&mut self` method call when expecting `-> Self`

When a user tries to use a method as if it returned a new value of the
same type as its receiver, we will emit a type error. Try to detect this
and provide extra explanation that the method modifies the receiver
in-place.

This has confused people in the wild, like in
https://users.rust-lang.org/t/newbie-why-the-commented-line-stops-the-snippet-from-compiling/47322
2020-08-18 09:27:47 +09:00
..
bootstrap Auto merge of #75472 - Mark-Simulacrum:mangling-config, r=eddyb 2020-08-16 16:58:13 +00:00
build_helper build: Harden env var tracking in build scripts 2020-07-22 19:51:19 +03:00
ci Auto merge of #75568 - ehuss:cloudabi-tier3, r=Mark-Simulacrum 2020-08-17 03:52:46 +00:00
doc Move CloudABI to tier 3. 2020-08-14 20:43:27 -07:00
etc Handle new HashMap layout in CDB, MSVC, WinDbg, etc. 2020-08-07 07:03:15 +01:00
librustc_apfloat
librustc_arena Simplify arena_types macros 2020-08-14 17:34:32 +01:00
librustc_ast replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_ast_lowering Auto merge of #75145 - davidtwco:issue-60607-preallocate-defid-for-lang-items, r=petrochenkov 2020-08-17 20:51:59 +00:00
librustc_ast_passes Flip order of const & type 2020-08-12 23:19:07 +00:00
librustc_ast_pretty Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
librustc_attr Rework rustc_serialize 2020-08-14 17:34:30 +01:00
librustc_builtin_macros Merge branch 'master' into feature/incorporate-tracing 2020-08-15 08:59:12 +05:30
librustc_codegen_llvm Auto merge of #75187 - pawanbisht62:feature/incorporate-tracing, r=oli-obk 2020-08-17 16:40:10 +00:00
librustc_codegen_ssa Auto merge of #75187 - pawanbisht62:feature/incorporate-tracing, r=oli-obk 2020-08-17 16:40:10 +00:00
librustc_data_structures Merge branch 'master' into feature/incorporate-tracing 2020-08-15 08:59:12 +05:30
librustc_driver Auto merge of #75575 - marmeladema:only-measure-drop-ast, r=eddyb 2020-08-15 23:55:56 +00:00
librustc_error_codes Rollup merge of #75482 - GuillaumeGomez:cleanup-e0752, r=pickfire 2020-08-14 14:46:51 -07:00
librustc_errors Rollup merge of #75389 - RalfJung:span_label, r=davidtwco 2020-08-18 09:27:39 +09:00
librustc_expand replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_feature fix min_const_generics version 2020-08-08 13:35:42 +02:00
librustc_fs_util
librustc_graphviz
librustc_hir hir: simplify is_range_literal 2020-08-16 15:42:27 +01:00
librustc_hir_pretty hir: introduce QPath::LangItem 2020-08-16 15:42:25 +01:00
librustc_incremental replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_index Auto merge of #75537 - tmiasko:match-branch-simplify, r=oli-obk 2020-08-15 13:41:05 +00:00
librustc_infer replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_interface replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_lexer Introduce rustc_lexer::is_ident and use it in couple of places 2020-08-11 00:08:04 +03:00
librustc_lint hir: simplify is_range_literal 2020-08-16 15:42:27 +01:00
librustc_llvm Rollup merge of #74643 - petrochenkov:noenvrerun, r=Mark-Simulacrum 2020-07-22 16:34:50 -07:00
librustc_macros Rework rustc_serialize 2020-08-14 17:34:30 +01:00
librustc_metadata replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_middle Auto merge of #75145 - davidtwco:issue-60607-preallocate-defid-for-lang-items, r=petrochenkov 2020-08-17 20:51:59 +00:00
librustc_mir Rollup merge of #75578 - 5M1Sec:master, r=oli-obk 2020-08-18 09:27:45 +09:00
librustc_mir_build replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_parse replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_parse_format fix clippy::map_identity: remove redundant .map(|x| x) call 2020-08-07 22:47:32 +02:00
librustc_passes Auto merge of #75145 - davidtwco:issue-60607-preallocate-defid-for-lang-items, r=petrochenkov 2020-08-17 20:51:59 +00:00
librustc_plugin_impl Increase recursion_limit in librustc_plugin_impl. 2020-08-08 12:05:10 +10:00
librustc_privacy hir: introduce QPath::LangItem 2020-08-16 15:42:25 +01:00
librustc_query_system replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_resolve resolve: support GenericBound::LangItemTrait 2020-08-16 15:42:29 +01:00
librustc_save_analysis save_analysis: support QPath::LangItem 2020-08-16 15:42:26 +01:00
librustc_serialize Fix rustc_serialize unit tests 2020-08-14 17:34:32 +01:00
librustc_session Rollup merge of #75223 - Aaron1011:feature/session-track-caller, r=eddyb 2020-08-16 14:59:29 -07:00
librustc_span hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
librustc_symbol_mangling replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_target replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_trait_selection Auto merge of #75536 - estebank:e0255-suggestion, r=varkor 2020-08-16 11:16:44 +00:00
librustc_traits replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_ty replaced log with tracing 2020-08-15 13:03:11 -07:00
librustc_typeck Rollup merge of #75613 - estebank:explain-mut-method, r=petrochenkov 2020-08-18 09:27:47 +09:00
librustdoc rustdoc: clean QPath::LangItem 2020-08-16 15:42:30 +01:00
llvm-project@86b120e6f3 Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit which includes LVI segfault fix 2020-07-12 18:49:14 +00:00
rustc
rustllvm Auto merge of #75416 - richkadel:llvm-coverage-map-gen-5.3, r=richkadel 2020-08-14 16:27:00 +00:00
test Rollup merge of #75613 - estebank:explain-mut-method, r=petrochenkov 2020-08-18 09:27:47 +09:00
tools clippy: support QPath::LangItem 2020-08-17 13:55:05 +01:00
README.md Update outdated readme 2020-07-27 22:05:34 -05:00
stage0.txt Bump to 1.47 2020-07-16 19:36:49 -04:00

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

  • rustc and its tests
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

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