std: Rename {Eq,Ord} to Partial{Eq,Ord}
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
This commit is contained in:
parent
f4fa7c8a07
commit
748bc3ca49
256 changed files with 834 additions and 831 deletions
|
@ -24,7 +24,7 @@ use std::rc::Rc;
|
|||
use std::string::String;
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash, Show)]
|
||||
#[deriving(Clone, Encodable, Decodable, PartialEq, TotalEq, Hash, Show)]
|
||||
pub enum BinOp {
|
||||
PLUS,
|
||||
MINUS,
|
||||
|
@ -39,7 +39,7 @@ pub enum BinOp {
|
|||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash, Show)]
|
||||
#[deriving(Clone, Encodable, Decodable, PartialEq, TotalEq, Hash, Show)]
|
||||
pub enum Token {
|
||||
/* Expression-operator symbols. */
|
||||
EQ,
|
||||
|
@ -102,7 +102,7 @@ pub enum Token {
|
|||
EOF,
|
||||
}
|
||||
|
||||
#[deriving(Clone, Encodable, Decodable, Eq, TotalEq, Hash)]
|
||||
#[deriving(Clone, Encodable, Decodable, PartialEq, TotalEq, Hash)]
|
||||
/// For interpolation during macro expansion.
|
||||
pub enum Nonterminal {
|
||||
NtItem(@ast::Item),
|
||||
|
@ -552,7 +552,7 @@ pub fn get_ident_interner() -> Rc<IdentInterner> {
|
|||
/// destroyed. In particular, they must not access string contents. This can
|
||||
/// be fixed in the future by just leaking all strings until task death
|
||||
/// somehow.
|
||||
#[deriving(Clone, Eq, Hash, Ord, TotalEq, TotalOrd)]
|
||||
#[deriving(Clone, PartialEq, Hash, PartialOrd, TotalEq, TotalOrd)]
|
||||
pub struct InternedString {
|
||||
string: RcStr,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue