You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto merge of #11490 : wting/rust/wting_11362_update_extract_tests, r=alexcrichton
Refactored the file quite a bit, I can add unit tests if desired. There's a few changes from the previous version's behavior:
- destination directory will be created if it doesn't exist
- strings and file is written as unicode
I have a few questions, but will ask them in #11362.
Copy file name to clipboardExpand all lines: doc/complement-cheatsheet.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ let y: i64 = x.unwrap();
48
48
49
49
Use [`File::open`](http://static.rust-lang.org/doc/master/std/io/fs/struct.File.html#method.open) to create a [`File`](http://static.rust-lang.org/doc/master/std/io/fs/struct.File.html) struct, which implements the [`Reader`](http://static.rust-lang.org/doc/master/std/io/trait.Reader.html) trait.
50
50
51
-
~~~{.xfail-test}
51
+
~~~{.ignore}
52
52
use std::path::Path;
53
53
use std::io::fs::File;
54
54
@@ -168,7 +168,7 @@ let _ = close(Door::<Open>(~"front"));
168
168
169
169
Attempting to close a closed door is prevented statically:
170
170
171
-
~~~{.xfail-test}
171
+
~~~{.ignore}
172
172
let _ = close(Door::<Closed>(~"front")); // error: mismatched types: expected `main::Door<main::Open>` but found `main::Door<main::Closed>`
173
173
~~~
174
174
@@ -196,7 +196,7 @@ Window* createWindow(int width, int height);
196
196
197
197
You can use a zero-element `enum` ([phantom type](#how-do-i-express-phantom-types)) to represent the opaque object handle. The FFI would look like this:
0 commit comments