Skip to content

Commit f9cd09b

Browse files
committed
---
yaml --- r: 30294 b: refs/heads/incoming c: 959f76d h: refs/heads/master v: v3
1 parent 23573c0 commit f9cd09b

Some content is hidden

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

62 files changed

+523
-551
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 7550e459304b2209fbd9c9b61c113d6584ab5a2c
9+
refs/heads/incoming: 959f76ddeb795298b88ef42da0c69fa5198f4fe8
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,7 @@ let result = port.recv();
25932593
## Creating a task with a bi-directional communication path
25942594

25952595
A very common thing to do is to spawn a child task where the parent
2596-
and child both need to exchange messages with each other. There
2596+
and child both need to exchange messages with each other. The
25972597
function `std::comm::DuplexStream()` supports this pattern. We'll
25982598
look briefly at how it is used.
25992599

branches/incoming/src/libcore/at_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pure fn from_elem<T: copy>(n_elts: uint, t: T) -> @[T] {
133133
}
134134

135135
#[cfg(notest)]
136-
impl<T: copy> @[T]: Add<&[const T],@[T]> {
136+
impl<T: copy> @[T]: add<&[const T],@[T]> {
137137
#[inline(always)]
138138
pure fn add(rhs: &[const T]) -> @[T] {
139139
append(self, rhs)

branches/incoming/src/libcore/core.rc

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
// Don't link to core. We are core.
3232
#[no_core];
3333

34-
#[warn(vecs_implicitly_copyable)];
35-
// XXX: Switch to deny after snapshot
36-
#[warn(non_camel_case_types)];
34+
#[allow(vecs_implicitly_copyable)];
3735

3836
export int, i8, i16, i32, i64;
3937
export uint, u8, u16, u32, u64;
@@ -49,7 +47,6 @@ export extfmt;
4947
export rt;
5048
export tuple;
5149
export to_str, to_bytes;
52-
export from_str;
5350
export util;
5451
export dvec, dvec_iter;
5552
export dlist, dlist_iter;
@@ -74,6 +71,7 @@ export priv;
7471
// Built-in-type support modules
7572

7673
/// Operations and constants for `int`
74+
#[warn(non_camel_case_types)]
7775
#[path = "int-template"]
7876
mod int {
7977
import inst::{ hash, pow };
@@ -83,34 +81,39 @@ mod int {
8381
}
8482

8583
/// Operations and constants for `i8`
84+
#[warn(non_camel_case_types)]
8685
#[path = "int-template"]
8786
mod i8 {
8887
#[path = "i8.rs"]
8988
mod inst;
9089
}
9190

9291
/// Operations and constants for `i16`
92+
#[warn(non_camel_case_types)]
9393
#[path = "int-template"]
9494
mod i16 {
9595
#[path = "i16.rs"]
9696
mod inst;
9797
}
9898

9999
/// Operations and constants for `i32`
100+
#[warn(non_camel_case_types)]
100101
#[path = "int-template"]
101102
mod i32 {
102103
#[path = "i32.rs"]
103104
mod inst;
104105
}
105106

106107
/// Operations and constants for `i64`
108+
#[warn(non_camel_case_types)]
107109
#[path = "int-template"]
108110
mod i64 {
109111
#[path = "i64.rs"]
110112
mod inst;
111113
}
112114

113115
/// Operations and constants for `uint`
116+
#[warn(non_camel_case_types)]
114117
#[path = "uint-template"]
115118
mod uint {
116119
import inst::{
@@ -125,6 +128,7 @@ mod uint {
125128
}
126129

127130
/// Operations and constants for `u8`
131+
#[warn(non_camel_case_types)]
128132
#[path = "uint-template"]
129133
mod u8 {
130134
import inst::is_ascii;
@@ -135,50 +139,72 @@ mod u8 {
135139
}
136140

137141
/// Operations and constants for `u16`
142+
#[warn(non_camel_case_types)]
138143
#[path = "uint-template"]
139144
mod u16 {
140145
#[path = "u16.rs"]
141146
mod inst;
142147
}
143148

144149
/// Operations and constants for `u32`
150+
#[warn(non_camel_case_types)]
145151
#[path = "uint-template"]
146152
mod u32 {
147153
#[path = "u32.rs"]
148154
mod inst;
149155
}
150156

151157
/// Operations and constants for `u64`
158+
#[warn(non_camel_case_types)]
152159
#[path = "uint-template"]
153160
mod u64 {
154161
#[path = "u64.rs"]
155162
mod inst;
156163
}
157164

158165

166+
#[warn(non_camel_case_types)]
159167
mod box;
168+
#[warn(non_camel_case_types)]
160169
mod char;
170+
#[warn(non_camel_case_types)]
161171
mod float;
172+
#[warn(non_camel_case_types)]
162173
mod f32;
174+
#[warn(non_camel_case_types)]
163175
mod f64;
176+
#[warn(non_camel_case_types)]
164177
mod str;
178+
#[warn(non_camel_case_types)]
165179
mod ptr;
180+
#[warn(non_camel_case_types)]
166181
mod vec;
182+
#[warn(non_camel_case_types)]
167183
mod at_vec;
184+
#[warn(non_camel_case_types)]
168185
mod bool;
186+
#[warn(non_camel_case_types)]
169187
mod tuple;
188+
#[warn(non_camel_case_types)]
170189
mod unit;
190+
#[warn(non_camel_case_types)]
171191
mod uniq;
172192

173193
// Ubiquitous-utility-type modules
174194

175195
#[cfg(notest)]
176196
mod ops;
197+
#[warn(non_camel_case_types)]
177198
mod cmp;
199+
#[warn(non_camel_case_types)]
178200
mod num;
201+
#[warn(non_camel_case_types)]
179202
mod hash;
203+
#[warn(non_camel_case_types)]
180204
mod either;
205+
#[warn(non_camel_case_types)]
181206
mod iter;
207+
#[warn(non_camel_case_types)]
182208
mod logging;
183209
mod option;
184210
#[path="iter-trait"]
@@ -187,42 +213,60 @@ mod option_iter {
187213
mod inst;
188214
}
189215
mod result;
216+
#[warn(non_camel_case_types)]
190217
mod to_str;
218+
#[warn(non_camel_case_types)]
191219
mod to_bytes;
192-
mod from_str;
220+
#[warn(non_camel_case_types)]
193221
mod util;
194222

195223
// Data structure modules
196224

225+
#[warn(non_camel_case_types)]
197226
mod dvec;
198227
#[path="iter-trait"]
228+
#[warn(non_camel_case_types)]
199229
mod dvec_iter {
200230
#[path = "dvec.rs"]
201231
mod inst;
202232
}
233+
#[warn(non_camel_case_types)]
203234
mod dlist;
204235
#[path="iter-trait"]
236+
#[warn(non_camel_case_types)]
205237
mod dlist_iter {
206238
#[path ="dlist.rs"]
207239
mod inst;
208240
}
241+
#[warn(non_camel_case_types)]
209242
mod send_map;
210243

211244
// Concurrency
245+
#[warn(non_camel_case_types)]
212246
mod comm;
247+
#[warn(non_camel_case_types)]
213248
mod task;
249+
//#[warn(non_camel_ase_types)] pipec code continues to trip this warning
214250
mod future;
251+
#[warn(non_camel_case_types)]
215252
mod pipes;
216253

217254
// Runtime and language-primitive support
218255

256+
#[warn(non_camel_case_types)]
219257
mod io;
220258
mod libc;
259+
#[warn(non_camel_case_types)]
221260
mod os;
261+
#[warn(non_camel_case_types)]
222262
mod path;
263+
#[warn(non_camel_case_types)]
223264
mod rand;
265+
#[warn(non_camel_case_types)]
224266
mod run;
267+
#[warn(non_camel_case_types)]
225268
mod sys;
269+
#[warn(non_camel_case_types)]
226270
mod unsafe;
227271

228272
mod managed;
@@ -240,9 +284,13 @@ mod rt;
240284

241285
// For internal use, not exported
242286

287+
#[warn(non_camel_case_types)]
243288
mod unicode;
289+
#[warn(non_camel_case_types)]
244290
mod priv;
291+
#[warn(non_camel_case_types)]
245292
mod cmath;
293+
#[warn(non_camel_case_types)]
246294
mod stackwalk;
247295

248296
// Local Variables:

branches/incoming/src/libcore/core.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,28 @@ export ToStr;
4444
// The compiler has special knowlege of these so we must not duplicate them
4545
// when compiling for testing
4646
#[cfg(notest)]
47-
import ops::{Const, Copy, Send, Owned};
47+
import ops::{const, copy, send, owned};
4848
#[cfg(notest)]
49-
import ops::{Add, Sub, Mul, Div, Modulo, Neg, BitAnd, BitOr, BitXor};
49+
import ops::{add, sub, mul, div, modulo, neg, bitand, bitor, bitxor};
5050
#[cfg(notest)]
51-
import ops::{Shl, Shr, Index};
51+
import ops::{shl, shr, index};
5252

5353
#[cfg(notest)]
54-
export Const, Copy, Send, Owned;
54+
export const, copy, send, owned;
5555
#[cfg(notest)]
56-
export Add, Sub, Mul, Div, Modulo, Neg, BitAnd, BitOr, BitXor;
56+
export add, sub, mul, div, modulo, neg, bitand, bitor, bitxor;
5757
#[cfg(notest)]
58-
export Shl, Shr, Index;
58+
export shl, shr, index;
5959

6060
#[cfg(test)]
6161
use coreops(name = "core", vers = "0.4");
6262

6363
#[cfg(test)]
64-
import coreops::ops::{Const, Copy, Send, Owned};
64+
import coreops::ops::{const, copy, send, owned};
6565
#[cfg(test)]
66-
import coreops::ops::{Add, Sub, Mul, Div, Modulo, Neg, BitAnd, BitOr, BitXor};
66+
import coreops::ops::{add, sub, mul, div, modulo, neg, bitand, bitor, bitxor};
6767
#[cfg(test)]
68-
import coreops::ops::{Shl, Shr, Index};
68+
import coreops::ops::{shl, shr, index};
6969

7070

7171
// Export the log levels as global constants. Higher levels mean

branches/incoming/src/libcore/dvec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl<A: copy> DVec<A> {
327327
}
328328
}
329329

330-
impl<A:copy> DVec<A>: Index<uint,A> {
330+
impl<A:copy> DVec<A>: index<uint,A> {
331331
pure fn index(&&idx: uint) -> A {
332332
self.get_elt(idx)
333333
}

branches/incoming/src/libcore/extfmt.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#[doc(hidden)];
2-
#[allow(non_camel_case_types)];
32

43
/*
54
Syntax Extension: fmt
@@ -87,7 +86,7 @@ mod ct {
8786
let mut pieces: ~[piece] = ~[];
8887
let lim = str::len(s);
8988
let mut buf = ~"";
90-
fn flush_buf(+buf: ~str, &pieces: ~[piece]) -> ~str {
89+
fn flush_buf(buf: ~str, &pieces: ~[piece]) -> ~str {
9190
if str::len(buf) > 0u {
9291
let piece = piece_string(buf);
9392
vec::push(pieces, piece);
@@ -110,7 +109,7 @@ mod ct {
110109
} else {
111110
buf = flush_buf(buf, pieces);
112111
let rs = parse_conversion(s, i, lim, error);
113-
vec::push(pieces, copy rs.piece);
112+
vec::push(pieces, rs.piece);
114113
i = rs.next;
115114
}
116115
} else { buf += curr; i += size; }
@@ -149,7 +148,7 @@ mod ct {
149148
let ty = parse_type(s, prec.next, lim, error);
150149
return {piece:
151150
piece_conv({param: parm.param,
152-
flags: copy flags.flags,
151+
flags: flags.flags,
153152
width: width.count,
154153
precision: prec.count,
155154
ty: ty.ty}),
@@ -178,12 +177,12 @@ mod ct {
178177
fn more_(f: flag, s: ~str, i: uint, lim: uint) ->
179178
{flags: ~[flag], next: uint} {
180179
let next = parse_flags(s, i + 1u, lim);
181-
let rest = copy next.flags;
180+
let rest = next.flags;
182181
let j = next.next;
183182
let curr: ~[flag] = ~[f];
184183
return {flags: vec::append(curr, rest), next: j};
185184
}
186-
let more = |x, copy s| more_(x, copy s, i, lim);
185+
let more = |x| more_(x, s, i, lim);
187186
let f = s[i];
188187
return if f == '-' as u8 {
189188
more(flag_left_justify)
@@ -405,14 +404,14 @@ mod rt {
405404

406405
fn pad(cv: conv, &s: ~str, mode: pad_mode) -> ~str {
407406
let uwidth : uint = match cv.width {
408-
count_implied => return copy s,
407+
count_implied => return s,
409408
count_is(width) => {
410409
// FIXME: width should probably be uint (see Issue #1996)
411410
width as uint
412411
}
413412
};
414413
let strlen = str::char_len(s);
415-
if uwidth <= strlen { return copy s; }
414+
if uwidth <= strlen { return s; }
416415
let mut padchar = ' ';
417416
let diff = uwidth - strlen;
418417
if have_flag(cv.flags, flag_left_justify) {

branches/incoming/src/libcore/flate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ fn inflate_buf(buf: &[const u8]) -> ~[u8] {
5555
}
5656

5757
#[test]
58-
#[allow(non_implicitly_copyable_typarams)]
5958
fn test_flate_round_trip() {
6059
let r = rand::Rng();
6160
let mut words = ~[];

branches/incoming/src/libcore/from_str.rs

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

0 commit comments

Comments
 (0)