We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a67c9e3 commit 0a8ed17Copy full SHA for 0a8ed17
std/src/num.rs
@@ -6,9 +6,6 @@
6
#![stable(feature = "rust1", since = "1.0.0")]
7
#![allow(missing_docs)]
8
9
-#[cfg(test)]
10
-mod tests;
11
-
12
#[stable(feature = "int_error_matching", since = "1.55.0")]
13
pub use core::num::IntErrorKind;
14
#[stable(feature = "generic_nonzero", since = "1.79.0")]
std/src/num/tests.rs renamed to std/tests/num.rs
@@ -1,4 +1,4 @@
1
-use crate::ops::Mul;
+use std::ops::Mul;
2
3
#[test]
4
fn test_saturating_add_uint() {
@@ -190,8 +190,8 @@ fn test_uint_to_str_overflow() {
190
assert_eq!(u64_val.to_string(), "0");
191
}
192
193
-fn from_str<T: crate::str::FromStr>(t: &str) -> Option<T> {
194
- crate::str::FromStr::from_str(t).ok()
+fn from_str<T: std::str::FromStr>(t: &str) -> Option<T> {
+ std::str::FromStr::from_str(t).ok()
195
196
197
0 commit comments