This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libstd/any.rs b/src/libstd/any.rs | |
index e204e08..73a986f 100644 | |
--- a/src/libstd/any.rs | |
+++ b/src/libstd/any.rs | |
@@ -40,6 +40,9 @@ pub enum Void { } | |
pub trait Any { | |
/// Get the `TypeId` of `self` | |
fn get_type_id(&self) -> TypeId; | |
+ | |
+ /// Get the type name of `self` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl ObjectStore<DiskChange> { | |
fn new(path: &Path) -> ObjectStore<DiskChange> { | |
let store_path = path.join("changes"); | |
let objects = load_objects(&store_path); | |
return ObjectStore{path: store_path, dirty: false, objects: objects}; | |
} | |
} | |
impl ObjectStore<DiskChangeSeq> { | |
fn new(path: &Path) -> ObjectStore<DiskChangeSeq> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn iter_dirs(path: Path) -> ~Iterator<Path> { | |
let contents = fs::readdir(&path).unwrap(); | |
return ~contents.iter().filter_map(|entry| -> Option<Path> { | |
if entry.is_dir() { | |
Some(entry.path_relative_from(&path).unwrap()) | |
} else { | |
None | |
} | |
}) as ~Iterator<Path>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meyer@metronome ~/C/R/rust> arc diff bc37b8fde5626f5405c8424a9fa59bf622013eb3 --trace | |
libphutil loaded from '/home/meyer/Code/PHP/phabricator/libphutil/src'. | |
arcanist loaded from '/home/meyer/Code/PHP/phabricator/arcanist/src'. | |
Working Copy: Reading .arcconfig from "/home/meyer/Code/Rust/rust/.arcconfig". | |
Working Copy: Path "/home/meyer/Code/Rust/rust" is part of `git` working copy "/home/meyer/Code/Rust/rust". | |
Working Copy: Project root is at "/home/meyer/Code/Rust/rust". | |
>>> [0] <conduit> conduit.connect() <bytes = 521> | |
>>> [1] <http> http://phabricator.octayn.net/api/conduit.connect | |
<<< [1] <http> 188,969 us | |
<<< [0] <conduit> 189,169 us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate collections; | |
use collections::HashSet; | |
#[deriving(Eq, Hash)] | |
struct XYZ { | |
x: int, | |
y: int, | |
z: int | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#0 0x00000000004ad877 in rust_stack_exhausted () | |
#1 0x0000000000531311 in __morestack () | |
#2 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#3 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#4 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#5 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#6 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#7 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#8 0x000000000040c081 in hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::robin_hood::hdb9988370be817a1y6e::v0.0 () at hamil3.rs:133 | |
#9 0x000000000040c081 in hashmap::Ha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strconv" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"math" | |
"os" | |
) | |
type Point struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-fcase-merge | |
Enable case-merging. Implied by -O. | |
-fcse | |
Turn on common sub-expression elimination. Implied by -O. | |
-fdo-eta-reduction | |
Enable eta-reduction. Implied by -O | |
-fenable-rewrite-rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-fcase-merge | |
Enable case-merging. Implied by -O. | |
-fcse | |
Turn on common sub-expression elimination. Implied by -O. | |
-fdo-eta-reduction | |
Enable eta-reduction. Implied by -O |