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

THRIFT-5819: use latest rustc version for rustlib #3045

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimexist
Copy link
Member

@jimexist jimexist commented Sep 28, 2024

use latest rustc version for rustlib

  • Did you create an Apache Jira ticket? (Request account here, not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

@jimexist jimexist changed the title use latest rustc version for rustlib THRIFT-5819: use latest rustc version for rustlib Sep 30, 2024
@jimexist jimexist force-pushed the rust-lib-use-latest-ver branch from a9f332e to 294e371 Compare September 30, 2024 06:30
@Jens-G Jens-G added the rust label Oct 11, 2024
@@ -2818,7 +2816,7 @@ mod tests {
copy_write_buffer_to_read_buffer!(o_prot);

let read_double = i_prot.read_double().unwrap();
assert!(read_double - double < std::f64::EPSILON);
assert!((read_double - double).abs() < f64::EPSILON);
Copy link
Member

@Jens-G Jens-G Oct 11, 2024

Choose a reason for hiding this comment

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

🤣 great catch

Copy link
Member

Choose a reason for hiding this comment

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

+1 LGTM

@jimexist
Copy link
Member Author

still pending some compile err that i didn't have time to look into. not sure if someone familiar with the rust stack can help.

@cameron-martin
Copy link

This warning (which is turned into an error by #[deny(warnings)]) is coming from a doc test. It seems like having dead code in these is reasonable, so you can disable this like so:

diff --git a/lib/rs/src/lib.rs b/lib/rs/src/lib.rs
index 84c1f9b71..2f6018810 100644
--- a/lib/rs/src/lib.rs
+++ b/lib/rs/src/lib.rs
@@ -53,7 +53,7 @@
 //! [tutorial]: https://github.com/apache/thrift/tree/master/tutorial/rs
 
 #![crate_type = "lib"]
-#![doc(test(attr(allow(unused_variables), deny(warnings))))]
+#![doc(test(attr(allow(unused_variables, dead_code), deny(warnings))))]
 #![deny(bare_trait_objects)]
 
 // NOTE: this macro has to be defined before any modules. See:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants