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

Bump to Rust 1.78 #1205

Merged
merged 2 commits into from
May 8, 2024
Merged

Bump to Rust 1.78 #1205

merged 2 commits into from
May 8, 2024

Conversation

coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented May 3, 2024

Description of Changes

1.78 brings #[diagnostic::on_unimplemented], which lets you customize error messages when a type doesn't implement a trait. I have a branch that uses it to improve reducer & table type errors.

API and ABI breaking changes

MSRV bump, but that's usually not a big deal. understandable if we wanna hold off on it for a bit.

Expected complexity level and risk

1

@coolreader18 coolreader18 added the breaks library compatibility This change breaks the SpacetimeDB library interface label May 3, 2024
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small request to remove the dead code you identified, otherwise this looks good.

@@ -129,7 +129,7 @@ impl WasmInstanceEnv {
/// Signal to this `WasmInstanceEnv` that a reducer call is beginning.
pub fn start_reducer(&mut self, name: &str) {
self.reducer_start = Instant::now();
self.reducer_name = name.to_owned();
name.clone_into(&mut self.reducer_name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know this was being added, neat!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a nice lint! Now I feel like I have to document all the overrides of clone_into in std...

@coolreader18 coolreader18 added this pull request to the merge queue May 7, 2024
@coolreader18 coolreader18 removed this pull request from the merge queue due to a manual request May 7, 2024
@coolreader18 coolreader18 added this pull request to the merge queue May 8, 2024
Merged via the queue into master with commit 3b754f1 May 8, 2024
6 checks passed
@Centril Centril deleted the noa/rust1.78 branch May 13, 2024 08:07
@Centril
Copy link
Contributor

Centril commented May 13, 2024

I had expected this to improve the subscription benchmarks due to the LLVM 18 bump, but it seems it didn't. Although, this may have improved perf elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaks library compatibility This change breaks the SpacetimeDB library interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants