Skip to content

Commit 3e53acc

Browse files
committed
---
yaml --- r: 228533 b: refs/heads/try c: 2fe870a h: refs/heads/master i: 228531: 55af8dc v: v3
1 parent 7d9d8e7 commit 3e53acc

Some content is hidden

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

90 files changed

+1930
-841
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 28ce509d3c0b3302e514d5835c43befaed6f449c
4+
refs/heads/try: 2fe870a5a7449643f5cf79c0d14d47888472c6ca
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,10 @@ 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 the `glob` feature. Let's change
254-
our `src/lib.rs` to make use of it:
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:
255255

256256
```rust,ignore
257-
258257
pub fn add_two(a: i32) -> i32 {
259258
a + 2
260259
}

branches/try/src/etc/debugger_pretty_printers_common.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@
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"
5958
STD_VEC_FIELD_NAME_LENGTH = "len"
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]
59+
STD_VEC_FIELD_NAME_BUF = "buf"
60+
STD_VEC_FIELD_NAMES = [STD_VEC_FIELD_NAME_BUF,
61+
STD_VEC_FIELD_NAME_LENGTH]
6462

6563
# std::String related constants
6664
STD_STRING_FIELD_NAMES = ["vec"]
@@ -302,13 +300,13 @@ def get_discriminant_value_as_integer(enum_val):
302300
def extract_length_ptr_and_cap_from_std_vec(vec_val):
303301
assert vec_val.type.get_type_kind() == TYPE_KIND_STD_VEC
304302
length_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_LENGTH)
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)
303+
buf_field_index = STD_VEC_FIELD_NAMES.index(STD_VEC_FIELD_NAME_BUF)
307304

308305
length = vec_val.get_child_at_index(length_field_index).as_integer()
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()
306+
buf = vec_val.get_child_at_index(buf_field_index)
311307

308+
vec_ptr_val = buf.get_child_at_index(0)
309+
capacity = buf.get_child_at_index(1).as_integer()
312310
unique_ptr_val = vec_ptr_val.get_child_at_index(0)
313311
data_ptr = unique_ptr_val.get_child_at_index(0)
314312
assert data_ptr.type.get_dwarf_type_kind() == DWARF_TYPE_CODE_PTR

branches/try/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/try/src/liballoc/lib.rs

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

9293
#![cfg_attr(test, feature(test, alloc, rustc_private, box_raw))]
9394
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
@@ -122,6 +123,7 @@ mod boxed { pub use std::boxed::{Box, HEAP}; }
122123
mod boxed_test;
123124
pub mod arc;
124125
pub mod rc;
126+
pub mod raw_vec;
125127

126128
/// Common out-of-memory routine
127129
#[cold]

0 commit comments

Comments
 (0)