mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
This commit is contained in:
parent
26045d7fcb
commit
d1b433a3b3
160 changed files with 1427 additions and 1162 deletions
|
@ -24,7 +24,7 @@ struct RawNode<T> {
|
|||
#[unsafe_destructor]
|
||||
impl<T> Drop for RawDList<T> {
|
||||
fn drop(&mut self) {
|
||||
fail!("shouldn't happen")
|
||||
panic!("shouldn't happen")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ pub fn split<T>(list: &mut DList<T>) -> DList<T> {
|
|||
};
|
||||
|
||||
if list.length == 0 {
|
||||
fail!("split_dlist(): empty list")
|
||||
panic!("split_dlist(): empty list")
|
||||
}
|
||||
let head_node = mem::replace(&mut list.head, ptr::null_mut());
|
||||
let head_list = RawDList {
|
||||
|
@ -96,4 +96,3 @@ pub fn append_from<T>(this: &mut DList<T>, other: &mut DList<T>) {
|
|||
other.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue