]> git.lizzy.rs Git - rust.git/commitdiff
Remove old unused error code
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 5 Oct 2018 10:28:46 +0000 (12:28 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 5 Oct 2018 10:28:46 +0000 (12:28 +0200)
src/librustc_mir/diagnostics.rs

index 75745849290eb7cc40aaa768bb43e20d5b551b94..56031054b918387e762f3a2ec3b83534ce110537 100644 (file)
@@ -665,24 +665,6 @@ fn main() {
 ```
 "##,
 
-E0022: r##"
-Constant functions are not allowed to mutate anything. Thus, binding to an
-argument with a mutable pattern is not allowed. For example,
-
-```compile_fail
-const fn foo(mut x: u8) {
-    // do stuff
-}
-```
-
-Is incorrect because the function body may not mutate `x`.
-
-Remove any mutable bindings from the argument list to fix this error. In case
-you need to mutate the argument, try lazily initializing a global variable
-instead of using a `const fn`, or refactoring the code to a functional style to
-avoid mutation if possible.
-"##,
-
 E0133: r##"
 Unsafe code was used outside of an unsafe function or block.