Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #70169

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
25e856b
Replace shared root with optional root
Mark-Simulacrum Mar 18, 2020
4e33a54
Remove shared root code and assertions from BTree nodes
Mark-Simulacrum Mar 18, 2020
76f9c96
Make functions dependent only on shared root avoidance safe
Mark-Simulacrum Mar 18, 2020
702758d
Drop NodeHeader type from BTree code
Mark-Simulacrum Mar 18, 2020
416fd43
Simplify ensure_root_is_owned callers
Mark-Simulacrum Mar 18, 2020
fda913b
Add regression test for TAIT lifetime inference (issue #55099)
Aaron1011 Mar 19, 2020
410cd7a
remove unused imports
stlankes Mar 19, 2020
2c38ecf
doc: Add quote to .init_array
tesuji Mar 19, 2020
be06f67
Clean up E0437 explanation
GuillaumeGomez Mar 18, 2020
6f16118
Clean up e0438 explanation
GuillaumeGomez Mar 19, 2020
8e0398c
Clarify the relationship between `forget()` and `ManuallyDrop`.
hniksic Mar 1, 2020
2a08b0e
Restore (and reword) the warning against passing invalid values to me…
hniksic Mar 4, 2020
7554341
Minor re-wordings and typo fixes.
hniksic Mar 18, 2020
2bebe8d
Don't hard-code the vector length in the examples.
hniksic Mar 19, 2020
6cd0dca
Prefetch queries used by the metadata encoder
Zoxc Jan 4, 2020
1a34cbc
Encode exported symbols last
Zoxc Jan 11, 2020
03af82b
Prefetch exported symbols
Zoxc Jan 11, 2020
3d59c0e
Make the timer more verbose
Zoxc Jan 11, 2020
a2bca90
Make metadata prefetching more accurate
Zoxc Jan 13, 2020
801e442
Add some comments
Zoxc Mar 14, 2020
027c8d9
Use `assert_ignored` when encoding metadata
Zoxc Mar 14, 2020
89ef59a
triagebot.toml: accept typo due to pnkfelix
Centril Mar 19, 2020
db7a697
Fix debugger pretty printing of BTrees
Mark-Simulacrum Mar 18, 2020
a9a8151
Rollup merge of #67888 - Zoxc:metadata-prefetch, r=matthewjasper
Dylan-DPC Mar 19, 2020
28e7089
Rollup merge of #69618 - hniksic:mem-forget-doc-fix, r=RalfJung
Dylan-DPC Mar 19, 2020
6312352
Rollup merge of #70103 - GuillaumeGomez:cleanup-e0437, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
fd4b965
Rollup merge of #70111 - Mark-Simulacrum:btree-no-shared, r=cuviper
Dylan-DPC Mar 19, 2020
52711e5
Rollup merge of #70131 - Aaron1011:fix/issue-55099-test, r=nikomatsakis
Dylan-DPC Mar 19, 2020
2415742
Rollup merge of #70133 - hermitcore:libpanic_unwind, r=nikomatsakis
Dylan-DPC Mar 19, 2020
ef9ac42
Rollup merge of #70145 - lzutao:patch-1, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
80b8c13
Rollup merge of #70146 - GuillaumeGomez:cleanup-e0438, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
44fdd5a
Rollup merge of #70150 - rust-lang:accept-felixes-typo, r=Mark-Simula…
Dylan-DPC Mar 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 39 additions & 13 deletions src/etc/gdb_rust_pretty_printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,25 @@ def to_string(self):
("(len: %i)" % self.__val.get_wrapped_value()['map']['length']))

def children(self):
root = self.__val.get_wrapped_value()['map']['root']
node_ptr = root['node']
i = 0
for child in children_of_node(node_ptr, root['height'], False):
yield (str(i), child)
i = i + 1
if self.__val.get_wrapped_value()['map']['length'] > 0:
root = self.__val.get_wrapped_value()['map']['root']
# get at `Option` innards
root = GdbValue(root).get_child_at_index(0).get_wrapped_value()
# pull out the `Some` variant of the enum
try:
root = root['Some']
except:
# Do nothing, we just want to pull out Some if it exists.
# If it didn't, then it seems at least on some versions of gdb
# we don't actually need to do the above line, so just skip it.
pass
# And now the value of the Some variant
root = GdbValue(root).get_child_at_index(0).get_wrapped_value()
node_ptr = root['node']
i = 0
for child in children_of_node(node_ptr, root['height'], False):
yield (str(i), child)
i = i + 1


class RustStdBTreeMapPrinter(object):
Expand All @@ -391,13 +404,26 @@ def to_string(self):
("(len: %i)" % self.__val.get_wrapped_value()['length']))

def children(self):
root = self.__val.get_wrapped_value()['root']
node_ptr = root['node']
i = 0
for child in children_of_node(node_ptr, root['height'], True):
yield (str(i), child[0])
yield (str(i), child[1])
i = i + 1
if self.__val.get_wrapped_value()['length'] > 0:
root = self.__val.get_wrapped_value()['root']
# get at `Option` innards
root = GdbValue(root).get_child_at_index(0).get_wrapped_value()
# pull out the `Some` variant of the enum
try:
root = root['Some']
except:
# Do nothing, we just want to pull out Some if it exists.
# If it didn't, then it seems at least on some versions of gdb
# we don't actually need to do the above line, so just skip it.
pass
# And now the value of the Some variant
root = GdbValue(root).get_child_at_index(0).get_wrapped_value()
node_ptr = root['node']
i = 0
for child in children_of_node(node_ptr, root['height'], True):
yield (str(i), child[0])
yield (str(i), child[1])
i = i + 1


class RustStdStringPrinter(object):
Expand Down
Loading