Merge remote-tracking branch 'origin/master' into mpk/add-long-error-message-for-E0311

This commit is contained in:
Matthew Kelly 2022-08-31 19:39:39 -04:00
commit eda2a40145
2077 changed files with 36548 additions and 21026 deletions

View file

@ -3,7 +3,6 @@ A `break` statement without a label appeared inside a labeled block.
Erroneous code example:
```compile_fail,E0695
# #![feature(label_break_value)]
loop {
'a: {
break;
@ -14,7 +13,6 @@ loop {
Make sure to always label the `break`:
```
# #![feature(label_break_value)]
'l: loop {
'a: {
break 'l;
@ -25,7 +23,6 @@ Make sure to always label the `break`:
Or if you want to `break` the labeled block:
```
# #![feature(label_break_value)]
loop {
'a: {
break 'a;

View file

@ -1,4 +1,6 @@
#![deny(rustdoc::invalid_codeblock_attributes)]
#![deny(rustc::untranslatable_diagnostic)]
#![deny(rustc::diagnostic_outside_of_impl)]
//! This library is used to gather all error codes into one place,
//! the goal being to make their maintenance easier.