Skip to content

Commit 94ecd45

Browse files
committed
---
yaml --- r: 69479 b: refs/heads/auto c: d75ab4a h: refs/heads/master i: 69477: 4052f05 69475: 07139c0 69471: 5a06ad0 v: v3
1 parent 0696747 commit 94ecd45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+841
-851
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: ef870d37a58df136b18f1440f45d4f0102c55c1a
17+
refs/heads/auto: d75ab4a5d798164c37e04a0794f2e28acdb76dd4
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libextra/arena.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ unsafe fn destroy_chunk(chunk: &Chunk) {
116116
let fill = chunk.fill;
117117

118118
while idx < fill {
119-
let tydesc_data: *uint = transmute(ptr::offset(buf, idx as int));
119+
let tydesc_data: *uint = transmute(ptr::offset(buf, idx));
120120
let (tydesc, is_done) = un_bitpack_tydesc_ptr(*tydesc_data);
121121
let (size, align) = ((*tydesc).size, (*tydesc).align);
122122

@@ -127,7 +127,7 @@ unsafe fn destroy_chunk(chunk: &Chunk) {
127127
//debug!("freeing object: idx = %u, size = %u, align = %u, done = %b",
128128
// start, size, align, is_done);
129129
if is_done {
130-
((*tydesc).drop_glue)(ptr::offset(buf, start as int) as *i8);
130+
((*tydesc).drop_glue)(ptr::offset(buf, start) as *i8);
131131
}
132132

133133
// Find where the next tydesc lives
@@ -176,7 +176,7 @@ impl Arena {
176176
//debug!("idx = %u, size = %u, align = %u, fill = %u",
177177
// start, n_bytes, align, head.fill);
178178

179-
ptr::offset(vec::raw::to_ptr(this.pod_head.data), start as int)
179+
ptr::offset(vec::raw::to_ptr(this.pod_head.data), start)
180180
}
181181
}
182182

@@ -233,7 +233,7 @@ impl Arena {
233233
// start, n_bytes, align, head.fill);
234234

235235
let buf = vec::raw::to_ptr(self.head.data);
236-
return (ptr::offset(buf, tydesc_start as int), ptr::offset(buf, start as int));
236+
return (ptr::offset(buf, tydesc_start), ptr::offset(buf, start));
237237
}
238238
}
239239

branches/auto/src/libextra/c_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub unsafe fn c_vec_with_dtor<T>(base: *mut T, len: uint, dtor: @fn())
122122
pub fn get<T:Clone>(t: CVec<T>, ofs: uint) -> T {
123123
assert!(ofs < len(t));
124124
return unsafe {
125-
(*ptr::mut_offset(t.base, ofs as int)).clone()
125+
(*ptr::mut_offset(t.base, ofs)).clone()
126126
};
127127
}
128128

@@ -133,7 +133,7 @@ pub fn get<T:Clone>(t: CVec<T>, ofs: uint) -> T {
133133
*/
134134
pub fn set<T>(t: CVec<T>, ofs: uint, v: T) {
135135
assert!(ofs < len(t));
136-
unsafe { *ptr::mut_offset(t.base, ofs as int) = v };
136+
unsafe { *ptr::mut_offset(t.base, ofs) = v };
137137
}
138138

139139
/*

branches/auto/src/libextra/ebml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub mod reader {
150150

151151
unsafe {
152152
let (ptr, _): (*u8, uint) = transmute(data);
153-
let ptr = offset(ptr, start as int);
153+
let ptr = offset(ptr, start);
154154
let ptr: *i32 = transmute(ptr);
155155
let val = bswap32(*ptr);
156156
let val: u32 = transmute(val);

branches/auto/src/libextra/par.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn map_slices<A:Clone + Send,B:Clone + Send>(
5858
let f = do future_spawn() || {
5959
unsafe {
6060
let len = end - base;
61-
let slice = (ptr::offset(p, base as int),
61+
let slice = (ptr::offset(p, base),
6262
len * sys::size_of::<A>());
6363
info!("pre-slice: %?", (base, slice));
6464
let slice : &[A] =

branches/auto/src/librustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub struct CrateAnalysis {
201201
exp_map2: middle::resolve::ExportMap2,
202202
ty_cx: ty::ctxt,
203203
maps: astencode::Maps,
204-
reachable: @mut HashSet<ast::node_id>
204+
reachable: @mut HashSet<ast::NodeId>
205205
}
206206

207207
/// Run the resolution, typechecking, region checking and other

branches/auto/src/librustc/driver/session.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use metadata::filesearch;
1818
use metadata;
1919
use middle::lint;
2020

21-
use syntax::ast::node_id;
21+
use syntax::ast::NodeId;
2222
use syntax::ast::{int_ty, uint_ty, float_ty};
2323
use syntax::codemap::span;
2424
use syntax::diagnostic;
@@ -189,13 +189,13 @@ pub struct Session_ {
189189
parse_sess: @mut ParseSess,
190190
codemap: @codemap::CodeMap,
191191
// For a library crate, this is always none
192-
entry_fn: @mut Option<(node_id, codemap::span)>,
192+
entry_fn: @mut Option<(NodeId, codemap::span)>,
193193
entry_type: @mut Option<EntryFnType>,
194194
span_diagnostic: @diagnostic::span_handler,
195195
filesearch: @filesearch::FileSearch,
196196
building_library: @mut bool,
197197
working_dir: Path,
198-
lints: @mut HashMap<ast::node_id, ~[(lint::lint, codemap::span, ~str)]>,
198+
lints: @mut HashMap<ast::NodeId, ~[(lint::lint, codemap::span, ~str)]>,
199199
}
200200

201201
pub type Session = @Session_;
@@ -248,7 +248,7 @@ impl Session_ {
248248
}
249249
pub fn add_lint(@self,
250250
lint: lint::lint,
251-
id: ast::node_id,
251+
id: ast::NodeId,
252252
sp: span,
253253
msg: ~str) {
254254
match self.lints.find_mut(&id) {
@@ -257,7 +257,7 @@ impl Session_ {
257257
}
258258
self.lints.insert(id, ~[(lint, sp, msg)]);
259259
}
260-
pub fn next_node_id(@self) -> ast::node_id {
260+
pub fn next_node_id(@self) -> ast::NodeId {
261261
return syntax::parse::next_node_id(self.parse_sess);
262262
}
263263
pub fn diagnostic(@self) -> @diagnostic::span_handler {

branches/auto/src/librustc/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use syntax::print::pprust;
2525
use syntax::{ast, ast_util};
2626
use syntax::attr::AttrMetaMethods;
2727

28-
type node_id_gen = @fn() -> ast::node_id;
28+
type node_id_gen = @fn() -> ast::NodeId;
2929

3030
struct Test {
3131
span: span,

branches/auto/src/librustc/metadata/csearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn get_type_param_count(cstore: @mut cstore::CStore, def: ast::def_id)
4444
/// Iterates over all the language items in the given crate.
4545
pub fn each_lang_item(cstore: @mut cstore::CStore,
4646
cnum: ast::CrateNum,
47-
f: &fn(ast::node_id, uint) -> bool) -> bool {
47+
f: &fn(ast::NodeId, uint) -> bool) -> bool {
4848
let crate_data = cstore::get_crate_data(cstore, cnum);
4949
decoder::each_lang_item(crate_data, f)
5050
}

branches/auto/src/librustc/metadata/cstore.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ pub struct CStore {
4343
intr: @ident_interner
4444
}
4545

46-
// Map from node_id's of local extern mod statements to crate numbers
47-
type extern_mod_crate_map = HashMap<ast::node_id, ast::CrateNum>;
46+
// Map from NodeId's of local extern mod statements to crate numbers
47+
type extern_mod_crate_map = HashMap<ast::NodeId, ast::CrateNum>;
4848

4949
pub fn mk_cstore(intr: @ident_interner) -> CStore {
5050
return CStore {
@@ -125,13 +125,13 @@ pub fn get_used_link_args<'a>(cstore: &'a CStore) -> &'a [@str] {
125125
}
126126

127127
pub fn add_extern_mod_stmt_cnum(cstore: &mut CStore,
128-
emod_id: ast::node_id,
128+
emod_id: ast::NodeId,
129129
cnum: ast::CrateNum) {
130130
cstore.extern_mod_crate_map.insert(emod_id, cnum);
131131
}
132132

133133
pub fn find_extern_mod_stmt_cnum(cstore: &CStore,
134-
emod_id: ast::node_id)
134+
emod_id: ast::NodeId)
135135
-> Option<ast::CrateNum> {
136136
cstore.extern_mod_crate_map.find(&emod_id).map_consume(|x| *x)
137137
}

0 commit comments

Comments
 (0)