diff options
| author | Ralf Jung <post@ralfj.de> | 2021-04-25 12:19:06 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2021-04-25 12:19:06 +0200 |
| commit | 8a961a5b334a4f871093462823e8c86aab2611b6 (patch) | |
| tree | e4c32ea5def72fb5707bb24bd390617f23510ce8 /compiler | |
| parent | 75bab0782a8b6377479bfd553f2f29fd5a8aac76 (diff) | |
| download | rust-8a961a5b334a4f871093462823e8c86aab2611b6.tar.gz rust-8a961a5b334a4f871093462823e8c86aab2611b6.zip | |
remove const_fn from some error_code descriptions
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0379.md | 2 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0764.md | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0379.md b/compiler/rustc_error_codes/src/error_codes/E0379.md index 930204847ec..ab438e41447 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0379.md +++ b/compiler/rustc_error_codes/src/error_codes/E0379.md @@ -3,8 +3,6 @@ A trait method was declared const. Erroneous code example: ```compile_fail,E0379 -#![feature(const_fn)] - trait Foo { const fn bar() -> u32; // error! } diff --git a/compiler/rustc_error_codes/src/error_codes/E0764.md b/compiler/rustc_error_codes/src/error_codes/E0764.md index 0a2e2290e77..152627cf654 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0764.md +++ b/compiler/rustc_error_codes/src/error_codes/E0764.md @@ -3,7 +3,6 @@ A mutable reference was used in a constant. Erroneous code example: ```compile_fail,E0764 -#![feature(const_fn)] #![feature(const_mut_refs)] fn main() { @@ -27,7 +26,6 @@ Remember: you cannot use a function call inside a constant or static. However, you can totally use it in constant functions: ``` -#![feature(const_fn)] #![feature(const_mut_refs)] const fn foo(x: usize) -> usize { |
