rust/compiler
bors f8ab56bf32 Auto merge of #79576 - m-ou-se:2021, r=Mark-Simulacrum
Add edition 2021.

🎆 Happy new ~~year~~ Rust. 🍾

This adds --edition=2021, and updates suggestions about 2018 to say "2018 *or later*".

Related Cargo PR: https://github.com/rust-lang/cargo/pull/8922

---

Edit: This adds the new edition as *unstable*. Without `-Z unstable-options`, `--edition=2021` results in:
```
$ rustc --edition=2021
error: edition 2021 is unstable and only available with -Z unstable-options.
```
2021-01-01 03:41:31 +00:00
..
rustc
rustc_apfloat
rustc_arena stabilize min_const_generics 2020-12-26 18:24:10 +01:00
rustc_ast Enable Pat2021 in edition 2021. 2020-12-31 19:39:44 +01:00
rustc_ast_lowering Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_ast_passes Rollup merge of #80519 - max-heller:issue-80512-fix, r=varkor 2020-12-31 22:20:53 +01:00
rustc_ast_pretty Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_attr Get rid of clean::Deprecation 2020-12-14 22:00:46 -05:00
rustc_builtin_macros Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_codegen_cranelift Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27 2020-12-27 10:30:38 +01:00
rustc_codegen_llvm Rollup merge of #80323 - camelid:codegen-base-docs, r=nagisa 2020-12-31 22:20:43 +01:00
rustc_codegen_ssa Rollup merge of #80323 - camelid:codegen-base-docs, r=nagisa 2020-12-31 22:20:43 +01:00
rustc_data_structures Bump bootstrap compiler to 1.50 beta 2020-12-30 09:27:19 -05:00
rustc_driver where possible, pass slices instead of &Vec or &String (clippy::ptr_arg) 2020-12-30 13:11:52 +01:00
rustc_error_codes Auto merge of #80267 - 0urobor0s:ouro/61592, r=jyn514 2020-12-31 09:07:52 +00:00
rustc_errors Switch compiler/ to intra-doc links 2020-12-18 15:22:51 -05:00
rustc_expand Auto merge of #80459 - mark-i-m:or-pat-reg, r=petrochenkov 2020-12-31 14:52:26 +00:00
rustc_feature Implement edition-based macro pat feature 2020-12-30 09:57:49 -06:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #80551 - lcnr:const-arg-wildcard, r=varkor 2020-12-31 22:21:00 +01:00
rustc_hir_pretty Rollup merge of #79051 - LeSeulArtichaut:if-let-guard, r=matthewjasper 2020-12-17 11:43:55 +09:00
rustc_incremental Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
rustc_index Switch compiler/ to intra-doc links 2020-12-18 15:22:51 -05:00
rustc_infer FIx ICE on wf check for foreign fns 2020-12-31 11:25:53 +09:00
rustc_interface Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
rustc_lexer Fix typo 2020-12-18 22:13:25 +09:00
rustc_lint Auto merge of #80500 - jyn514:track-caller, r=nagisa 2020-12-31 03:17:50 +00:00
rustc_lint_defs Add example to lint docs 2020-12-22 09:33:16 -05:00
rustc_llvm llvm: update ffi bindings for split dwarf 2020-12-16 10:31:42 +00:00
rustc_macros Rollup merge of #80509 - matthiaskrgr:ptr_arg, r=varkor 2020-12-30 22:49:26 +09:00
rustc_metadata Rename kw::Invalid -> kw::Empty 2020-12-30 09:50:02 -05:00
rustc_middle Auto merge of #80500 - jyn514:track-caller, r=nagisa 2020-12-31 03:17:50 +00:00
rustc_mir Rollup merge of #80491 - RalfJung:dangling-of-val, r=oli-obk 2020-12-30 20:56:56 +00:00
rustc_mir_build Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_parse Consistently call editions "Rust 20xx" in messages. 2020-12-31 19:06:09 +01:00
rustc_parse_format
rustc_passes Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_plugin_impl
rustc_privacy Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
rustc_query_system rustc_query_system: avoid race condition when using edge_count 2020-12-22 14:12:57 -08:00
rustc_resolve Consistently call editions "Rust 20xx" in messages. 2020-12-31 19:06:09 +01:00
rustc_save_analysis Rework beautify_doc_string so that it returns a Symbol instead of a String 2020-12-22 16:05:38 +01:00
rustc_serialize stabilize min_const_generics 2020-12-26 18:24:10 +01:00
rustc_session Require -Z unstable-options for unstable editions. 2020-12-31 19:06:09 +01:00
rustc_span Add edition 2021. 2020-12-31 19:06:09 +01:00
rustc_symbol_mangling Make BoundRegion have a kind of BoungRegionKind 2020-12-18 15:27:28 -05:00
rustc_target Add support for target aliases 2020-12-16 10:41:07 +01:00
rustc_trait_selection remove unused return types such as empty Results or Options that would always be Some(..) 2020-12-30 13:15:40 +01:00
rustc_traits fix: small typo error in chalk/mod.rs 2020-12-27 03:22:23 +01:00
rustc_ty_utils
rustc_type_ir Fix typo in DebruijnIndex documentation 2020-12-12 16:13:06 +01:00
rustc_typeck Auto merge of #79576 - m-ou-se:2021, r=Mark-Simulacrum 2021-01-01 03:41:31 +00:00