diff options
| author | bors <bors@rust-lang.org> | 2020-06-26 02:16:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-06-26 02:16:07 +0000 |
| commit | e093b6525079cb71d4158f97480ac6f6ce311eac (patch) | |
| tree | f1618a71293bdae9e6c11b1ba74883920a9bcbcc /src/librustc_error_codes/error_codes | |
| parent | 1033351a51dd3ca342a83d4be13f7554f0b4fb1e (diff) | |
| parent | 8c5d794b52db22fdc1a4ba678a5876a98f9d9531 (diff) | |
Auto merge of #73746 - Manishearth:rollup-80jnynm, r=Manishearth
Rollup of 14 pull requests Successful merges: - #72617 (Add a fast path for `std::thread::panicking`.) - #72738 (Self contained linking option) - #72770 (Implement mixed script confusable lint.) - #73418 (Add unstable `core::mem::variant_count` intrinsic) - #73460 (Emit line info for generator variants) - #73534 (Provide suggestions for some moved value errors) - #73538 (make commented examples use valid syntax, and be more consistent ) - #73581 (Create 0766 error code) - #73619 (Document the mod keyword) - #73621 (Document the mut keyword) - #73648 (Document the return keyword) - #73673 (Fix ptr doc warnings.) - #73674 (Tweak binop errors) - #73687 (Clean up E0701 explanation) Failed merges: - #73708 (Explain move errors that occur due to method calls involving `self` (take two)) r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0701.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0766.md | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/librustc_error_codes/error_codes/E0701.md b/src/librustc_error_codes/error_codes/E0701.md index 87f416ada18..4965e643105 100644 --- a/src/librustc_error_codes/error_codes/E0701.md +++ b/src/librustc_error_codes/error_codes/E0701.md @@ -1,7 +1,7 @@ This error indicates that a `#[non_exhaustive]` attribute was incorrectly placed on something other than a struct or enum. -Examples of erroneous code: +Erroneous code example: ```compile_fail,E0701 #[non_exhaustive] diff --git a/src/librustc_error_codes/error_codes/E0766.md b/src/librustc_error_codes/error_codes/E0766.md new file mode 100644 index 00000000000..4e775df2cac --- /dev/null +++ b/src/librustc_error_codes/error_codes/E0766.md @@ -0,0 +1,13 @@ +A double quote byte string (`b"`) was not terminated. + +Erroneous code example: + +```compile_fail,E0766 +let s = b"; // error! +``` + +To fix this error, add the missing double quote at the end of the string: + +``` +let s = b""; // ok! +``` |
