We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc206a9 commit e7122a5Copy full SHA for e7122a5
src/libcollections/lib.rs
@@ -24,8 +24,8 @@
24
html_playground_url = "http://play.rust-lang.org/")]
25
#![doc(test(no_crate_inject))]
26
27
-#![allow(trivial_cast)]
28
-#![allow(trivial_numeric_cast)]
+#![allow(trivial_casts)]
+#![allow(trivial_numeric_casts)]
29
#![feature(alloc)]
30
#![feature(box_syntax)]
31
#![feature(box_patterns)]
src/libcore/cell.rs
@@ -715,7 +715,7 @@ impl<T> UnsafeCell<T> {
715
#[stable(feature = "rust1", since = "1.0.0")]
716
pub fn get(&self) -> *mut T {
717
// FIXME(#23542) Replace with type ascription.
718
- #![allow(trivial_cast)]
+ #![allow(trivial_casts)]
719
&self.value as *const T as *mut T
720
}
721
src/libcore/fmt/mod.rs
@@ -834,7 +834,7 @@ impl<T> Pointer for *const T {
834
impl<T> Pointer for *mut T {
835
fn fmt(&self, f: &mut Formatter) -> Result {
836
837
838
Pointer::fmt(&(*self as *const T), f)
839
840
@@ -843,7 +843,7 @@ impl<T> Pointer for *mut T {
843
impl<'a, T> Pointer for &'a T {
844
845
846
847
848
849
@@ -852,7 +852,7 @@ impl<'a, T> Pointer for &'a T {
852
impl<'a, T> Pointer for &'a mut T {
853
854
855
856
Pointer::fmt(&(&**self as *const T), f)
857
858
src/libcore/fmt/num.rs
@@ -13,7 +13,7 @@
13
// FIXME: #6220 Implement floating point formatting
14
15
#![allow(unsigned_negation)]
16
17
18
use fmt;
19
use iter::IteratorExt;
src/libcore/hash/mod.rs
@@ -183,7 +183,7 @@ mod impls {
183
184
fn hash_slice<H: Hasher>(data: &[$ty], state: &mut H) {
185
186
187
let newlen = data.len() * ::$ty::BYTES as usize;
188
let ptr = data.as_ptr() as *const u8;
189
state.write(unsafe { slice::from_raw_parts(ptr, newlen) })
src/libcore/mem.rs
@@ -314,7 +314,7 @@ pub fn drop<T>(_x: T) { }
314
315
pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
316
317
318
ptr::read(src as *const T as *const U)
319
320
src/libcore/num/i16.rs
@@ -12,6 +12,6 @@
12
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "i16")]
int_module! { i16, 16 }
src/libcore/num/i32.rs
#![doc(primitive = "i32")]
int_module! { i32, 32 }
src/libcore/num/i64.rs
#![doc(primitive = "i64")]
int_module! { i64, 64 }
src/libcore/num/i8.rs
#![doc(primitive = "i8")]
int_module! { i8, 8 }
0 commit comments