Skip to content

Commit cd37fe8

Browse files
committed
---
yaml --- r: 91999 b: refs/heads/auto c: 0d8ace8 h: refs/heads/master i: 91997: 0f8b906 91995: 31335a5 91991: b469238 91983: 5cd07b8 91967: e49d587 v: v3
1 parent d6b83d9 commit cd37fe8

File tree

6 files changed

+15
-21
lines changed

6 files changed

+15
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 90f9eb3b1ef30ea07ae16f9445a8ab0d97269917
16+
refs/heads/auto: 0d8ace823b33489284cc60aaab3945d764ab3394
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/trans/foreign.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,31 @@
1010

1111

1212
use back::{link};
13-
use std::libc::c_uint;
14-
use lib::llvm::{ValueRef, CallConv, StructRetAttribute};
1513
use lib::llvm::llvm;
14+
use lib::llvm::{ValueRef, CallConv, StructRetAttribute};
1615
use lib;
17-
use middle::trans::machine;
18-
use middle::trans::base;
1916
use middle::trans::base::push_ctxt;
20-
use middle::trans::cabi;
17+
use middle::trans::base;
2118
use middle::trans::build::*;
2219
use middle::trans::builder::noname;
20+
use middle::trans::cabi;
2321
use middle::trans::common::*;
22+
use middle::trans::machine;
23+
use middle::trans::type_::Type;
2424
use middle::trans::type_of::*;
2525
use middle::trans::type_of;
26-
use middle::ty;
2726
use middle::ty::FnSig;
28-
29-
use std::uint;
27+
use middle::ty;
28+
use std::cmp;
29+
use std::libc::c_uint;
3030
use std::vec;
31+
use syntax::abi::{Cdecl, Aapcs, C, AbiSet, Win64};
32+
use syntax::abi::{RustIntrinsic, Rust, Stdcall, Fastcall, System};
3133
use syntax::codemap::Span;
34+
use syntax::parse::token::special_idents;
3235
use syntax::{ast};
3336
use syntax::{attr, ast_map};
34-
use syntax::parse::token::special_idents;
35-
use syntax::abi::{RustIntrinsic, Rust, Stdcall, Fastcall, System,
36-
Cdecl, Aapcs, C, AbiSet, Win64};
3737
use util::ppaux::{Repr, UserString};
38-
use middle::trans::type_::Type;
3938

4039
///////////////////////////////////////////////////////////////////////////
4140
// Type definitions
@@ -332,7 +331,7 @@ pub fn trans_native_call(bcx: @mut Block,
332331
let llrust_size = machine::llsize_of_store(ccx, llrust_ret_ty);
333332
let llforeign_align = machine::llalign_of_min(ccx, llforeign_ret_ty);
334333
let llrust_align = machine::llalign_of_min(ccx, llrust_ret_ty);
335-
let llalign = uint::min(llforeign_align, llrust_align);
334+
let llalign = cmp::min(llforeign_align, llrust_align);
336335
debug!("llrust_size={:?}", llrust_size);
337336
base::call_memcpy(bcx, llretptr_i8, llscratch_i8,
338337
C_uint(ccx, llrust_size), llalign as u32);

branches/auto/src/libstd/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ impl<'self> Formatter<'self> {
901901
// case where the maximum length will matter.
902902
let char_len = s.char_len();
903903
if char_len >= max {
904-
let nchars = ::uint::min(max, char_len);
904+
let nchars = ::cmp::min(max, char_len);
905905
self.buf.write(s.slice_chars(0, nchars).as_bytes());
906906
return
907907
}

branches/auto/src/libstd/num/int_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ use num::{CheckedDiv, Zero, One, strconv};
2525
use prelude::*;
2626
use str;
2727

28-
pub use cmp::{min, max};
29-
3028
pub static bits : uint = $bits;
3129
pub static bytes : uint = ($bits / 8);
3230

branches/auto/src/libstd/num/uint_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use num::{CheckedDiv, Zero, One, strconv};
2626
use prelude::*;
2727
use str;
2828

29-
pub use cmp::{min, max};
30-
3129
pub static bits : uint = $bits;
3230
pub static bytes : uint = ($bits / 8);
3331

branches/auto/src/libstd/rt/logging.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use io::stdio::StdWriter;
1717
use io::buffered::LineBufferedWriter;
1818
use rt::crate_map::{ModEntry, CrateMap, iter_crate_map, get_crate_map};
1919
use str::StrSlice;
20-
use u32;
2120
use vec::ImmutableVector;
2221
#[cfg(test)] use cast::transmute;
2322

@@ -46,7 +45,7 @@ fn parse_log_level(level: &str) -> Option<u32> {
4645
let position = log_level_names.iter().position(|&name| name == level);
4746
match position {
4847
Some(position) => {
49-
log_level = Some(u32::min(MAX_LOG_LEVEL, (position + 1) as u32))
48+
log_level = Some(::cmp::min(MAX_LOG_LEVEL, (position + 1) as u32))
5049
},
5150
_ => {
5251
log_level = None;

0 commit comments

Comments
 (0)