Skip to content

Commit 0947fac

Browse files
committed
---
yaml --- r: 107607 b: refs/heads/dist-snap c: fa84593 h: refs/heads/master i: 107605: 9f98d75 107603: 47d2274 107599: 961d2e6 v: v3
1 parent 82ac148 commit 0947fac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+377
-2079
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 9f4e5b6f3182da3a5dacd9edec2e73b7cd792f25
9+
refs/heads/dist-snap: fa84593fc3098c4631be0887b772f0665b731a31
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ LLVM_COMPONENTS=x86 arm mips ipo bitreader bitwriter linker asmparser jit mcjit
367367
interpreter instrumentation
368368

369369
# Only build these LLVM tools
370-
LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt llvm-extract
370+
LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt
371371

372372
define DEF_LLVM_VARS
373373
# The configure script defines these variables with the target triples

branches/dist-snap/doc/guide-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl<T: Send> Drop for Unique<T> {
230230
// We need to move the object out of the box, so that
231231
// the destructor is called (at the end of this scope.)
232232
ptr::replace_ptr(self.ptr, x);
233-
free(self.ptr as *mut c_void)
233+
free(self.ptr as *c_void)
234234
}
235235
}
236236
}

branches/dist-snap/doc/tutorial.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,8 +3071,7 @@ The effect it has on your module hierarchy mirrors aspects of both `mod` and `us
30713071
The linkage information the binary needs to use the library `foo`.
30723072

30733073
- But like `use`, all `extern mod` statements that refer to the same library are interchangeable,
3074-
as each one really just presents an alias to an external module (the crate root of the library
3075-
you're linking against).
3074+
as each one really just presents an alias to an external module (the crate root of the library your linking against).
30763075

30773076
Remember how `use`-statements have to go before local declarations because the latter shadows the former?
30783077
Well, `extern mod` statements also have their own rules in that regard:

branches/dist-snap/man/rustc.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ To build an executable from a source file with a main function:
122122
To build a library from a source file:
123123
$ rustc --lib hello-lib.rs
124124

125-
To build either with a crate (.rs) file:
126-
$ rustc hello.rs
125+
To build either with a crate (.rc) file:
126+
$ rustc hello.rc
127127

128128
To build an executable with debug info (experimental):
129129
$ rustc -Z debug-info -o hello hello.rs

branches/dist-snap/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<language id="rust" _name="Rust" version="2.0" _section="Sources">
66
<metadata>
77
<property name="mimetypes">text/x-rust</property>
8-
<property name="globs">*.rs</property>
8+
<property name="globs">*.rs;*.rc</property>
99
<property name="line-comment-start">//</property>
1010
<property name="block-comment-start">/*</property>
1111
<property name="block-comment-end">*/</property>

branches/dist-snap/src/etc/gedit/share/mime/packages/rust.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<mime-type type="text/x-rust">
33
<comment>Rust Source</comment>
44
<glob pattern="*.rs"/>
5+
<glob pattern="*.rc"/>
56
</mime-type>
67
</mime-info>

branches/dist-snap/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.10-pre" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.10-pre" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
au BufRead,BufNewFile *.rs set filetype=rust
1+
au BufRead,BufNewFile *.rs,*.rc set filetype=rust

branches/dist-snap/src/libextra/c_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ mod tests {
172172
let mem = malloc_raw(n);
173173

174174
CVec::new_with_dtor(mem as *mut u8, n,
175-
proc() { libc::free(mem as *mut c_void); })
175+
proc() { libc::free(mem as *c_void); })
176176
}
177177
}
178178

branches/dist-snap/src/libextra/flate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn deflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
5353
assert!(res as int != 0);
5454
let out = vec::raw::from_buf_raw(res as *u8,
5555
outsz as uint);
56-
libc::free(res as *mut c_void);
56+
libc::free(res);
5757
out
5858
}
5959
}
@@ -76,7 +76,7 @@ fn inflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
7676
assert!(res as int != 0);
7777
let out = vec::raw::from_buf_raw(res as *u8,
7878
outsz as uint);
79-
libc::free(res as *mut c_void);
79+
libc::free(res);
8080
out
8181
}
8282
}

branches/dist-snap/src/libnative/bookkeeping.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ pub fn wait_for_other_tasks() {
4545
TASK_LOCK.wait();
4646
}
4747
TASK_LOCK.unlock();
48-
TASK_LOCK.destroy();
4948
}
5049
}

branches/dist-snap/src/libnative/io/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,13 +548,13 @@ pub fn readdir(p: &CString) -> IoResult<~[Path]> {
548548
let p = Path::new(p);
549549
let star = p.join("*");
550550
as_utf16_p(star.as_str().unwrap(), |path_ptr| {
551-
let wfd_ptr = malloc_raw(rust_list_dir_wfd_size() as uint);
551+
let wfd_ptr = malloc_raw(rust_list_dir_wfd_size() as uint) as *c_void;
552552
let find_handle = FindFirstFileW(path_ptr, wfd_ptr as HANDLE);
553553
if find_handle as libc::c_int != INVALID_HANDLE_VALUE {
554554
let mut paths = ~[];
555555
let mut more_files = 1 as libc::c_int;
556556
while more_files != 0 {
557-
let fp_buf = rust_list_dir_wfd_fp_buf(wfd_ptr as *c_void);
557+
let fp_buf = rust_list_dir_wfd_fp_buf(wfd_ptr);
558558
if fp_buf as uint == 0 {
559559
fail!("os::list_dir() failure: got null ptr from wfd");
560560
}
@@ -567,7 +567,7 @@ pub fn readdir(p: &CString) -> IoResult<~[Path]> {
567567
more_files = FindNextFileW(find_handle, wfd_ptr as HANDLE);
568568
}
569569
FindClose(find_handle);
570-
free(wfd_ptr as *mut c_void);
570+
free(wfd_ptr);
571571
Ok(paths)
572572
} else {
573573
Err(super::last_error())

branches/dist-snap/src/libnative/io/mod.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,6 @@ pub mod file;
4646
pub mod process;
4747
pub mod net;
4848

49-
#[cfg(target_os = "macos")]
50-
#[cfg(target_os = "freebsd")]
51-
#[path = "timer_other.rs"]
52-
pub mod timer;
53-
54-
#[cfg(target_os = "linux")]
55-
#[cfg(target_os = "android")]
56-
#[path = "timer_timerfd.rs"]
57-
pub mod timer;
58-
59-
#[cfg(target_os = "win32")]
60-
#[path = "timer_win32.rs"]
61-
pub mod timer;
62-
63-
mod timer_helper;
64-
6549
type IoResult<T> = Result<T, IoError>;
6650

6751
fn unimpl() -> IoError {
@@ -265,7 +249,7 @@ impl rtio::IoFactory for IoFactory {
265249

266250
// misc
267251
fn timer_init(&mut self) -> IoResult<~RtioTimer> {
268-
timer::Timer::new().map(|t| ~t as ~RtioTimer)
252+
Err(unimpl())
269253
}
270254
fn spawn(&mut self, config: ProcessConfig)
271255
-> IoResult<(~RtioProcess, ~[Option<~RtioPipe>])> {

branches/dist-snap/src/libnative/io/timer_helper.rs

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)