Skip to content

Commit 6dd62f7

Browse files
committed
Resolve merge problems #52
1 parent 4b82d75 commit 6dd62f7

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

Diff for: dev/playground/src/hashin.rs renamed to dev/playground/src/hashing.rs

-49
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ impl<H: 'static + Hasher> AnyHasher for H {
2929
}
3030
}
3131

32-
// TODO: but now I want this not for everything
3332
impl<T: 'static + Hash> MyTrait for T {
3433
fn as_any(&self) -> &Any {
3534
self as &Any
@@ -41,9 +40,6 @@ impl<T: 'static + Hash> MyTrait for T {
4140
}
4241
}
4342

44-
//impl MyTrait for A {}
45-
//impl MyTrait for B {}
46-
4743
impl Hash for MyTrait {
4844
fn hash<H: Hasher>(&self, hasher: &mut H) {
4945
self.my_hash(hasher)
@@ -57,48 +53,3 @@ fn main() {
5753
let x: &MyTrait = &A(1);
5854
x.hash(&mut hasher);
5955
}
60-
61-
62-
//trait PreS: Debug {}
63-
//
64-
//trait HasherAsAny {
65-
// fn as_any(&self) -> &Any;
66-
//}
67-
//
68-
//trait PostS {
69-
// fn as_any(&self) -> &Any;
70-
//
71-
// fn _hash<H: Hasher>(&self, hasher: H);
72-
//}
73-
//
74-
//impl<T: 'static + Hasher> HasherAsAny for T {
75-
// fn as_any(&self) -> &Any {
76-
// self as &Any
77-
// }
78-
//}
79-
//
80-
//impl<T: 'static + PreS> PostS for T {
81-
// fn as_any(&self) -> &Any {
82-
// self as &Any
83-
// }
84-
//
85-
// fn _hash<H: Hasher>(&self, hasher: H) {
86-
// self.as_any().downcast_ref::<T>().hash(hasher)
87-
// }
88-
//}
89-
//
90-
//impl PreS for A {}
91-
//
92-
//impl PreS for B {}
93-
//
94-
//impl Hash for PostS {
95-
// fn hash(&self, hasher: &mut HasherAsAny) {
96-
// self._hash(hasher.as_any().downcast_ref::<T>())
97-
// }
98-
//}
99-
//
100-
//fn main() {
101-
// let x: &PostS = &A(1);
102-
// let m = HashMap::new();
103-
// m.insert(x, 0);
104-
//}

Diff for: src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![feature(nll)]
22
//#![feature(generators, generator_trait)]
3-
43
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
54
extern crate core;
65
extern crate wasm_bindgen;
@@ -13,9 +12,7 @@ extern crate derive_new;
1312

1413
pub mod mango {
1514
// Utilities
16-
pub mod cli;
1715
pub mod io;
18-
1916
pub mod jit;
2017
pub mod ui;
2118
pub mod util;

0 commit comments

Comments
 (0)