This file contains hidden or 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
| ./pp.rs:12:14: 12:25 warning: instantiating copy type parameter with a not implicitly copyable type | |
| ./pp.rs:12 let data = result::get(result_data); | |
| ^~~~~~~~~~~ |
This file contains hidden or 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
| ... | |
| // GIVEN THIS CHANGE IN libcore/io.rs | |
| fn str_reader(+ss: ~str) -> Reader { | |
| bytes_reader(str::bytes(ss)) | |
| } | |
| ... |
This file contains hidden or 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
| kunix:rust $ git diff | |
| diff --git a/src/libcore/io.rs b/src/libcore/io.rs | |
| index 046d155..7f437cf 100644 | |
| --- a/src/libcore/io.rs | |
| +++ b/src/libcore/io.rs | |
| @@ -4,6 +4,9 @@ Module: io | |
| Basic input/output | |
| */ | |
| +#[forbid(deprecated_mode)]; |
This file contains hidden or 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
| // Call o.fsync after executing blk | |
| fn obj_sync(&&o: FSyncable, opt_level: option<Level>, /* ICE if I change this... */ | |
| blk: fn(&&Res<FSyncable>)) { | |
| blk(Res({ | |
| val: o, opt_level: opt_level, | |
| fsync_fn: fn@(&&o: FSyncable, l: Level) -> int { | |
| return o.fsync(l); | |
| } | |
| })); | |
| } |
This file contains hidden or 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
| // fsync fd after executing blk | |
| fn fd_res_sync(&&fd: FdRes, opt_level: option<Level>, | |
| blk: fn(&&Res<fd_t>)) { | |
| blk(Res({ | |
| val: fd.fd, opt_level: opt_level, | |
| fsync_fn: fn@(&&fd: fd_t, l: Level) -> int { | |
| return os::fsync_fd(fd, l) as int; | |
| } | |
| })); | |
| } |
This file contains hidden or 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 getenv_nonempty(v: &Path) -> option<Path> { | |
| match getenv(*v) { | |
| some(x) => | |
| if str::is_empty(x) { | |
| none | |
| } else { | |
| some(x) | |
| }, | |
| _ => none | |
| } |
This file contains hidden or 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
| // Kevin Cantu | |
| // a graphvis `dot` script | |
| strict digraph DEMO { | |
| //graph[size="7.0,10.25"] | |
| node[nodesep=0.75, ranksep=0.75, colsep=0.75] | |
| //node[shape=Mrecord] | |
| node[shape=rect] |
This file contains hidden or 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
| #!/usr/bin/env python | |
| from kivy.app import App | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.textinput import TextInput | |
| from kivy.uix.label import Label | |
| from kivy.uix.button import Button | |
| layout = BoxLayout(orientation='vertical') | |
| pass0 = TextInput(text="<initial passphrase0>") |
This file contains hidden or 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
| BoxLayout: | |
| orientation: 'horizontal' | |
| TextInput: | |
| id: p0 | |
| TextInput: | |
| id: p1 | |
| Label: |
This file contains hidden or 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
| kunix:me $ ./cabal-dev/bin/lifter < samples/contest7.map | |
| ^C3.133571s: SIGINT Caught | |
| 12.640033s: Time's up | |
| RDRRRDDLLDLDLLRURURRRDRDRRRLULLL | |
| 12.640286s: 867 |