Skip to content

Commit 25f42d0

Browse files
committed
---
yaml --- r: 37321 b: refs/heads/try c: 7c79801 h: refs/heads/master i: 37319: eaa6344 v: v3
1 parent 8265ff1 commit 25f42d0

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: 082d3d51674203d97fd21e6cda6181b4dccfb2e1
5+
refs/heads/try: 7c7980196c35023631500ef1e44e4833f60a6c64
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/doc/tutorial-macros.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Introduction
44

5-
Functions are the primary tool that programmers can use to build abstractions.
6-
Sometimes, however, programmers want to perform abstractions over things that are not
7-
runtime values. Macros provide a syntactic abstraction. For an example of how this
8-
can be useful, consider the following two code fragments, which both pattern-match
9-
on their input and return early in one case, and do nothing otherwise:
5+
Functions are the primary tool that programmers can use to build
6+
abstractions. Sometimes, though, programmers want to abstract over
7+
compile-time, syntactic structures rather than runtime values. For example,
8+
the following two code fragments both pattern-match on their input and return
9+
early in one case, doing nothing otherwise:
1010

1111
~~~~
1212
# enum t { special_a(uint), special_b(uint) };

branches/try/src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fn malloc_raw_dyn(bcx: block, t: ty::t, heap: heap,
267267
fn non_gc_box_cast(bcx: block, val: ValueRef) -> ValueRef {
268268
debug!("non_gc_box_cast");
269269
add_comment(bcx, ~"non_gc_box_cast");
270-
assert(llvm::LLVMGetPointerAddressSpace(val_ty(val)) == gc_box_addrspace);
270+
assert(llvm::LLVMGetPointerAddressSpace(val_ty(val)) == gc_box_addrspace || bcx.unreachable);
271271
let non_gc_t = T_ptr(llvm::LLVMGetElementType(val_ty(val)));
272272
PointerCast(bcx, val, non_gc_t)
273273
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//error-pattern:One
2+
fn main() {
3+
fail ~"One";
4+
fail ~"Two";
5+
}

0 commit comments

Comments
 (0)