Skip to content

Commit c120ff7

Browse files
nnethercoteLegNeato
authored andcommitted
Update various crates from edition 2018 to 2021.
(These will be updated to 2024 in a separate commit.) The only change required is in a macro, where spaces are needed before `#` to avoid a "prefixed identifiers and literals are reserved since Rust 2021" error.
1 parent 609928f commit c120ff7

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

crates/cuda_std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cuda_std"
33
version = "0.2.2"
4-
edition = "2018"
4+
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "Standard library for CUDA with rustc_codegen_nvvm"
77
repository = "https://github.com/Rust-GPU/rust-cuda"

crates/cuda_std_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cuda_std_macros"
33
version = "0.2.0"
4-
edition = "2018"
4+
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "Macros for cuda_std"
77
repository = "https://github.com/Rust-GPU/rust-cuda"

crates/cust_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cust_derive"
33
version = "0.2.0"
44
authors = ["Brook Heisler <[email protected]>", "Riccardo D'Ambrosio <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Macros for cust"
88
repository = "https://github.com/Rust-GPU/rust-cuda"

crates/cust_derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ fn impl_device_copy(input: &DeriveInput, import: TokenStream) -> TokenStream {
5353

5454
// Finally, generate the unsafe impl and the type-checking function.
5555
let generated_code = quote! {
56-
unsafe impl#impl_generics #import for #input_type#type_generics #where_clause {}
56+
unsafe impl #impl_generics #import for #input_type #type_generics #where_clause {}
5757

5858
#[doc(hidden)]
5959
#[allow(all)]
60-
fn #type_test_func_ident#impl_generics(value: &#input_type#type_generics) #where_clause {
60+
fn #type_test_func_ident #impl_generics(value: &#input_type #type_generics) #where_clause {
6161
fn assert_impl<T: #import>() {}
6262
#check_types_code
6363
}

crates/nvvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "nvvm"
33
version = "0.1.1"
44
authors = ["Riccardo D'Ambrosio <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "High level bindings to libnvvm"
88
repository = "https://github.com/Rust-GPU/rust-cuda"

crates/optix/examples/path_tracer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "path-tracer"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
glam = { version = "0.30", features = ["bytemuck", "cuda", "mint"] }

crates/optix/examples/path_tracer/kernels/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "path-tracer-kernels"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
cuda_std = { version = "0.2", path = "../../../../cuda_std" }

crates/ptx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ptx"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "PTX parser and analyzer"
77
repository = "https://github.com/Rust-GPU/rust-cuda"

0 commit comments

Comments
 (0)