rust/src
Mazdak Farrokhzad 6a8683fcd0
Rollup merge of #69896 - petrochenkov:reqname2, r=Centril
parse: Tweak the function parameter edition check

Follow-up to https://github.com/rust-lang/rust/pull/69801.

Edition of a code fragment is inferred from "the place where the code is written".
For individual tokens like edition-specific keywords it may be the span of the token itself ("uninterpolated" span), but for larger code fragments it's probably not, in the test example the trait method is obviously written in "2015 edition code".

r? @Centril
2020-03-11 10:36:33 +01:00
..
bootstrap Rollup merge of #69631 - RalfJung:rust-src, r=Mark-Simulacrum 2020-03-08 16:53:35 +01:00
build_helper
ci fix various typos 2020-03-06 15:19:31 +01:00
doc Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison 2020-03-10 06:47:47 +01:00
etc
liballoc Rollup merge of #69877 - CAD97:patch-1, r=dtolnay 2020-03-10 06:47:59 +01:00
libarena
libcore Rollup merge of #69825 - lcnr:discriminant, r=oli-obk 2020-03-11 10:36:28 +01:00
libfmt_macros fix various typos 2020-03-06 15:19:31 +01:00
libgraphviz
libpanic_abort
libpanic_unwind
libproc_macro Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkov 2020-03-07 17:27:32 +01:00
libprofiler_builtins
librustc Rollup merge of #66059 - RalfJung:panic-on-non-zero, r=eddyb 2020-03-11 10:36:16 +01:00
librustc_apfloat
librustc_ast Address review comments 2020-03-09 13:07:21 +03:00
librustc_ast_lowering fix various typos 2020-03-06 15:19:31 +01:00
librustc_ast_passes Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison 2020-03-10 06:47:47 +01:00
librustc_ast_pretty Auto merge of #69586 - petrochenkov:unmerge, r=Centril 2020-03-06 02:22:49 +00:00
librustc_attr Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
librustc_builtin_macros rustc_parse: Use Token::ident where possible 2020-03-09 12:42:41 +03:00
librustc_codegen_llvm Rollup merge of #69836 - JohnTitor:immediate-outputs, r=nagisa 2020-03-10 06:47:55 +01:00
librustc_codegen_ssa Rollup merge of #66059 - RalfJung:panic-on-non-zero, r=eddyb 2020-03-11 10:36:16 +01:00
librustc_codegen_utils fix various typos 2020-03-06 15:19:31 +01:00
librustc_data_structures fix various typos 2020-03-06 15:19:31 +01:00
librustc_driver Rollup merge of #69608 - o01eg:expose-target-libdir-print, r=ehuss 2020-03-08 20:54:30 +01:00
librustc_error_codes Rollup merge of #69847 - GuillaumeGomez:cleanup-e0393, r=Dylan-DPC 2020-03-10 06:47:56 +01:00
librustc_errors rustc_errors: Use ensure_source_file_source_present where necessary. 2020-03-10 07:26:27 +01:00
librustc_expand Store TokenStream in rmeta::MacroDef. 2020-03-10 07:26:27 +01:00
librustc_feature Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison 2020-03-10 06:47:47 +01:00
librustc_fs_util
librustc_hir use values() or keys() respectively when iterating only over keys or values of maps. 2020-03-02 13:01:05 +01:00
librustc_incremental Use more efficient &&str to String conversion (clippy::inefficient_to_string) 2020-03-05 16:39:20 +01:00
librustc_index mem::zeroed/uninit: panic on types that do not permit zero-initialization 2020-02-29 09:27:25 +01:00
librustc_infer Rollup merge of #69591 - matthewjasper:query-response-relate, r=nikomatsakis 2020-03-11 10:36:19 +01:00
librustc_interface Auto merge of #69746 - Dylan-DPC:rollup-wr6dvdk, r=Dylan-DPC 2020-03-05 21:39:00 +00:00
librustc_lexer fix various typos 2020-03-06 15:19:31 +01:00
librustc_lint Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
librustc_llvm use char instead of &str for single char patterns 2020-02-27 14:57:22 +01:00
librustc_macros Auto merge of #66364 - Centril:cleanup-macro-def, r=petrochenkov,eddyb 2020-03-10 17:12:48 +00:00
librustc_metadata Auto merge of #66364 - Centril:cleanup-macro-def, r=petrochenkov,eddyb 2020-03-10 17:12:48 +00:00
librustc_mir Rollup merge of #69825 - lcnr:discriminant, r=oli-obk 2020-03-11 10:36:28 +01:00
librustc_mir_build Matrix::push: recursively expand or-patterns 2020-03-10 17:46:19 +01:00
librustc_parse parse: Tweak the function parameter edition check 2020-03-10 22:35:01 +03:00
librustc_passes fix various typos 2020-03-06 15:19:31 +01:00
librustc_plugin_impl Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
librustc_privacy Auto merge of #69380 - Zoxc:parent-module, r=michaelwoerister 2020-03-01 14:21:03 +00:00
librustc_resolve Rollup merge of #69805 - petrochenkov:importname, r=Centril 2020-03-08 11:51:18 +01:00
librustc_save_analysis Rollup merge of #69422 - JohnTitor:remove-unwrap, r=Xanewok 2020-03-08 11:51:04 +01:00
librustc_session Rollup merge of #69608 - o01eg:expose-target-libdir-print, r=ehuss 2020-03-08 20:54:30 +01:00
librustc_span Rollup merge of #69825 - lcnr:discriminant, r=oli-obk 2020-03-11 10:36:28 +01:00
librustc_target Rollup merge of #66059 - RalfJung:panic-on-non-zero, r=eddyb 2020-03-11 10:36:16 +01:00
librustc_traits Remove chalk integration 2020-03-02 18:11:53 -05:00
librustc_ty Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
librustc_typeck Rollup merge of #69859 - contrun:fix-62456, r=matthewjasper 2020-03-11 10:36:29 +01:00
librustdoc Auto merge of #66364 - Centril:cleanup-macro-def, r=petrochenkov,eddyb 2020-03-10 17:12:48 +00:00
libserialize Inline various simple emit_* and read_* methods in Decoder. 2020-02-18 16:46:50 +11:00
libstd Rollup merge of #69799 - TimDiekmann:zst, r=Amanieu 2020-03-10 06:47:52 +01:00
libterm
libtest fix various typos 2020-03-06 15:19:31 +01:00
libunwind
llvm-project@9f65ad0573 update llvm to silence gcc 9 warnings 2020-02-26 10:27:01 +08:00
rtstartup
rustc
rustllvm Use slices in preference to 0-terminated strings 2020-03-09 02:05:22 +01:00
stdarch@dea57529b3
test Rollup merge of #69896 - petrochenkov:reqname2, r=Centril 2020-03-11 10:36:33 +01:00
tools Rollup merge of #69561 - JohnTitor:clean-up-unstable-book, r=Mark-Simulacrum 2020-03-08 11:51:12 +01:00
README.md
stage0.txt nightly: bootstrap from 1.42.0-beta.5 (4e1c5f0e9 2020-02-28) 2020-02-29 11:44:09 +01:00

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 guide.