rust/src
Russell Cohen 629e97a5a0 Improve error messages for raw strings (#60762)
This diff improves error messages around raw strings in a few ways:
- Catch extra trailing `#` in the parser. This can't be handled in the lexer because we could be in a macro that actually expects another # (see test)
- Refactor & unify error handling in the lexer between ByteStrings and RawByteStrings
- Detect potentially intended terminators (longest sequence of "#*" is suggested)
2020-03-29 00:43:43 -04:00
..
bootstrap Upgrade rustc and bootstrap dependencies 2020-03-26 14:11:23 +01:00
build_helper
ci
doc Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
etc Auto merge of #70282 - ssomers:btreemap_gdb_pretty_print, r=Mark-Simulacrum 2020-03-27 09:54:02 +00:00
liballoc introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
libarena
libcore Rollup merge of #65222 - Lucretiel:fold_self, r=kodrAus 2020-03-27 15:09:48 +01:00
libfmt_macros
libgraphviz
libpanic_abort
libpanic_unwind
libproc_macro introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
libprofiler_builtins
librustc Auto merge of #69470 - mati865:deps, r=Mark-Simulacrum 2020-03-27 06:31:49 +00:00
librustc_apfloat
librustc_ast Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_ast_lowering Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_ast_passes Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_ast_pretty Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_attr
librustc_builtin_macros Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_codegen_llvm Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustc_codegen_ssa Rollup merge of #70068 - jclulow:illumos-gcc, r=cramertj 2020-03-27 15:09:57 +01:00
librustc_data_structures Auto merge of #69916 - oli-obk:mir_bless, r=eddyb 2020-03-27 12:58:34 +00:00
librustc_driver
librustc_error_codes Rollup merge of #70470 - GuillaumeGomez:cleanup-e0463, r=Dylan-DPC 2020-03-27 15:09:59 +01:00
librustc_errors introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
librustc_expand Rename def_span to guess_head_span 2020-03-25 16:45:12 -07:00
librustc_feature bump negative impls version to 1.44.0 2020-03-26 06:52:58 -04:00
librustc_fs_util
librustc_hir Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustc_hir_pretty Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustc_incremental Auto merge of #70297 - nnethercote:clean-up-debugging-options, r=michaelwoerister 2020-03-25 14:46:51 +00:00
librustc_index
librustc_infer Rename def_span to guess_head_span 2020-03-25 16:45:12 -07:00
librustc_interface Auto merge of #70297 - nnethercote:clean-up-debugging-options, r=michaelwoerister 2020-03-25 14:46:51 +00:00
librustc_lexer Improve error messages for raw strings (#60762) 2020-03-29 00:43:43 -04:00
librustc_lint Rename def_span to guess_head_span 2020-03-25 16:45:12 -07:00
librustc_llvm
librustc_macros
librustc_metadata Rollup merge of #70344 - Centril:hir-pretty, r=eddyb 2020-03-27 01:23:53 +01:00
librustc_mir Auto merge of #69916 - oli-obk:mir_bless, r=eddyb 2020-03-27 12:58:34 +00:00
librustc_mir_build Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustc_parse Improve error messages for raw strings (#60762) 2020-03-29 00:43:43 -04:00
librustc_passes Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustc_plugin_impl
librustc_privacy Rollup merge of #70344 - Centril:hir-pretty, r=eddyb 2020-03-27 01:23:53 +01:00
librustc_query_system
librustc_resolve Rename def_span to guess_head_span 2020-03-25 16:45:12 -07:00
librustc_save_analysis
librustc_session Rollup merge of #70319 - lcnr:issue63695, r=eddyb 2020-03-25 19:28:09 +01:00
librustc_span Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
librustc_symbol_mangling
librustc_target Rollup merge of #70384 - nnethercote:refactor-object-file-handling, r=alexcrichton 2020-03-26 21:44:02 +01:00
librustc_trait_selection Rollup merge of #70344 - Centril:hir-pretty, r=eddyb 2020-03-27 01:23:53 +01:00
librustc_traits Rollup merge of #70319 - lcnr:issue63695, r=eddyb 2020-03-25 19:28:09 +01:00
librustc_ty
librustc_typeck Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
librustdoc
libserialize
libstd Auto merge of #68404 - Amanieu:llvm-asm, r=estebank 2020-03-27 03:27:09 +00:00
libterm
libtest Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
libunwind
llvm-project@9f65ad0573
rtstartup
rustc
rustllvm
stdarch@abe96ca3b8
test Improve error messages for raw strings (#60762) 2020-03-29 00:43:43 -04:00
tools Enable --blessing of MIR dumps 2020-03-26 15:26:33 +01: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.