Skip to content

Commit 2b5e242

Browse files
committed
---
yaml --- r: 80783 b: refs/heads/try c: 561f1b0 h: refs/heads/master i: 80781: c7bbf31 80779: 8504649 80775: b53419d 80767: 3493960 v: v3
1 parent 7387c7f commit 2b5e242

File tree

4 files changed

+4
-35
lines changed

4 files changed

+4
-35
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: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5-
refs/heads/try: 524c190565c0dbafdb7f27bc3c27c0952f32c2f9
5+
refs/heads/try: 561f1b006321501dfe5a059444fc8f560010c2ba
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libstd/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ pub fn count<A>(start: A, step: A) -> Counter<A> {
17191719
Counter{state: start, step: step}
17201720
}
17211721

1722-
/// A range of numbers from [0, N)
1722+
/// An iterator over the range [start, stop)
17231723
#[deriving(Clone, DeepClone)]
17241724
pub struct Range<A> {
17251725
priv state: A,
@@ -1765,7 +1765,7 @@ impl<A: Sub<A, A> + Integer + Ord + Clone> DoubleEndedIterator<A> for Range<A> {
17651765
}
17661766
}
17671767

1768-
/// A range of numbers from [0, N]
1768+
/// An iterator over the range [start, stop]
17691769
#[deriving(Clone, DeepClone)]
17701770
pub struct RangeInclusive<A> {
17711771
priv range: Range<A>,

branches/try/src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,8 @@ pub fn expand_expr(extsbox: @mut SyntaxEnv,
7676
// mark before:
7777
let marked_before = mark_tts(*tts,fm);
7878
let marked_ctxt = new_mark(fm, ctxt);
79-
80-
// The span that we pass to the expanders we want to
81-
// be the root of the call stack. That's the most
82-
// relevant span and it's the actual invocation of
83-
// the macro.
84-
let mut relevant_info = cx.backtrace();
85-
let mut einfo = relevant_info.unwrap();
86-
loop {
87-
match relevant_info {
88-
None => { break }
89-
Some(e) => {
90-
einfo = e;
91-
relevant_info = einfo.call_site.expn_info;
92-
}
93-
}
94-
}
95-
9679
let expanded =
97-
match expandfun(cx, einfo.call_site,
98-
marked_before, marked_ctxt) {
80+
match expandfun(cx, mac.span, marked_before, marked_ctxt) {
9981
MRExpr(e) => e,
10082
MRAny(expr_maker,_,_) => expr_maker(),
10183
_ => {

branches/try/src/test/compile-fail/debug-correct-span.rs

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

0 commit comments

Comments
 (0)