Skip to content

Commit 3040621

Browse files
committed
---
yaml --- r: 274979 b: refs/heads/stable c: 040cbc4 h: refs/heads/master i: 274977: ae64f38 274975: bd534fe
1 parent 1a0c54c commit 3040621

File tree

30 files changed

+88
-248
lines changed

30 files changed

+88
-248
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 4f86b8e7323b6b50315c3298e6f809d92a4c4c4f
32+
refs/heads/stable: 040cbc4566962faa402780b68918b188a5346522
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/mk/crates.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
5959
rustc_data_structures rustc_front rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes
6161
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros
62-
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
62+
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
6363

6464
DEPS_core :=
6565
DEPS_alloc := core libc alloc_system
@@ -120,12 +120,12 @@ TOOL_DEPS_compiletest := test getopts
120120
TOOL_DEPS_rustdoc := rustdoc
121121
TOOL_DEPS_rustc := rustc_driver
122122
TOOL_DEPS_rustbook := std rustdoc
123-
TOOL_DEPS_error_index_generator := rustdoc syntax serialize
123+
TOOL_DEPS_error-index-generator := rustdoc syntax serialize
124124
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
125125
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
126126
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
127127
TOOL_SOURCE_rustbook := $(S)src/rustbook/main.rs
128-
TOOL_SOURCE_error_index_generator := $(S)src/error_index_generator/main.rs
128+
TOOL_SOURCE_error-index-generator := $(S)src/error-index-generator/main.rs
129129

130130
ONLY_RLIB_core := 1
131131
ONLY_RLIB_libc := 1

branches/stable/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PKG_FILES := \
5252
doc \
5353
driver \
5454
etc \
55-
error_index_generator \
55+
error-index-generator \
5656
$(foreach crate,$(CRATES),lib$(crate)) \
5757
libcollectionstest \
5858
libcoretest \

branches/stable/mk/docs.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ RUSTBOOK_EXE = $(HBIN2_H_$(CFG_BUILD))/rustbook$(X_$(CFG_BUILD))
5959
# ./configure
6060
RUSTBOOK = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTBOOK_EXE)
6161

62-
# The error_index_generator executable...
63-
ERR_IDX_GEN_EXE = $(HBIN2_H_$(CFG_BUILD))/error_index_generator$(X_$(CFG_BUILD))
62+
# The error-index-generator executable...
63+
ERR_IDX_GEN_EXE = $(HBIN2_H_$(CFG_BUILD))/error-index-generator$(X_$(CFG_BUILD))
6464
ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
6565
ERR_IDX_GEN_MD = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE) markdown
6666

@@ -221,9 +221,9 @@ error-index: doc/error-index.html
221221
# Metadata used to generate the index is created as a side effect of
222222
# the build so this depends on every crate being up to date.
223223
doc/error-index.html: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
224-
$(Q)$(call E, error_index_generator: $@)
224+
$(Q)$(call E, error-index-generator: $@)
225225
$(Q)$(ERR_IDX_GEN)
226226

227227
doc/error-index.md: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
228-
$(Q)$(call E, error_index_generator: $@)
228+
$(Q)$(call E, error-index-generator: $@)
229229
$(Q)$(ERR_IDX_GEN_MD)

branches/stable/mk/prepare.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ define PREPARE_MAN
8282

8383
endef
8484

85-
PREPARE_TOOLS = $(filter-out compiletest rustbook error_index_generator, $(TOOLS))
85+
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS))
8686

8787

8888
# $(1) is tool

