Skip to content

Commit 7a928e3

Browse files
committed
---
yaml --- r: 60323 b: refs/heads/master c: 03f75b6 h: refs/heads/master i: 60321: c2b4796 60319: 71a2d74 v: v3
1 parent 259ff12 commit 7a928e3

File tree

4 files changed

+91
-128
lines changed

4 files changed

+91
-128
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: c30414f980eb3e8010640f6c83a5ef6f8e6ab047
2+
refs/heads/master: 03f75b629a5d1d8e0a5916abdef4499f0c7c61d6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589

trunk/src/librustc/middle/resolve.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,12 @@ pub impl Resolver {
25932593
let start_index;
25942594
match module_prefix_result {
25952595
Failed => {
2596-
self.session.span_err(span, ~"unresolved name");
2596+
let mpath = self.idents_to_str(module_path);
2597+
let idx = str::rfind(self.idents_to_str(module_path), |c| { c == ':' }).unwrap();
2598+
self.session.span_err(span, fmt!("unresolved import: could not find `%s` in `%s`",
2599+
str::substr(mpath, idx, mpath.len() - idx),
2600+
// idx - 1 to account for the extra semicolon
2601+
str::substr(mpath, 0, idx - 1)));
25972602
return Failed;
25982603
}
25992604
Indeterminate => {

trunk/src/libstd/num/bigint.rs

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A BigInt is a combination of BigUint and Sign.
1717
*/
1818

1919
use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
20-
use core::num::{IntConvertible, Zero, One, ToStrRadix, FromStrRadix, Orderable};
20+
use core::num::{IntConvertible, Zero, One, ToStrRadix, FromStrRadix};
2121

2222
/**
2323
A BigDigit is a BigUint's composing element.
@@ -144,26 +144,6 @@ impl FromStr for BigUint {
144144
}
145145
}
146146

147-
impl Num for BigUint {}
148-
149-
impl Orderable for BigUint {
150-
#[inline(always)]
151-
fn min(&self, other: &BigUint) -> BigUint {
152-
if self < other { self.clone() } else { other.clone() }
153-
}
154-
155-
#[inline(always)]
156-
fn max(&self, other: &BigUint) -> BigUint {
157-
if self > other { self.clone() } else { other.clone() }
158-
}
159-
160-
#[inline(always)]
161-
fn clamp(&self, mn: &BigUint, mx: &BigUint) -> BigUint {
162-
if self > mx { mx.clone() } else
163-
if self < mn { mn.clone() } else { self.clone() }
164-
}
165-
}
166-
167147
impl Shl<uint, BigUint> for BigUint {
168148
#[inline(always)]
169149
fn shl(&self, rhs: &uint) -> BigUint {
@@ -808,26 +788,6 @@ impl FromStr for BigInt {
808788
}
809789
}
810790

811-
impl Num for BigInt {}
812-
813-
impl Orderable for BigInt {
814-
#[inline(always)]
815-
fn min(&self, other: &BigInt) -> BigInt {
816-
if self < other { self.clone() } else { other.clone() }
817-
}
818-
819-
#[inline(always)]
820-
fn max(&self, other: &BigInt) -> BigInt {
821-
if self > other { self.clone() } else { other.clone() }
822-
}
823-
824-
#[inline(always)]
825-
fn clamp(&self, mn: &BigInt, mx: &BigInt) -> BigInt {
826-
if self > mx { mx.clone() } else
827-
if self < mn { mn.clone() } else { self.clone() }
828-
}
829-
}
830-
831791
impl Shl<uint, BigInt> for BigInt {
832792
#[inline(always)]
833793
fn shl(&self, rhs: &uint) -> BigInt {

0 commit comments

Comments
 (0)