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 c2fde5a commit c4f3029Copy full SHA for c4f3029
src/libcollections/lib.rs
@@ -23,8 +23,8 @@
23
html_root_url = "http://doc.rust-lang.org/nightly/",
24
html_playground_url = "http://play.rust-lang.org/")]
25
26
-#![allow(trivial_cast)]
27
-#![allow(trivial_numeric_cast)]
+#![allow(trivial_casts)]
+#![allow(trivial_numeric_casts)]
28
#![feature(alloc)]
29
#![feature(box_syntax)]
30
#![feature(box_patterns)]
src/libcore/cell.rs
@@ -714,7 +714,7 @@ impl<T> UnsafeCell<T> {
714
#[stable(feature = "rust1", since = "1.0.0")]
715
pub fn get(&self) -> *mut T {
716
// FIXME(#23542) Replace with type ascription.
717
- #![allow(trivial_cast)]
+ #![allow(trivial_casts)]
718
&self.value as *const T as *mut T
719
}
720
src/libcore/fmt/mod.rs
@@ -830,7 +830,7 @@ impl<T> Pointer for *const T {
830
impl<T> Pointer for *mut T {
831
fn fmt(&self, f: &mut Formatter) -> Result {
832
833
834
Pointer::fmt(&(*self as *const T), f)
835
836
@@ -839,7 +839,7 @@ impl<T> Pointer for *mut T {
839
impl<'a, T> Pointer for &'a T {
840
841
842
843
844
845
@@ -848,7 +848,7 @@ impl<'a, T> Pointer for &'a T {
848
impl<'a, T> Pointer for &'a mut T {
849
850
851
852
Pointer::fmt(&(&**self as *const T), f)
853
854
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
@@ -181,7 +181,7 @@ mod impls {
181
182
fn hash_slice<H: Hasher>(data: &[$ty], state: &mut H) {
183
184
185
let newlen = data.len() * ::$ty::BYTES as usize;
186
let ptr = data.as_ptr() as *const u8;
187
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