Skip to content

Commit 1c72345

Browse files
committed
---
yaml --- r: 174548 b: refs/heads/tmp c: b7afe5e h: refs/heads/master v: v3
1 parent 74722ff commit 1c72345

File tree

157 files changed

+2113
-1053
lines changed

Some content is hidden

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

157 files changed

+2113
-1053
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 5431727b6e521548419ec2606ef22ffa43097f72
37+
refs/heads/tmp: b7afe5ec2762cb295b6adffd94ec6bec3b7c0f15

branches/tmp/mk/tests.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10111011
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)) \
10121012
"$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))" \
10131013
"$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))" \
1014-
$(1)
1014+
$(1) \
1015+
$$(S)
10151016
@touch $$@
10161017
else
10171018
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/tmp/src/doc/guide-crates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Crates and Modules Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/crates-and-modules.html).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% Error Handling in Rust
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/error-handling.html).

branches/tmp/src/doc/guide-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Foreign Function Interface Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/ffi.html).

branches/tmp/src/doc/guide-macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Macros Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/macros.html).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Ownership Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/ownership.html).

branches/tmp/src/doc/guide-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Compiler Plugins Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/plugins.html).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Pointer Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/pointers.html).

branches/tmp/src/doc/guide-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Guide to Rust Strings
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/strings.html).

branches/tmp/src/doc/guide-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Threads and Communication Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/tasks.html).

branches/tmp/src/doc/guide-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Testing Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/testing.html).

branches/tmp/src/doc/guide-unsafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% Writing Safe Low-level and Unsafe Code in Rust
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/unsafe.html).

branches/tmp/src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Guide
22

3-
This content has moved into the
3+
This content has moved into
44
[the Rust Programming Language book](book/README.html).

branches/tmp/src/doc/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ There are three different types of inline attributes:
24512451
* `#[inline(always)]` asks the compiler to always perform an inline expansion.
24522452
* `#[inline(never)]` asks the compiler to never perform an inline expansion.
24532453

2454-
### Derive
2454+
### `derive`
24552455

24562456
The `derive` attribute allows certain traits to be automatically implemented
24572457
for data structures. For example, the following will create an `impl` for the

branches/tmp/src/doc/trpl/unsafe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ in the same format as C:
447447

448448
```
449449
#![no_std]
450-
#![feature(lang_items)]
450+
#![feature(lang_items, start)]
451451
452452
// Pull in the system libc library for what crt0.o likely requires
453453
extern crate libc;
@@ -475,7 +475,7 @@ compiler's name mangling too:
475475
```ignore
476476
#![no_std]
477477
#![no_main]
478-
#![feature(lang_items)]
478+
#![feature(lang_items, start)]
479479
480480
extern crate libc;
481481
@@ -529,7 +529,7 @@ vectors provided from C, using idiomatic Rust practices.
529529

530530
```
531531
#![no_std]
532-
#![feature(lang_items)]
532+
#![feature(lang_items, start)]
533533
534534
# extern crate libc;
535535
extern crate core;
@@ -653,7 +653,7 @@ sugar for dynamic allocations via `malloc` and `free`:
653653

654654
```
655655
#![no_std]
656-
#![feature(lang_items, box_syntax)]
656+
#![feature(lang_items, box_syntax, start)]
657657
658658
extern crate libc;
659659

branches/tmp/src/etc/generate-deriving-span-tests.py

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

1313
"""
1414
This script creates a pile of compile-fail tests check that all the
15-
derivings have spans that point to the fields, rather than the
16-
#[deriving(...)] line.
15+
derives have spans that point to the fields, rather than the
16+
#[derive(...)] line.
1717
1818
sample usage: src/etc/generate-deriving-span-tests.py
1919
"""
@@ -46,29 +46,29 @@
4646
"""
4747

4848
ENUM_STRING = """
49-
#[deriving({traits})]
49+
#[derive({traits})]
5050
enum Enum {{
5151
A(
5252
Error {errors}
5353
)
5454
}}
5555
"""
5656
ENUM_STRUCT_VARIANT_STRING = """
57-
#[deriving({traits})]
57+
#[derive({traits})]
5858
enum Enum {{
5959
A {{
6060
x: Error {errors}
6161
}}
6262
}}
6363
"""
6464
STRUCT_STRING = """
65-
#[deriving({traits})]
65+
#[derive({traits})]
6666
struct Struct {{
6767
x: Error {errors}
6868
}}
6969
"""
7070
STRUCT_TUPLE_STRING = """
71-
#[deriving({traits})]
71+
#[derive({traits})]
7272
struct Struct(
7373
Error {errors}
7474
);
@@ -80,14 +80,14 @@ def create_test_case(type, trait, super_traits, number_of_errors):
8080
string = [ENUM_STRING, ENUM_STRUCT_VARIANT_STRING, STRUCT_STRING, STRUCT_TUPLE_STRING][type]
8181
all_traits = ','.join([trait] + super_traits)
8282
super_traits = ','.join(super_traits)
83-
error_deriving = '#[deriving(%s)]' % super_traits if super_traits else ''
83+
error_deriving = '#[derive(%s)]' % super_traits if super_traits else ''
8484

8585
errors = '\n'.join('//~%s ERROR' % ('^' * n) for n in range(error_count))
8686
code = string.format(traits = all_traits, errors = errors)
8787
return TEMPLATE.format(year = YEAR, error_deriving=error_deriving, code = code)
8888

8989
def write_file(name, string):
90-
test_file = os.path.join(TEST_DIR, 'deriving-span-%s.rs' % name)
90+
test_file = os.path.join(TEST_DIR, 'derives-span-%s.rs' % name)
9191

9292
# set write permission if file exists, so it can be changed
9393
if os.path.exists(test_file):

0 commit comments

Comments
 (0)