Make ~fn non-copyable, make &fn copyable, split barefn/closure types,
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
This commit is contained in:
parent
82d7396333
commit
a32498d846
187 changed files with 2065 additions and 2373 deletions
|
|
@ -159,7 +159,7 @@ pub fn test_opts(config: config) -> test::TestOpts {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn make_tests(config: config) -> ~[test::TestDesc] {
|
||||
pub fn make_tests(config: config) -> ~[test::TestDescAndFn] {
|
||||
debug!("making tests from %s",
|
||||
config.src_base.to_str());
|
||||
let mut tests = ~[];
|
||||
|
|
@ -196,13 +196,14 @@ pub fn is_test(config: config, testfile: &Path) -> bool {
|
|||
return valid;
|
||||
}
|
||||
|
||||
pub fn make_test(config: config, testfile: &Path) ->
|
||||
test::TestDesc {
|
||||
test::TestDesc {
|
||||
name: make_test_name(config, testfile),
|
||||
pub fn make_test(config: config, testfile: &Path) -> test::TestDescAndFn {
|
||||
test::TestDescAndFn {
|
||||
desc: test::TestDesc {
|
||||
name: make_test_name(config, testfile),
|
||||
ignore: header::is_test_ignored(config, testfile),
|
||||
should_fail: false
|
||||
},
|
||||
testfn: make_test_closure(config, testfile),
|
||||
ignore: header::is_test_ignored(config, testfile),
|
||||
should_fail: false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue