mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
cargo fix --edition
This commit is contained in:
parent
a1f03355c0
commit
0f59f3097a
55 changed files with 53 additions and 55 deletions
|
@ -3,7 +3,7 @@ name = "roc_ast"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
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."
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "A CLI for roc-bindgen"
|
||||
|
||||
[[bin]]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "bench-runner"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "A CLI for Roc"
|
||||
default-run = "roc"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Shared code for cli tests and benchmarks"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_code_markup"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Our own markup language for Roc code. Used by the editor and the docs."
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
authors = ["The Roc Contributors"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "UPL-1.0"
|
||||
name = "roc_alias_analysis"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -4,5 +4,5 @@ version = "0.1.0"
|
|||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "A CLI for Roc"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_build"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_builtins"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_can"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_collections"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
im = "15.0.0"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_constrain"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_exhaustive"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_fmt"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -4,7 +4,7 @@ description = "The development backend for the Roc compiler"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -4,7 +4,7 @@ description = "The LLVM backend for the Roc compiler"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_alias_analysis = { path = "../alias_analysis" }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "roc_gen_wasm"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@ name = "roc_ident"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_load"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_load_internal = { path = "../load_internal" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_load_internal"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "roc_module"
|
||||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "UPL-1.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_mono"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_parse"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
"parse_debug_trace" = []
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_parse-fuzz"
|
|||
version = "0.0.0"
|
||||
authors = ["Automatically generated"]
|
||||
publish = false
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[package.metadata]
|
||||
cargo-fuzz = true
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_problem"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_region"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
static_assertions = "1.1.0"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_target"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
target-lexicon = "0.12.3"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_solve"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_str"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "test_gen"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[test]]
|
||||
name = "test_gen"
|
||||
|
|
|
@ -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) {
|
||||
use roc_gen_llvm::llvm::build::PanicTagId;
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use std::ffi::CStr;
|
||||
use std::os::raw::c_char;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "test_mono"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[test]]
|
||||
name = "test_mono"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "test_mono_macros"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_types"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
|
@ -241,7 +241,6 @@ impl Subs {
|
|||
}
|
||||
|
||||
pub fn deserialize(bytes: &[u8]) -> (Self, &[(Symbol, Variable)]) {
|
||||
use std::convert::TryInto;
|
||||
|
||||
let mut offset = 0;
|
||||
let header_slice = &bytes[..std::mem::size_of::<SubsHeader>()];
|
||||
|
|
|
@ -1422,7 +1422,7 @@ impl Type {
|
|||
pub fn expect_variable(&self, reason: &'static str) -> Variable {
|
||||
match self {
|
||||
Type::Variable(v) => *v,
|
||||
_ => internal_error!(reason),
|
||||
_ => internal_error!("{}", reason),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
authors = ["The Roc Contributors"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "UPL-1.0"
|
||||
name = "roc_unify"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_docs"
|
|||
version = "0.1.0"
|
||||
license = "UPL-1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
pulldown-cmark = { version = "0.8.0", default-features = false }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_docs_cli"
|
|||
version = "0.1.0"
|
||||
license = "UPL-1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# This binary is only used on static build servers, e.g. Netlify.
|
||||
# Having its own (extremely minimal) CLI means docs can be generated
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_editor"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "An editor for Roc"
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
|
|
|
@ -3,6 +3,6 @@ name = "roc_error_macros"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "host"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
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:
|
||||
#
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "host"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
links = "app"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "host"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
links = "app"
|
||||
|
||||
# Needed to be able to run on non-Windows systems for some reason. Without this, cargo panics with:
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "host"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
links = "app"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "host"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
links = "app"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_highlight"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "For syntax highlighting, starts with a string and returns our markup nodes."
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "A surgical linker for Roc"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "nightly_benches"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_reporting"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
roc_collections = { path = "../compiler/collections" }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
authors = ["The Roc Contributors"]
|
||||
description = "Rust representations of Roc data structures"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "UPL-1.0"
|
||||
name = "roc_std"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_test_utils"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Utility functions used all over the code base."
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "roc_utils"
|
|||
version = "0.1.0"
|
||||
authors = ["The Roc Contributors"]
|
||||
license = "UPL-1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Utility functions used all over the code base."
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
authors = ["The Roc Contributors"]
|
||||
description = "Rust wrapper for a WebAssembly test platform built on libc"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "UPL-1.0"
|
||||
name = "wasi_libc_sys"
|
||||
repository = "https://github.com/rtfeldman/roc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue