Skip to content

Commit

Permalink
Remove old unused error code
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 5, 2018
1 parent ec74d35 commit ccbe787
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/librustc_mir/diagnostics.rs
Expand Up @@ -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.
Expand Down

0 comments on commit ccbe787

Please sign in to comment.