use UFCS in #[deriving(Hash)]
expansion now uses `::std:#️⃣:Hash::hash(&*__self_0_0, __arg_0)` instead of `(*__self_0_0).hash(__arg_0)` closes #21160
This commit is contained in:
parent
896cb36eca
commit
59e9cfa0cf
4 changed files with 37 additions and 2 deletions
|
|
@ -18,6 +18,8 @@ use core::cmp::Ordering::{self, Less, Greater, Equal};
|
|||
use core::default::Default;
|
||||
use core::fmt::Show;
|
||||
use core::fmt;
|
||||
// NOTE(stage0) remove import after a snapshot
|
||||
#[cfg(stage0)]
|
||||
use core::hash::Hash;
|
||||
use core::iter::{Peekable, Map, FromIterator};
|
||||
use core::ops::{BitOr, BitAnd, BitXor, Sub};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue