Skip to content

Commit 71a1c04

Browse files
committed
---
yaml --- r: 77256 b: refs/heads/snap-stage3 c: df84925 h: refs/heads/master v: v3
1 parent eb07de1 commit 71a1c04

File tree

135 files changed

+1048
-1223
lines changed

Some content is hidden

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

135 files changed

+1048
-1223
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: f1132496dddbdd88f321a7919eec3d65136b3f75
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 604ab9477a800ee36ff59433a187cb471a5c7f79
4+
refs/heads/snap-stage3: df84925b45ca32c40430a114449066aebc58508d
55
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
282282
}
283283
284284
// write debugger script
285-
let script_str = [~"set charset UTF-8",
286-
cmds,
287-
~"quit\n"].connect("\n");
285+
let script_str = cmds.append("\nquit\n");
288286
debug!("script_str = %s", script_str);
289287
dump_output_file(config, testfile, script_str, "debugger.script");
290288

branches/snap-stage3/src/etc/emacs/rust-mode.el

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -225,27 +225,4 @@ The initializer is `DEFAULT-TAB-WIDTH'.")
225225

226226
(provide 'rust-mode)
227227

228-
;; Issue #6887: Rather than inheriting the 'gnu compilation error
229-
;; regexp (which is broken on a few edge cases), add our own 'rust
230-
;; compilation error regexp and use it instead.
231-
(defvar rustc-compilation-regexps
232-
(let ((file "^\\([^\n]+\\)")
233-
(start-line "\\([0-9]+\\)")
234-
(start-col "\\([0-9]+\\)")
235-
(end-line "\\([0-9]+\\)")
236-
(end-col "\\([0-9]+\\)")
237-
(error-or-warning "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\)"))
238-
(let ((re (concat "^" file ":" start-line ":" start-col
239-
": " end-line ":" end-col
240-
" \\(?:[Ee]rror\\|\\([Ww]arning\\)\\):")))
241-
(cons re '(1 (2 . 4) (3 . 5) (6)))))
242-
"Specifications for matching errors in rustc invocations.
243-
See `compilation-error-regexp-alist for help on their format.")
244-
245-
(eval-after-load 'compile
246-
'(progn
247-
(add-to-list 'compilation-error-regexp-alist-alist
248-
(cons 'rustc rustc-compilation-regexps))
249-
(add-to-list 'compilation-error-regexp-alist 'rustc)))
250-
251228
;;; rust-mode.el ends here

branches/snap-stage3/src/etc/generate-keyword-tests.py

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

branches/snap-stage3/src/libextra/sync.rs

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ impl<Q:Send> Sem<Q> {
135135
do task::unkillable {
136136
do (|| {
137137
self.acquire();
138-
unsafe {
139-
do task::rekillable { blk() }
140-
}
138+
do task::rekillable { blk() }
141139
}).finally {
142140
self.release();
143141
}
@@ -234,10 +232,8 @@ impl<'self> Condvar<'self> {
234232
// signaller already sent -- I mean 'unconditionally' in contrast
235233
// with acquire().)
236234
do (|| {
237-
unsafe {
238-
do task::rekillable {
239-
let _ = WaitEnd.take_unwrap().recv();
240-
}
235+
do task::rekillable {
236+
let _ = WaitEnd.take_unwrap().recv();
241237
}
242238
}).finally {
243239
// Reacquire the condvar. Note this is back in the unkillable
@@ -516,14 +512,12 @@ impl RWLock {
516512
* 'write' from other tasks will run concurrently with this one.
517513
*/
518514
pub fn write<U>(&self, blk: &fn() -> U) -> U {
519-
unsafe {
520-
do task::unkillable {
521-
(&self.order_lock).acquire();
522-
do (&self.access_lock).access {
523-
(&self.order_lock).release();
524-
do task::rekillable {
525-
blk()
526-
}
515+
do task::unkillable {
516+
(&self.order_lock).acquire();
517+
do (&self.access_lock).access {
518+
(&self.order_lock).release();
519+
do task::rekillable {
520+
blk()
527521
}
528522
}
529523
}
@@ -562,16 +556,14 @@ impl RWLock {
562556
// which can't happen until T2 finishes the downgrade-read entirely.
563557
// The astute reader will also note that making waking writers use the
564558
// order_lock is better for not starving readers.
565-
unsafe {
566-
do task::unkillable {
567-
(&self.order_lock).acquire();
568-
do (&self.access_lock).access_cond |cond| {
569-
(&self.order_lock).release();
570-
do task::rekillable {
571-
let opt_lock = Just(&self.order_lock);
572-
blk(&Condvar { sem: cond.sem, order: opt_lock,
573-
token: NonCopyable::new() })
574-
}
559+
do task::unkillable {
560+
(&self.order_lock).acquire();
561+
do (&self.access_lock).access_cond |cond| {
562+
(&self.order_lock).release();
563+
do task::rekillable {
564+
let opt_lock = Just(&self.order_lock);
565+
blk(&Condvar { sem: cond.sem, order: opt_lock,
566+
token: NonCopyable::new() })
575567
}
576568
}
577569
}
@@ -606,10 +598,8 @@ impl RWLock {
606598
(&self.access_lock).acquire();
607599
(&self.order_lock).release();
608600
do (|| {
609-
unsafe {
610-
do task::rekillable {
611-
blk(RWLockWriteMode { lock: self, token: NonCopyable::new() })
612-
}
601+
do task::rekillable {
602+
blk(RWLockWriteMode { lock: self, token: NonCopyable::new() })
613603
}
614604
}).finally {
615605
let writer_or_last_reader;

0 commit comments

Comments
 (0)