From b5484e67eed591c38f40672bf8a22031550437b4 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 21 Oct 2021 12:33:56 -0700 Subject: [PATCH] Update to edition 2021 Except there's some issues with parser macros preventing it for schala-language --- schala-lang/language/src/lib.rs | 2 +- schala-repl/Cargo.toml | 3 +-- schala-repl/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/schala-lang/language/src/lib.rs b/schala-lang/language/src/lib.rs index 6a8803d..f5d6624 100644 --- a/schala-lang/language/src/lib.rs +++ b/schala-lang/language/src/lib.rs @@ -1,6 +1,6 @@ #![feature(trace_macros)] //#![feature(unrestricted_attribute_tokens)] -#![feature(box_patterns, box_syntax)] +#![feature(box_patterns, box_syntax, iter_intersperse)] //! `schala-lang` is where the Schala programming language is actually implemented. //! It defines the `Schala` type, which contains the state for a Schala REPL, and implements diff --git a/schala-repl/Cargo.toml b/schala-repl/Cargo.toml index cca09b8..5a5562e 100644 --- a/schala-repl/Cargo.toml +++ b/schala-repl/Cargo.toml @@ -2,8 +2,7 @@ name = "schala-repl" version = "0.1.0" authors = ["greg "] -edition = "2018" -resolver = "2" +edition = "2021" [dependencies] llvm-sys = "70.0.2" diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 6d4cdf4..fc75deb 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(box_patterns, box_syntax, proc_macro_hygiene, decl_macro)] +#![feature(box_patterns, box_syntax, proc_macro_hygiene, decl_macro, iter_intersperse)] #![feature(plugin)] #[macro_use]