cargo fix --edition

This commit is contained in:
Anton-4 2022-05-16 17:04:17 +02:00
parent a1f03355c0
commit 0f59f3097a
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD
55 changed files with 53 additions and 55 deletions

View file

@ -3,7 +3,7 @@ name = "roc_ast"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "AST as used by the editor and (soon) docs. In contrast to the compiler, these types do not keep track of a location in a file." description = "AST as used by the editor and (soon) docs. In contrast to the compiler, these types do not keep track of a location in a file."
[dependencies] [dependencies]

View file

@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"
edition = "2018" edition = "2021"
description = "A CLI for roc-bindgen" description = "A CLI for roc-bindgen"
[[bin]] [[bin]]

View file

@ -1,7 +1,7 @@
[package] [package]
name = "bench-runner" name = "bench-runner"
version = "0.1.0" version = "0.1.0"
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"
edition = "2018" edition = "2021"
description = "A CLI for Roc" description = "A CLI for Roc"
default-run = "roc" default-run = "roc"

View file

@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"
edition = "2018" edition = "2021"
description = "Shared code for cli tests and benchmarks" description = "Shared code for cli tests and benchmarks"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -3,7 +3,7 @@ name = "roc_code_markup"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "Our own markup language for Roc code. Used by the editor and the docs." description = "Our own markup language for Roc code. Used by the editor and the docs."
[dependencies] [dependencies]

View file

@ -1,6 +1,6 @@
[package] [package]
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
edition = "2018" edition = "2021"
license = "UPL-1.0" license = "UPL-1.0"
name = "roc_alias_analysis" name = "roc_alias_analysis"
version = "0.1.0" version = "0.1.0"

View file

@ -4,5 +4,5 @@ version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"
edition = "2018" edition = "2021"
description = "A CLI for Roc" description = "A CLI for Roc"

View file

@ -3,7 +3,7 @@ name = "roc_build"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_builtins"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_can"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_collections"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
im = "15.0.0" im = "15.0.0"

View file

@ -3,7 +3,7 @@ name = "roc_constrain"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_exhaustive"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_fmt"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -4,7 +4,7 @@ description = "The development backend for the Roc compiler"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -4,7 +4,7 @@ description = "The LLVM backend for the Roc compiler"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_alias_analysis = { path = "../alias_analysis" } roc_alias_analysis = { path = "../alias_analysis" }

View file

@ -1,7 +1,7 @@
[package] [package]
name = "roc_gen_wasm" name = "roc_gen_wasm"
version = "0.1.0" version = "0.1.0"
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -3,4 +3,4 @@ name = "roc_ident"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"

View file

@ -3,7 +3,7 @@ name = "roc_load"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_load_internal = { path = "../load_internal" } roc_load_internal = { path = "../load_internal" }

View file

@ -3,7 +3,7 @@ name = "roc_load_internal"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -2,7 +2,7 @@
name = "roc_module" name = "roc_module"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
edition = "2018" edition = "2021"
license = "UPL-1.0" license = "UPL-1.0"
[dependencies] [dependencies]

View file

@ -3,7 +3,7 @@ name = "roc_mono"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_parse"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[features] [features]
"parse_debug_trace" = [] "parse_debug_trace" = []

View file

@ -3,7 +3,7 @@ name = "roc_parse-fuzz"
version = "0.0.0" version = "0.0.0"
authors = ["Automatically generated"] authors = ["Automatically generated"]
publish = false publish = false
edition = "2018" edition = "2021"
[package.metadata] [package.metadata]
cargo-fuzz = true cargo-fuzz = true

View file

@ -3,7 +3,7 @@ name = "roc_problem"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_region"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
static_assertions = "1.1.0" static_assertions = "1.1.0"

View file

@ -3,7 +3,7 @@ name = "roc_target"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
target-lexicon = "0.12.3" target-lexicon = "0.12.3"

View file

@ -3,7 +3,7 @@ name = "roc_solve"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "roc_str"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -3,7 +3,7 @@ name = "test_gen"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[[test]] [[test]]
name = "test_gen" name = "test_gen"

View file

