Skip to content

Commit cd0edc5

Browse files
committed
---
yaml --- r: 34847 b: refs/heads/master c: 7c79801 h: refs/heads/master i: 34845: 9d5e05d 34843: c776439 34839: dedc21c 34831: 1b5427a 34815: e3ac160 v: v3
1 parent 1c753ca commit cd0edc5

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 082d3d51674203d97fd21e6cda6181b4dccfb2e1
2+
refs/heads/master: 7c7980196c35023631500ef1e44e4833f60a6c64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/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) };

trunk/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
}

trunk/src/test/run-fail/doublefail.rs

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)