diff options
| author | Mukund Lakshman <yaymukund@gmail.com> | 2021-10-06 07:58:41 -0400 |
|---|---|---|
| committer | Mukund Lakshman <yaymukund@gmail.com> | 2021-10-06 07:58:41 -0400 |
| commit | 1f86a8e2a058d7f12b25406a53576b08817677fe (patch) | |
| tree | e54863612b273e47e0a6690169d01aa2d2ed5533 | |
| parent | 742d8be5e6c1cedfde503424036b597c514079ae (diff) | |
| download | rust-1f86a8e2a058d7f12b25406a53576b08817677fe.tar.gz rust-1f86a8e2a058d7f12b25406a53576b08817677fe.zip | |
Revert the rustc_error_codes changes.
50 files changed, 51 insertions, 51 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0001.md b/compiler/rustc_error_codes/src/error_codes/E0001.md index cd6e15f581f..90756780d15 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0001.md +++ b/compiler/rustc_error_codes/src/error_codes/E0001.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error suggests that the expression arm corresponding to the noted pattern will never be reached as for all possible values of the expression being diff --git a/compiler/rustc_error_codes/src/error_codes/E0002.md b/compiler/rustc_error_codes/src/error_codes/E0002.md index 4e7aa7fb9ed..5cb59da10e0 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0002.md +++ b/compiler/rustc_error_codes/src/error_codes/E0002.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error indicates that an empty match expression is invalid because the type it is matching on is non-empty (there exist values of this type). In safe code diff --git a/compiler/rustc_error_codes/src/error_codes/E0007.md b/compiler/rustc_error_codes/src/error_codes/E0007.md index d30de4af0eb..2c22b86af92 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0007.md +++ b/compiler/rustc_error_codes/src/error_codes/E0007.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error indicates that the bindings in a match arm would require a value to be moved into more than one location, thus violating unique ownership. Code diff --git a/compiler/rustc_error_codes/src/error_codes/E0009.md b/compiler/rustc_error_codes/src/error_codes/E0009.md index 6aab44cb4d6..aaabba04349 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0009.md +++ b/compiler/rustc_error_codes/src/error_codes/E0009.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. In a pattern, all values that don't implement the `Copy` trait have to be bound the same way. The goal here is to avoid binding simultaneously by-move and diff --git a/compiler/rustc_error_codes/src/error_codes/E0014.md b/compiler/rustc_error_codes/src/error_codes/E0014.md index 27ae8f09898..2c69957e9f6 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0014.md +++ b/compiler/rustc_error_codes/src/error_codes/E0014.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Constants can only be initialized by a constant value or, in a future version of Rust, a call to a const function. This error indicates the use diff --git a/compiler/rustc_error_codes/src/error_codes/E0073.md b/compiler/rustc_error_codes/src/error_codes/E0073.md index 39c16bc438f..a5aea86ff2d 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0073.md +++ b/compiler/rustc_error_codes/src/error_codes/E0073.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You cannot define a struct (or enum) `Foo` that requires an instance of `Foo` in order to make a new `Foo` value. This is because there would be no way a diff --git a/compiler/rustc_error_codes/src/error_codes/E0074.md b/compiler/rustc_error_codes/src/error_codes/E0074.md index 026acac99e7..785d6de226d 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0074.md +++ b/compiler/rustc_error_codes/src/error_codes/E0074.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. When using the `#[simd]` attribute on a tuple struct, the components of the tuple struct must all be of a concrete, nongeneric type so the compiler can diff --git a/compiler/rustc_error_codes/src/error_codes/E0087.md b/compiler/rustc_error_codes/src/error_codes/E0087.md index cd2da0469bb..9d292186f0f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0087.md +++ b/compiler/rustc_error_codes/src/error_codes/E0087.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Too many type arguments were supplied for a function. For example: diff --git a/compiler/rustc_error_codes/src/error_codes/E0088.md b/compiler/rustc_error_codes/src/error_codes/E0088.md index 6b565507ce4..7780ad5b56e 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0088.md +++ b/compiler/rustc_error_codes/src/error_codes/E0088.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You gave too many lifetime arguments. Erroneous code example: diff --git a/compiler/rustc_error_codes/src/error_codes/E0089.md b/compiler/rustc_error_codes/src/error_codes/E0089.md index b78f95f266c..504fbc7b96a 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0089.md +++ b/compiler/rustc_error_codes/src/error_codes/E0089.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Too few type arguments were supplied for a function. For example: diff --git a/compiler/rustc_error_codes/src/error_codes/E0090.md b/compiler/rustc_error_codes/src/error_codes/E0090.md index 7b07a86dc25..e091bb6c9f2 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0090.md +++ b/compiler/rustc_error_codes/src/error_codes/E0090.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You gave too few lifetime arguments. Example: diff --git a/compiler/rustc_error_codes/src/error_codes/E0110.md b/compiler/rustc_error_codes/src/error_codes/E0110.md index 91f599ff1dc..b9fe406ffb9 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0110.md +++ b/compiler/rustc_error_codes/src/error_codes/E0110.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You tried to provide a lifetime to a type which doesn't need it. See `E0109` for more details. diff --git a/compiler/rustc_error_codes/src/error_codes/E0136.md b/compiler/rustc_error_codes/src/error_codes/E0136.md index 0a74558e75b..15cf09a18cb 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0136.md +++ b/compiler/rustc_error_codes/src/error_codes/E0136.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. More than one `main` function was found. diff --git a/compiler/rustc_error_codes/src/error_codes/E0137.md b/compiler/rustc_error_codes/src/error_codes/E0137.md index ba6f02add94..d4e19170f3f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0137.md +++ b/compiler/rustc_error_codes/src/error_codes/E0137.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. More than one function was declared with the `#[main]` attribute. diff --git a/compiler/rustc_error_codes/src/error_codes/E0139.md b/compiler/rustc_error_codes/src/error_codes/E0139.md index e7ad2a6f44d..a116cf29395 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0139.md +++ b/compiler/rustc_error_codes/src/error_codes/E0139.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. There are various restrictions on transmuting between types in Rust; for example types being transmuted must have the same size. To apply all these restrictions, diff --git a/compiler/rustc_error_codes/src/error_codes/E0154.md b/compiler/rustc_error_codes/src/error_codes/E0154.md index 9c954839eee..e437a71897c 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0154.md +++ b/compiler/rustc_error_codes/src/error_codes/E0154.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Imports (`use` statements) are not allowed after non-item statements, such as variable declarations and expression statements. diff --git a/compiler/rustc_error_codes/src/error_codes/E0162.md b/compiler/rustc_error_codes/src/error_codes/E0162.md index 2e0f387e352..0161c9325c2 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0162.md +++ b/compiler/rustc_error_codes/src/error_codes/E0162.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. An `if let` pattern attempts to match the pattern, and enters the body if the match was successful. If the match is irrefutable (when it cannot fail to diff --git a/compiler/rustc_error_codes/src/error_codes/E0165.md b/compiler/rustc_error_codes/src/error_codes/E0165.md index 3222b7a87eb..7bcd6c0cbf3 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0165.md +++ b/compiler/rustc_error_codes/src/error_codes/E0165.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. A `while let` pattern attempts to match the pattern, and enters the body if the match was successful. If the match is irrefutable (when it cannot fail to diff --git a/compiler/rustc_error_codes/src/error_codes/E0193.md b/compiler/rustc_error_codes/src/error_codes/E0193.md index 6e7ebbaddf9..e29a949ffba 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0193.md +++ b/compiler/rustc_error_codes/src/error_codes/E0193.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. `where` clauses must use generic type parameters: it does not make sense to use them otherwise. An example causing this error: diff --git a/compiler/rustc_error_codes/src/error_codes/E0205.md b/compiler/rustc_error_codes/src/error_codes/E0205.md index 07bbd1f6834..7916f53ad3b 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0205.md +++ b/compiler/rustc_error_codes/src/error_codes/E0205.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. An attempt to implement the `Copy` trait for an enum failed because one of the variants does not implement `Copy`. To fix this, you must implement `Copy` for diff --git a/compiler/rustc_error_codes/src/error_codes/E0211.md b/compiler/rustc_error_codes/src/error_codes/E0211.md index 2485367e097..77289f01900 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0211.md +++ b/compiler/rustc_error_codes/src/error_codes/E0211.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You used a function or type which doesn't fit the requirements for where it was used. Erroneous code examples: diff --git a/compiler/rustc_error_codes/src/error_codes/E0243.md b/compiler/rustc_error_codes/src/error_codes/E0243.md index ef4a837ec21..5d3d1828bf5 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0243.md +++ b/compiler/rustc_error_codes/src/error_codes/E0243.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error indicates that not enough type parameters were found in a type or trait. diff --git a/compiler/rustc_error_codes/src/error_codes/E0244.md b/compiler/rustc_error_codes/src/error_codes/E0244.md index 31c5b4542e2..5187b7b05d2 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0244.md +++ b/compiler/rustc_error_codes/src/error_codes/E0244.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error indicates that too many type parameters were found in a type or trait. diff --git a/compiler/rustc_error_codes/src/error_codes/E0251.md b/compiler/rustc_error_codes/src/error_codes/E0251.md index 7b048db5ece..4121dd27877 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0251.md +++ b/compiler/rustc_error_codes/src/error_codes/E0251.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Two items of the same name cannot be imported without rebinding one of the items under a new local name. diff --git a/compiler/rustc_error_codes/src/error_codes/E0256.md b/compiler/rustc_error_codes/src/error_codes/E0256.md index 1b518b1615b..385376cdade 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0256.md +++ b/compiler/rustc_error_codes/src/error_codes/E0256.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You can't import a type or module when the name of the item being imported is the same as another type or submodule defined in the module. diff --git a/compiler/rustc_error_codes/src/error_codes/E0281.md b/compiler/rustc_error_codes/src/error_codes/E0281.md index 2d8ead0b018..1d7904b67dd 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0281.md +++ b/compiler/rustc_error_codes/src/error_codes/E0281.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. You tried to supply a type which doesn't implement some trait in a location which expected that trait. This error typically occurs when working with diff --git a/compiler/rustc_error_codes/src/error_codes/E0297.md b/compiler/rustc_error_codes/src/error_codes/E0297.md index 001e0f3089e..66c31376d8b 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0297.md +++ b/compiler/rustc_error_codes/src/error_codes/E0297.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Patterns used to bind names must be irrefutable. That is, they must guarantee that a name will be extracted in all cases. Instead of pattern matching the diff --git a/compiler/rustc_error_codes/src/error_codes/E0301.md b/compiler/rustc_error_codes/src/error_codes/E0301.md index 7b1e02051dc..485e19fbb8d 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0301.md +++ b/compiler/rustc_error_codes/src/error_codes/E0301.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Mutable borrows are not allowed in pattern guards, because matching cannot have side effects. Side effects could alter the matched object or the environment diff --git a/compiler/rustc_error_codes/src/error_codes/E0302.md b/compiler/rustc_error_codes/src/error_codes/E0302.md index c56500fcebc..e6ac9d590c8 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0302.md +++ b/compiler/rustc_error_codes/src/error_codes/E0302.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Assignments are not allowed in pattern guards, because matching cannot have side effects. Side effects could alter the matched object or the environment diff --git a/compiler/rustc_error_codes/src/error_codes/E0303.md b/compiler/rustc_error_codes/src/error_codes/E0303.md index 750b766f5bf..459906047cc 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0303.md +++ b/compiler/rustc_error_codes/src/error_codes/E0303.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Sub-bindings, e.g. `ref x @ Some(ref y)` are now allowed under `#![feature(bindings_after_at)]` and checked to make sure that diff --git a/compiler/rustc_error_codes/src/error_codes/E0329.md b/compiler/rustc_error_codes/src/error_codes/E0329.md index 36114316e88..37d84a1a89b 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0329.md +++ b/compiler/rustc_error_codes/src/error_codes/E0329.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. An attempt was made to access an associated constant through either a generic type parameter or `Self`. This is not supported yet. An example causing this diff --git a/compiler/rustc_error_codes/src/error_codes/E0383.md b/compiler/rustc_error_codes/src/error_codes/E0383.md index 309eb2b59eb..fd2b0b08fb0 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0383.md +++ b/compiler/rustc_error_codes/src/error_codes/E0383.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error occurs when an attempt is made to partially reinitialize a structure that is currently uninitialized. diff --git a/compiler/rustc_error_codes/src/error_codes/E0386.md b/compiler/rustc_error_codes/src/error_codes/E0386.md index 5e45a2b40ce..de3b468b6e4 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0386.md +++ b/compiler/rustc_error_codes/src/error_codes/E0386.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error occurs when an attempt is made to mutate the target of a mutable reference stored inside an immutable container. diff --git a/compiler/rustc_error_codes/src/error_codes/E0387.md b/compiler/rustc_error_codes/src/error_codes/E0387.md index ddc838bdca1..38ad19bd6aa 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0387.md +++ b/compiler/rustc_error_codes/src/error_codes/E0387.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error occurs when an attempt is made to mutate or mutably reference data that a closure has captured immutably. diff --git a/compiler/rustc_error_codes/src/error_codes/E0388.md b/compiler/rustc_error_codes/src/error_codes/E0388.md index 13ef94a4855..512fb42e6ec 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0388.md +++ b/compiler/rustc_error_codes/src/error_codes/E0388.md @@ -1 +1 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. diff --git a/compiler/rustc_error_codes/src/error_codes/E0389.md b/compiler/rustc_error_codes/src/error_codes/E0389.md index 19bb6ec4081..9f064e44c82 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0389.md +++ b/compiler/rustc_error_codes/src/error_codes/E0389.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. An attempt was made to mutate data using a non-mutable reference. This commonly occurs when attempting to assign to a non-mutable reference of a diff --git a/compiler/rustc_error_codes/src/error_codes/E0398.md b/compiler/rustc_error_codes/src/error_codes/E0398.md index 12e0eb1a5d5..75d86979e3c 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0398.md +++ b/compiler/rustc_error_codes/src/error_codes/E0398.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. In Rust 1.3, the default object lifetime bounds are expected to change, as described in [RFC 1156]. You are getting a warning because the compiler diff --git a/compiler/rustc_error_codes/src/error_codes/E0399.md b/compiler/rustc_error_codes/src/error_codes/E0399.md index c3e9616c606..6ea6054b417 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0399.md +++ b/compiler/rustc_error_codes/src/error_codes/E0399.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler +#### Note: this error code is no longer emitted by the compiler You implemented a trait, overriding one or more of its associated types but did not reimplement its default methods. diff --git a/compiler/rustc_error_codes/src/error_codes/E0439.md b/compiler/rustc_error_codes/src/error_codes/E0439.md index 85e965c4eee..24268aef222 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0439.md +++ b/compiler/rustc_error_codes/src/error_codes/E0439.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The length of the platform-intrinsic function `simd_shuffle` wasn't specified. diff --git a/compiler/rustc_error_codes/src/error_codes/E0447.md b/compiler/rustc_error_codes/src/error_codes/E0447.md index e880ff4637d..af8cd8d6d52 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0447.md +++ b/compiler/rustc_error_codes/src/error_codes/E0447.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The `pub` keyword was used inside a function. diff --git a/compiler/rustc_error_codes/src/error_codes/E0448.md b/compiler/rustc_error_codes/src/error_codes/E0448.md index f4bd1841888..ba096f9e984 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0448.md +++ b/compiler/rustc_error_codes/src/error_codes/E0448.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The `pub` keyword was used inside a public enum. diff --git a/compiler/rustc_error_codes/src/error_codes/E0497.md b/compiler/rustc_error_codes/src/error_codes/E0497.md index 12004996384..ef2882415d2 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0497.md +++ b/compiler/rustc_error_codes/src/error_codes/E0497.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. A stability attribute was used outside of the standard library. diff --git a/compiler/rustc_error_codes/src/error_codes/E0504.md b/compiler/rustc_error_codes/src/error_codes/E0504.md index 640cfad656f..bcbd00a8690 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0504.md +++ b/compiler/rustc_error_codes/src/error_codes/E0504.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. This error occurs when an attempt is made to move a borrowed variable into a closure. diff --git a/compiler/rustc_error_codes/src/error_codes/E0595.md b/compiler/rustc_error_codes/src/error_codes/E0595.md index 96fbb5e410a..e6729013243 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0595.md +++ b/compiler/rustc_error_codes/src/error_codes/E0595.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Closures cannot mutate immutable captured variables. diff --git a/compiler/rustc_error_codes/src/error_codes/E0619.md b/compiler/rustc_error_codes/src/error_codes/E0619.md index d33154058dd..f516de43095 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0619.md +++ b/compiler/rustc_error_codes/src/error_codes/E0619.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The type-checker needed to know the type of an expression, but that type had not yet been inferred. diff --git a/compiler/rustc_error_codes/src/error_codes/E0633.md b/compiler/rustc_error_codes/src/error_codes/E0633.md index f6e8a4042ed..5b6c15c82eb 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0633.md +++ b/compiler/rustc_error_codes/src/error_codes/E0633.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The `unwind` attribute was malformed. diff --git a/compiler/rustc_error_codes/src/error_codes/E0665.md b/compiler/rustc_error_codes/src/error_codes/E0665.md index db5e088cc50..ae54d6d1579 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0665.md +++ b/compiler/rustc_error_codes/src/error_codes/E0665.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. The `Default` trait was derived on an enum. diff --git a/compiler/rustc_error_codes/src/error_codes/E0671.md b/compiler/rustc_error_codes/src/error_codes/E0671.md index a68273f752e..d4dbfb7a5d8 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0671.md +++ b/compiler/rustc_error_codes/src/error_codes/E0671.md @@ -1,4 +1,4 @@ -### Note: this error code is no longer emitted by the compiler. +#### Note: this error code is no longer emitted by the compiler. Const parameters cannot depend on type parameters. The following is therefore invalid: diff --git a/src/tools/error_index_generator/main.rs b/src/tools/error_index_generator/main.rs index e7969349610..5b3da5893ea 100644 --- a/src/tools/error_index_generator/main.rs +++ b/src/tools/error_index_generator/main.rs @@ -126,7 +126,7 @@ impl Formatter for HTMLFormatter { error_codes: ErrorCodes::Yes, edition: DEFAULT_EDITION, playground: &Some(playground), - heading_offset: HeadingOffset::H2, + heading_offset: HeadingOffset::H1, } .into_string() )? diff --git a/src/tools/tidy/src/error_codes_check.rs b/src/tools/tidy/src/error_codes_check.rs index ae169d383b2..53c75a46339 100644 --- a/src/tools/tidy/src/error_codes_check.rs +++ b/src/tools/tidy/src/error_codes_check.rs @@ -49,7 +49,7 @@ fn check_error_code_explanation( } else if s.contains("compile-fail") { invalid_compile_fail_format = true; } - } else if s.starts_with("### Note: this error code is no longer emitted by the compiler") { + } else if s.starts_with("#### Note: this error code is no longer emitted by the compiler") { if !found_error_code { error_codes.get_mut(&err_code).map(|x| x.has_test = true); found_error_code = true; @@ -64,7 +64,7 @@ fn check_if_error_code_is_test_in_explanation(f: &str, err_code: &str) -> bool { for line in f.lines() { let s = line.trim(); - if s.starts_with("### Note: this error code is no longer emitted by the compiler") { + if s.starts_with("#### Note: this error code is no longer emitted by the compiler") { return true; } if s.starts_with("```") { |
