Skip to content

Commit 0b995b4

Browse files
committed
---
yaml --- r: 220873 b: refs/heads/auto c: 72dbbee h: refs/heads/master i: 220871: 7c88280 v: v3
1 parent f7c8052 commit 0b995b4

File tree

130 files changed

+1369
-1378
lines changed

Some content is hidden

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

130 files changed

+1369
-1378
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 266428845d02252815e16ccfe48b5ba2f808faca
11+
refs/heads/auto: 72dbbeef50d24efa424ff7ee2dd2f09ce2cd61cf
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/doc/trpl/testing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,11 @@ that our tests are entirely left out of a normal build.
250250

251251
The second change is the `use` declaration. Because we're in an inner module,
252252
we need to bring our test function into scope. This can be annoying if you have
253-
a large module, and so this is a common use of globs. Let's change our
254-
`src/lib.rs` to make use of it:
253+
a large module, and so this is a common use of the `glob` feature. Let's change
254+
our `src/lib.rs` to make use of it:
255255

256256
```rust,ignore
257+
257258
pub fn add_two(a: i32) -> i32 {
258259
a + 2
259260
}

branches/auto/src/etc/debugger_pretty_printers_common.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@
5555
SLICE_FIELD_NAMES = [SLICE_FIELD_NAME_DATA_PTR, SLICE_FIELD_NAME_LENGTH]
5656

5757
# std::Vec<> related constants
58+
STD_VEC_FIELD_NAME_DATA_PTR = "ptr"
5859
STD_VEC_FIELD_NAME_LENGTH = "len"
59-
STD_VEC_FIELD_NAME_BUF = "buf"
60-
STD_VEC_FIELD_NAMES = [STD_VEC_FIELD_NAME_BUF,
61-
STD_VEC_FIELD_NAME_LENGTH]
60+
STD_VEC_FIELD_NAME_CAPACITY = "cap"
61+
STD_VEC_FIELD_NAMES = [STD_VEC_FIELD_NAME_DATA_PTR,
62+
STD_VEC_FIELD_NAME_LENGTH,
63+
STD_VEC_FIELD_NAME_CAPACITY]
6264

6365
# std::String related constants
6466
STD_STRING_FIELD_NAMES = ["vec"]
@@ -300,13 +302,13 @@ def get_discriminant_value_as_integer(enum_val):
300302
def extract_length_ptr_and_cap_from_std_vec(vec_val):
301303
assert vec_val.type.get_type_kind() == TYPE_KIND_STD_VEC
302304
length_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_LENGTH)
303-
buf_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_BUF)
305+
ptr_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_DATA_PTR)
306+
cap_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_CAPACITY)
304307

305308
length = vec_val.get_child_at_index(length_field_index).as_integer()
306-
buf = vec_val.get_child_at_index(buf_field_index)
309+
vec_ptr_val = vec_val.get_child_at_index(ptr_field_index)
310+
capacity = vec_val.get_child_at_index(cap_field_index).as_integer()
307311

308-
vec_ptr_val = buf.get_child_at_index(0)
309-
capacity = buf.get_child_at_index(1).as_integer()
310312
unique_ptr_val = vec_ptr_val.get_child_at_index(0)
311313
data_ptr = unique_ptr_val.get_child_at_index(0)
312314
assert data_ptr.type.get_dwarf_type_kind() == DWARF_TYPE_CODE_PTR

branches/auto/src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use core::hash::{self, Hash};
6262
use core::marker::Unsize;
6363
use core::mem;
6464
use core::ops::{CoerceUnsized, Deref, DerefMut};
65-
use core::ptr::Unique;
65+
use core::ptr::{Unique};
6666
use core::raw::{TraitObject};
6767

6868
/// A value that represents the heap. This is the default place that the `box`

branches/auto/src/liballoc/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
#![feature(unique)]
8989
#![feature(unsafe_no_drop_flag, filling_drop)]
9090
#![feature(unsize)]
91-
#![feature(core_slice_ext)]
9291

9392
#![cfg_attr(test, feature(test, alloc, rustc_private, box_raw))]
9493
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
@@ -123,7 +122,6 @@ mod boxed { pub use std::boxed::{Box, HEAP}; }
123122
mod boxed_test;
124123
pub mod arc;
125124
pub mod rc;
126-
pub mod raw_vec;
127125

128126
/// Common out-of-memory routine
129127
#[cold]

0 commit comments

Comments
 (0)