Skip to content

Commit ccbe787

Browse files
committed
Remove old unused error code
1 parent ec74d35 commit ccbe787

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: src/librustc_mir/diagnostics.rs

-18
Original file line numberDiff line numberDiff line change
@@ -665,24 +665,6 @@ fn main() {
665665
```
666666
"##,
667667

668-
E0022: r##"
669-
Constant functions are not allowed to mutate anything. Thus, binding to an
670-
argument with a mutable pattern is not allowed. For example,
671-
672-
```compile_fail
673-
const fn foo(mut x: u8) {
674-
// do stuff
675-
}
676-
```
677-
678-
Is incorrect because the function body may not mutate `x`.
679-
680-
Remove any mutable bindings from the argument list to fix this error. In case
681-
you need to mutate the argument, try lazily initializing a global variable
682-
instead of using a `const fn`, or refactoring the code to a functional style to
683-
avoid mutation if possible.
684-
"##,
685-
686668
E0133: r##"
687669
Unsafe code was used outside of an unsafe function or block.
688670

0 commit comments

Comments
 (0)