@ -60,7 +60,6 @@ pub unsafe fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) {
pub unsafe fn roc_panic(c_ptr: *mut c_void, tag_id: u32) { pub unsafe fn roc_panic(c_ptr: *mut c_void, tag_id: u32) {
use roc_gen_llvm::llvm::build::PanicTagId; use roc_gen_llvm::llvm::build::PanicTagId;
use std::convert::TryFrom;
use std::ffi::CStr; use std::ffi::CStr;
use std::os::raw::c_char; use std::os::raw::c_char;

View file

@ -3,7 +3,7 @@ name = "test_mono"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[[test]] [[test]]
name = "test_mono" name = "test_mono"

View file

@ -3,7 +3,7 @@ name = "test_mono_macros"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[lib] [lib]
proc-macro = true proc-macro = true

View file

@ -3,7 +3,7 @@ name = "roc_types"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../collections" } roc_collections = { path = "../collections" }

View file

@ -241,7 +241,6 @@ impl Subs {
} }
pub fn deserialize(bytes: &[u8]) -> (Self, &[(Symbol, Variable)]) { pub fn deserialize(bytes: &[u8]) -> (Self, &[(Symbol, Variable)]) {
use std::convert::TryInto;
let mut offset = 0; let mut offset = 0;
let header_slice = &bytes[..std::mem::size_of::<SubsHeader>()]; let header_slice = &bytes[..std::mem::size_of::<SubsHeader>()];

View file

@ -1422,7 +1422,7 @@ impl Type {
pub fn expect_variable(&self, reason: &'static str) -> Variable { pub fn expect_variable(&self, reason: &'static str) -> Variable {
match self { match self {
Type::Variable(v) => *v, Type::Variable(v) => *v,
_ => internal_error!(reason), _ => internal_error!("{}", reason),
} }
} }
} }

View file

@ -1,6 +1,6 @@
[package] [package]
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
edition = "2018" edition = "2021"
license = "UPL-1.0" license = "UPL-1.0"
name = "roc_unify" name = "roc_unify"
version = "0.1.0" version = "0.1.0"

View file

@ -3,7 +3,7 @@ name = "roc_docs"
version = "0.1.0" version = "0.1.0"
license = "UPL-1.0" license = "UPL-1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
edition = "2018" edition = "2021"
[dependencies] [dependencies]
pulldown-cmark = { version = "0.8.0", default-features = false } pulldown-cmark = { version = "0.8.0", default-features = false }

View file

@ -3,7 +3,7 @@ name = "roc_docs_cli"
version = "0.1.0" version = "0.1.0"
license = "UPL-1.0" license = "UPL-1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
edition = "2018" edition = "2021"
# This binary is only used on static build servers, e.g. Netlify. # This binary is only used on static build servers, e.g. Netlify.
# Having its own (extremely minimal) CLI means docs can be generated # Having its own (extremely minimal) CLI means docs can be generated

View file

@ -3,7 +3,7 @@ name = "roc_editor"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "An editor for Roc" description = "An editor for Roc"
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]

View file

@ -3,6 +3,6 @@ name = "roc_error_macros"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]

View file

@ -3,7 +3,7 @@ name = "host"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
# Needed to be able to run on non-Windows systems for some reason. Without this, cargo panics with: # Needed to be able to run on non-Windows systems for some reason. Without this, cargo panics with:
# #

View file

@ -3,7 +3,7 @@ name = "host"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
links = "app" links = "app"

View file

@ -3,7 +3,7 @@ name = "host"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
links = "app" links = "app"
# Needed to be able to run on non-Windows systems for some reason. Without this, cargo panics with: # Needed to be able to run on non-Windows systems for some reason. Without this, cargo panics with:

View file

@ -3,7 +3,7 @@ name = "host"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
links = "app" links = "app"
[lib] [lib]

View file

@ -3,7 +3,7 @@ name = "host"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
links = "app" links = "app"

View file

@ -3,7 +3,7 @@ name = "roc_highlight"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "For syntax highlighting, starts with a string and returns our markup nodes." description = "For syntax highlighting, starts with a string and returns our markup nodes."
[dependencies] [dependencies]

View file

@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"
edition = "2018" edition = "2021"
description = "A surgical linker for Roc" description = "A surgical linker for Roc"
[lib] [lib]

View file

@ -1,7 +1,7 @@
[package] [package]
name = "nightly_benches" name = "nightly_benches"
version = "0.1.0" version = "0.1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]

View file

@ -3,7 +3,7 @@ name = "roc_reporting"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
roc_collections = { path = "../compiler/collections" } roc_collections = { path = "../compiler/collections" }

View file

@ -1,7 +1,7 @@
[package] [package]
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
description = "Rust representations of Roc data structures" description = "Rust representations of Roc data structures"
edition = "2018" edition = "2021"
license = "UPL-1.0" license = "UPL-1.0"
name = "roc_std" name = "roc_std"
readme = "README.md" readme = "README.md"

View file

@ -3,7 +3,7 @@ name = "roc_test_utils"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "Utility functions used all over the code base." description = "Utility functions used all over the code base."
[dependencies] [dependencies]

View file

@ -3,7 +3,7 @@ name = "roc_utils"
version = "0.1.0" version = "0.1.0"
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
license = "UPL-1.0" license = "UPL-1.0"
edition = "2018" edition = "2021"
description = "Utility functions used all over the code base." description = "Utility functions used all over the code base."
[dependencies] [dependencies]

View file

@ -1,7 +1,7 @@
[package] [package]
authors = ["The Roc Contributors"] authors = ["The Roc Contributors"]
description = "Rust wrapper for a WebAssembly test platform built on libc" description = "Rust wrapper for a WebAssembly test platform built on libc"
edition = "2018" edition = "2021"
license = "UPL-1.0" license = "UPL-1.0"
name = "wasi_libc_sys" name = "wasi_libc_sys"
repository = "https://github.com/rtfeldman/roc" repository = "https://github.com/rtfeldman/roc"