Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: bump Rust to 2021 edition #367

Merged
merged 1 commit into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/mun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Command-line interface for compiling, monitoring and running Mun code"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_abi"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Rust wrapper for the Mun ABI"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_codegen"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "LLVM IR code generation for Mun"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_codegen_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_codegen_macros"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Macros used by mun code generation"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_compiler"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Binary compilation functionality for Mun"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_compiler_daemon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_compiler_daemon"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Functionality for continuously monitoring Mun source files for changes and triggering recompilation"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_diagnostics"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides in-depth diagnostic information for compiler errors"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_hir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_hir"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides high-level intermediate representation of Mun code"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_language_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_language_server"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides a language server protocol server for the Mun language"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_libloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_libloader"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Functionality for loading Mun libraries"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_lld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_lld"
version = "110.0.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Bindings for LLD used to link Mun binaries"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_memory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_memory"
version = "0.2.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Memory management functionality for Mun"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_paths/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_paths"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides convenience structures for handling relative- and absolute paths"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_project/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_project"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides convenience structures for Mun projects"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_runtime"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "A runtime for hot reloading and invoking Mun from Rust"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_runtime/benches/wasm-sources/empty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "empty-wasm"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
homepage = "https://mun-lang.org"
repository = "https://github.com/mun-lang/mun"
license = "MIT OR Apache-2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "fibonacci-wasm"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
homepage = "https://mun-lang.org"
repository = "https://github.com/mun-lang/mun"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/mun_runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ pub trait InvokeArgs {
// Implement `InvokeTraits` for tuples up to and including 20 elements
seq_macro::seq!(N in 0..=20 {#(
seq_macro::seq!(I in 0..N {
impl<'arg, #(T#I: ArgumentReflection + Marshal<'arg>,)*> InvokeArgs for (#(T#I,)*) {
impl<'arg, #(T #I: ArgumentReflection + Marshal<'arg>,)*> InvokeArgs for (#(T #I,)*) {
#[allow(unused_variables)]
fn can_invoke<'runtime>(&self, runtime: &'runtime Runtime, signature: &FunctionSignature) -> Result<(), String> {
let arg_types = signature.arg_types();
Expand Down Expand Up @@ -565,7 +565,7 @@ seq_macro::seq!(I in 0..N {

unsafe fn invoke<ReturnType>(self, fn_ptr: *const c_void) -> ReturnType {
#[allow(clippy::type_complexity)]
let function: fn(#(T#I::MunType,)*) -> ReturnType = core::mem::transmute(fn_ptr);
let function: fn(#(T #I::MunType,)*) -> ReturnType = core::mem::transmute(fn_ptr);
function(#(self.I.marshal_into(),)*)
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_runtime_capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_runtime_capi"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides a C API for the Mun runtime"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_skeptic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_skeptic"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides the ability to test Mun code snippets in an mdbook"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_syntax"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Parsing functionality for the Mun programming language"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_target"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Describes compilation targets for Mun"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_test"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Functionality for testing Mun code"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_vfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mun_vfs"
version = "0.1.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"
description = "Provides an in-memory filesystem"
documentation = "https://docs.mun-lang.org/v0.3"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "tools"
version = "0.3.0"
authors = ["The Mun Team <team@mun-lang.org>"]
edition = "2018"
edition = "2021"

[dependencies]
teraron = "0.1.0"
Expand Down