Skip to content

Commit 67408e7

Browse files
committed
---
yaml --- r: 69201 b: refs/heads/auto c: fc05819 h: refs/heads/master i: 69199: 3752502 v: v3
1 parent 025e70f commit 67408e7

File tree

19 files changed

+17
-120
lines changed

19 files changed

+17
-120
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: a74d92e8ab61863876d2b5b6256b403efbb55492
17+
refs/heads/auto: fc058191818e4440d36e5ed4ef61bc0a9711be11
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/etc/extract-tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
if not re.search(r"\bextern mod extra\b", block):
6161
block = "extern mod extra;\n" + block
6262
block = """#[ forbid(ctypes) ];
63-
#[ forbid(deprecated_pattern) ];
64-
#[ forbid(implicit_copies) ];
65-
#[ forbid(non_implicitly_copyable_typarams) ];
6663
#[ forbid(path_statement) ];
6764
#[ forbid(type_limits) ];
6865
#[ forbid(unrecognized_lint) ];

branches/auto/src/etc/zsh/_rust

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ _rustc_opts_switches=(
3333
)
3434
_rustc_opts_lint=(
3535
'path-statement[path statements with no effect]'
36-
'deprecated-pattern[warn about deprecated uses of pattern bindings]'
37-
'non-implicitly-copyable-typarams[passing non implicitly copyable types as copy type params]'
3836
'missing-trait-doc[detects missing documentation for traits]'
3937
'missing-struct-doc[detects missing documentation for structs]'
4038
'ctypes[proper use of core::libc types in foreign modules]'
41-
'implicit-copies[implicit copies of non implicitly copyable data]'
4239
"unused-mut[detect mut variables which don't need to be mutable]"
4340
'unused-imports[imports that are never used]'
4441
'heap-memory[use of any (~ type or @ type) heap memory]'

branches/auto/src/librustc/middle/lint.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ pub enum lint {
7575
unnecessary_qualification,
7676
while_true,
7777
path_statement,
78-
implicit_copies,
7978
unrecognized_lint,
80-
deprecated_pattern,
8179
non_camel_case_types,
8280
non_uppercase_statics,
8381
type_limits,
@@ -182,20 +180,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
182180
default: warn
183181
}),
184182

185-
("implicit_copies",
186-
LintSpec {
187-
lint: implicit_copies,
188-
desc: "implicit copies of non implicitly copyable data",
189-
default: warn
190-
}),
191-
192-
("deprecated_pattern",
193-
LintSpec {
194-
lint: deprecated_pattern,
195-
desc: "warn about deprecated uses of pattern bindings",
196-
default: allow
197-
}),
198-
199183
("non_camel_case_types",
200184
LintSpec {
201185
lint: non_camel_case_types,

branches/auto/src/librustc/rustc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#[license = "MIT/ASL2"];
1818
#[crate_type = "lib"];
1919

20-
#[deny(deprecated_pattern)];
21-
2220
extern mod extra;
2321
extern mod syntax;
2422

branches/auto/src/libstd/result.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ pub fn unwrap_err<T, U>(res: Result<T, U>) -> U {
396396
}
397397

398398
#[cfg(test)]
399-
#[allow(non_implicitly_copyable_typarams)]
400399
mod tests {
401400
use result::{Err, Ok, Result, chain, get, get_err};
402401
use result;

branches/auto/src/libstd/tuple.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ mod tests {
384384
}
385385
386386
#[test]
387-
#[allow(non_implicitly_copyable_typarams)]
388387
fn test_tuple() {
389388
assert_eq!((948, 4039.48).first(), 948);
390389
assert_eq!((34.5, ~"foo").second(), ~"foo");

branches/auto/src/libsyntax/parse/parser.rs

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3996,50 +3996,37 @@ impl Parser {
39963996
let prefix = prefix.dir_path();
39973997
let mod_path_stack = &*self.mod_path_stack;
39983998
let mod_path = Path(".").push_many(*mod_path_stack);
3999-
let dir_path = prefix.push_many(mod_path.components);
40003999
let file_path = match ::attr::first_attr_value_str_by_name(
40014000
outer_attrs, "path") {
40024001
Some(d) => {
40034002
let path = Path(d);
40044003
if !path.is_absolute {
4005-
dir_path.push(d)
4004+
mod_path.push(d)
40064005
} else {
40074006
path
40084007
}
40094008
}
4010-
None => {
4011-
let mod_name = token::interner_get(id.name).to_owned();
4012-
let default_path_str = mod_name + ".rs";
4013-
let secondary_path_str = mod_name + "/mod.rs";
4014-
let default_path = dir_path.push(default_path_str);
4015-
let secondary_path = dir_path.push(secondary_path_str);
4016-
let default_exists = default_path.exists();
4017-
let secondary_exists = secondary_path.exists();
4018-
match (default_exists, secondary_exists) {
4019-
(true, false) => default_path,
4020-
(false, true) => secondary_path,
4021-
(false, false) => {
4022-
self.span_fatal(id_sp, fmt!("file not found for module `%s`", mod_name));
4023-
}
4024-
(true, true) => {
4025-
self.span_fatal(id_sp,
4026-
fmt!("file for module `%s` found at both %s and %s",
4027-
mod_name, default_path_str, secondary_path_str));
4028-
}
4029-
}
4030-
}
4009+
None => mod_path.push(token::interner_get(id.name) + ".rs") // default
40314010
};
40324011

4033-
self.eval_src_mod_from_path(file_path,
4012+
self.eval_src_mod_from_path(prefix,
4013+
file_path,
40344014
outer_attrs.to_owned(),
40354015
id_sp)
40364016
}
40374017

40384018
fn eval_src_mod_from_path(&self,
4019+
prefix: Path,
40394020
path: Path,
40404021
outer_attrs: ~[ast::Attribute],
40414022
id_sp: span) -> (ast::item_, ~[ast::Attribute]) {
4042-
let full_path = path.normalize();
4023+
4024+
let full_path = if path.is_absolute {
4025+
path
4026+
} else {
4027+
prefix.push_many(path.components)
4028+
};
4029+
let full_path = full_path.normalize();
40434030

40444031
let maybe_i = do self.sess.included_mod_stack.iter().position |p| { *p == full_path };
40454032
match maybe_i {

branches/auto/src/libsyntax/syntax.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#[license = "MIT/ASL2"];
2121
#[crate_type = "lib"];
2222

23-
#[deny(deprecated_pattern)];
24-
2523
extern mod extra;
2624

2725
pub mod util {

branches/auto/src/test/run-pass/mod_dir_implicit_aux/mod.rs renamed to branches/auto/src/test/compile-fail/missingmod.rc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
pub fn foo() -> int { 10 }
11+
// error-pattern:error opening
12+
13+
mod doesnotexist;

branches/auto/src/test/compile-fail/mod_file_disambig.rs

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

branches/auto/src/test/compile-fail/mod_file_disambig_aux.rs

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

branches/auto/src/test/compile-fail/mod_file_disambig_aux/mod.rs

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

branches/auto/src/test/compile-fail/mod_file_not_exist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file`
11+
mod not_a_real_file; //~ ERROR not_a_real_file.rs
1212

1313
fn main() {
1414
assert_eq!(mod_file_aux::bar(), 10);

branches/auto/src/test/run-pass-fulldeps/quote-tokens.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(non_implicitly_copyable_typarams)];
12-
1311
extern mod syntax;
1412

1513
use syntax::ext::base::ExtCtxt;

branches/auto/src/test/run-pass/auto-encode.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
// xfail-test #6122
1414

15-
#[forbid(deprecated_pattern)];
16-
1715
extern mod extra;
1816

1917
// These tests used to be separate files, but I wanted to refactor all

branches/auto/src/test/run-pass/fixed_length_copy.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
12-
// error on implicit copies to check fixed length vectors
13-
// are implicitly copyable
14-
#[deny(implicit_copies)]
1511
pub fn main() {
1612
let arr = [1,2,3];
1713
let arr2 = arr;

branches/auto/src/test/run-pass/issue-2550.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fn C(x: uint) -> C {
2121
fn f<T>(_x: T) {
2222
}
2323

24-
#[deny(non_implicitly_copyable_typarams)]
2524
pub fn main() {
2625
f(C(1u));
2726
}

branches/auto/src/test/run-pass/mod_dir_implicit.rs

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

0 commit comments

Comments
 (0)