Skip to content

Commit 44cd71b

Browse files
committed
Update MSRV to 1.78-nightly
1 parent d717e59 commit 44cd71b

File tree

34 files changed

+42
-27
lines changed

34 files changed

+42
-27
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = "0.1.0"
1313
authors = ["Juniper Tyree <juniper.tyree@helsinki.fi>"]
1414
license = "MIT OR Apache-2.0"
1515
edition = "2021"
16-
rust-version = "1.75" # nightly
16+
rust-version = "1.78" # nightly
1717

1818
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1919

@@ -29,7 +29,7 @@ rustacuda_core = "0.1.2"
2929
rustacuda = { version = "0.1.3", optional = true }
3030
rustacuda_derive = { version = "0.1.2", optional = true }
3131

32-
const-type-layout = { version = "0.2.0", features = ["derive"] }
32+
const-type-layout = { version = "0.3.0", features = ["derive"] }
3333

3434
final = "0.1.1"
3535
hashbrown = { version = "0.14", default-features = false, features = ["inline-more"], optional = true }

examples/derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ edition = "2021"
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
const-type-layout = { version = "0.2.0" }
11+
const-type-layout = { version = "0.3.0" }
1212
rust-cuda = { path = "../../", features = ["derive", "host"] }

examples/derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![deny(clippy::pedantic)]
22
#![feature(const_type_name)]
3-
#![feature(offset_of)]
43

54
#[derive(rust_cuda::common::LendRustToCuda)]
65
struct Inner<T: Copy> {

examples/single-source/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
const-type-layout = { version = "0.2.0" }
11+
const-type-layout = { version = "0.3.0" }
1212

1313
[target.'cfg(target_os = "cuda")'.dependencies]
1414
rust-cuda = { path = "../../", features = ["derive"] }

examples/single-source/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
#![cfg_attr(target_os = "cuda", no_main)]
44
#![cfg_attr(target_os = "cuda", feature(abi_ptx))]
55
#![cfg_attr(target_os = "cuda", feature(alloc_error_handler))]
6-
#![cfg_attr(target_os = "cuda", feature(stdsimd))]
6+
#![cfg_attr(target_os = "cuda", feature(stdarch_nvptx))]
77
#![cfg_attr(target_os = "cuda", feature(asm_experimental_arch))]
88
#![feature(const_type_name)]
9-
#![feature(offset_of)]
109

1110
extern crate alloc;
1211

rust-cuda-derive/src/kernel/link/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::path::PathBuf;
22

3+
use quote::quote;
4+
35
#[allow(clippy::module_name_repetitions)]
46
pub(super) struct LinkKernelConfig {
57
pub(super) kernel: syn::Ident,

rust-cuda-derive/src/kernel/link/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use ptx_builder::{
1111
builder::{BuildStatus, Builder, MessageFormat, Profile},
1212
error::{BuildErrorKind, Error, Result},
1313
};
14+
use quote::quote;
1415

1516
use super::utils::skip_kernel_compilation;
1617

@@ -287,7 +288,7 @@ fn build_kernel_with_specialisation(
287288
let any_output = AtomicBool::new(false);
288289
let crate_name = String::from(builder.get_crate_name());
289290

290-
match builder.build_live(
291+
let status = builder.build_live(
291292
|stdout_line| {
292293
if let Ok(cargo_metadata::Message::CompilerMessage(mut message)) =
293294
serde_json::from_str(stdout_line)
@@ -355,7 +356,9 @@ fn build_kernel_with_specialisation(
355356
);
356357
colored::control::unset_override();
357358
},
358-
)? {
359+
)?;
360+
361+
match status {
359362
BuildStatus::Success(output) => {
360363
let ptx_path = output.get_assembly_path();
361364

rust-cuda-derive/src/kernel/specialise/call.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use proc_macro::TokenStream;
2+
use quote::quote;
23

34
#[allow(clippy::module_name_repetitions)]
45
pub fn specialise_kernel_call(tokens: TokenStream) -> TokenStream {

rust-cuda-derive/src/kernel/specialise/entry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::env::VarError;
22

33
use proc_macro::TokenStream;
4+
use quote::quote;
45

56
#[allow(clippy::module_name_repetitions)]
67
pub fn specialise_kernel_entry(attr: TokenStream, func: TokenStream) -> TokenStream {

rust-cuda-derive/src/kernel/wrapper/generate/args_trait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use proc_macro2::TokenStream;
2+
use quote::quote;
23

34
use super::super::{DeclGenerics, FunctionInputs, ImplGenerics, KernelConfig};
45

0 commit comments

Comments
 (0)