branches/stable/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10721072
$(3) \
10731073
"$$(LLVM_LIBDIR_RUSTFLAGS_$(3))" \
10741074
"$$(LLVM_ALL_COMPONENTS_$(3))" \
1075-
"$$(LLVM_CXXFLAGS_$(3))" \
1076-
'$$(CXX_$(3))'
1075+
"$$(LLVM_CXXFLAGS_$(3))"
10771076
@touch -r $$@.start_time $$@ && rm $$@.start_time
10781077
else
10791078
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/stable/src/doc/book/vectors.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,15 @@ let v = vec![1, 2, 3, 4, 5]; // v: Vec<i32>
1111
```
1212

1313
(Notice that unlike the `println!` macro we’ve used in the past, we use square
14-
brackets `[]` with `vec!` macro. Rust allows you to use either in either
15-
situation, this is just convention.)
14+
brackets `[]` with `vec!` macro. Rust allows you to use either in either situation,
15+
this is just convention.)
1616

1717
There’s an alternate form of `vec!` for repeating an initial value:
1818

1919
```rust
2020
let v = vec![0; 10]; // ten zeroes
2121
```
2222

23-
Vectors store their contents as contiguous arrays of `T` on the heap. This means
24-
that they must be able to know the size of `T` at compile time (that is, how
25-
many bytes are needed to store a `T`?). The size of some things can't be known
26-
at compile time. For these you'll have to store a pointer to that thing:
27-
thankfully, the [`Box`][box] type works perfectly for this.
28-
2923
## Accessing elements
3024

3125
To get the value at a particular index in the vector, we use `[]`s:
@@ -119,7 +113,6 @@ Vectors have many more useful methods, which you can read about in [their
119113
API documentation][vec].
120114

121115
[vec]: ../std/vec/index.html
122-
[box]: ../std/boxed/index.html
123116
[generic]: generics.html
124117
[panic]: concurrency.html#panics
125118
[get]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get

branches/stable/src/etc/maketest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def convert_path_spec(name, value):
5757
putenv('RUSTFLAGS', sys.argv[15])
5858
putenv('LLVM_COMPONENTS', sys.argv[16])
5959
putenv('LLVM_CXXFLAGS', sys.argv[17])
60-
putenv('CXX', sys.argv[18])
6160
putenv('PYTHON', sys.executable)
6261
os.putenv('TARGET', target_triple)
6362

branches/stable/src/etc/tidy.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@
2424

2525
interesting_files = ['.rs', '.py', '.js', '.sh', '.c', '.h']
2626
uninteresting_files = ['miniz.c', 'jquery', 'rust_android_dummy']
27-
stable_whitelist = {
28-
'src/bootstrap',
29-
'src/build_helper',
30-
'src/libcollectionstest',
31-
'src/libcore',
32-
'src/libstd',
33-
'src/rustc/std_shim',
34-
'src/test'
35-
}
3627

3728

3829
def report_error_name_no(name, no, s):
@@ -102,7 +93,6 @@ def interesting_file(f):
10293
file_counts = {ext: 0 for ext in interesting_files}
10394

10495
all_paths = set()
105-
needs_unstable_attr = set()
10696

10797
try:
10898
for (dirpath, dirnames, filenames) in os.walk(src_dir):
@@ -159,9 +149,6 @@ def interesting_file(f):
159149
else:
160150
if "SNAP " in line:
161151
report_warn("unmatched SNAP line: " + line)
162-
search = re.search(r'^#!\[unstable', line)
163-
if search:
164-
needs_unstable_attr.discard(filename)
165152

166153
if cr_flag in line:
167154
check_cr = False
@@ -194,9 +181,6 @@ def interesting_file(f):
194181
check_cr = True
195182
check_tab = True
196183
check_linelength = True
197-
if all(f not in filename for f in stable_whitelist) and \
198-
re.search(r'src/.*/lib\.rs', filename):
199-
needs_unstable_attr.add(filename)
200184

201185
# Put a reasonable limit on the amount of header data we use for
202186
# the licenseck
@@ -211,8 +195,6 @@ def interesting_file(f):
211195
update_counts(current_name)
212196
assert len(current_contents) > 0
213197
do_license_check(current_name, current_contents)
214-
for f in needs_unstable_attr:
215-
report_error_name_no(f, 1, "requires unstable attribute")
216198

217199
except UnicodeDecodeError as e:
218200
report_err("UTF-8 decoding error " + str(e))

0 commit comments

Comments
 (0)