mirror of https://github.com/rust-lang/book
Add to the dictionary, use one hash the dictionary likes
Also mention that the backtrace output is similar to what you might see, not exactly
This commit is contained in:
parent
d96a7eac44
commit
380e6ee57c
|
@ -133,6 +133,7 @@ JavaScript
|
|||
lang
|
||||
latin
|
||||
libc
|
||||
libcollections
|
||||
libcore
|
||||
librarys
|
||||
libreoffice
|
||||
|
|
|
@ -136,7 +136,7 @@ the `panic!` is actually happening.
|
|||
|
||||
The next note line tells us that we can set the `RUST_BACKTRACE` environment
|
||||
variable to get a backtrace of exactly what happened to cause the error. Let’s
|
||||
try that. Listing 9-1 shows the output:
|
||||
try that. Listing 9-1 shows output similar to what you'll see:
|
||||
|
||||
<figure>
|
||||
|
||||
|
@ -148,23 +148,23 @@ thread 'main' panicked at 'index out of bounds: the len is 3 but the index is
|
|||
100', /stable-dist-rustc/build/src/libcollections/vec.rs:1395
|
||||
stack backtrace:
|
||||
1: 0x10922522c -
|
||||
std::sys::imp::backtrace::tracing::imp::write::h61cce32efcf6a3d0
|
||||
std::sys::imp::backtrace::tracing::imp::write::h1204ab053b688140
|
||||
2: 0x10922649e -
|
||||
std::panicking::default_hook::{{closure}}::hdac93beb64eaf365
|
||||
3: 0x109226140 - std::panicking::default_hook::h4a7f61136a9004ca
|
||||
std::panicking::default_hook::{{closure}}::h1204ab053b688140
|
||||
3: 0x109226140 - std::panicking::default_hook::h1204ab053b688140
|
||||
4: 0x109226897 -
|
||||
std::panicking::rust_panic_with_hook::hdf5cd951b8d6fa36
|
||||
std::panicking::rust_panic_with_hook::h1204ab053b688140
|
||||
5: 0x1092266f4 - std::panicking::begin_panic::h1204ab053b688140
|
||||
6: 0x109226662 - std::panicking::begin_panic_fmt::h7d4fffc79f986d3b
|
||||
6: 0x109226662 - std::panicking::begin_panic_fmt::h1204ab053b688140
|
||||
7: 0x1092265c7 - rust_begin_unwind
|
||||
8: 0x1092486f0 - core::panicking::panic_fmt::he6eb92dab4407c61
|
||||
8: 0x1092486f0 - core::panicking::panic_fmt::h1204ab053b688140
|
||||
9: 0x109248668 -
|
||||
core::panicking::panic_bounds_check::h37b4772a417ae8c7
|
||||
core::panicking::panic_bounds_check::h1204ab053b688140
|
||||
10: 0x1092205b5 - <collections::vec::Vec<T> as
|
||||
core::ops::Index<usize>>::index::hbc2823add66bc839
|
||||
11: 0x10922066a - aggregator::main::h977e018a69ea4690
|
||||
core::ops::Index<usize>>::index::h1204ab053b688140
|
||||
11: 0x10922066a - panic::main::h1204ab053b688140
|
||||
12: 0x1092282ba - __rust_maybe_catch_panic
|
||||
13: 0x109226b16 - std::rt::lang_start::h5196b70c908371ed
|
||||
13: 0x109226b16 - std::rt::lang_start::h1204ab053b688140
|
||||
14: 0x1092206e9 - main
|
||||
```
|
||||
|
||||
|
|
Binary file not shown.
|
@ -121,23 +121,23 @@ thread 'main' panicked at 'index out of bounds: the len is 3 but the index is
|
|||
100', /stable-dist-rustc/build/src/libcollections/vec.rs:1395
|
||||
stack backtrace:
|
||||
1: 0x10922522c -
|
||||
std::sys::imp::backtrace::tracing::imp::write::h61cce32efcf6a3d0
|
||||
std::sys::imp::backtrace::tracing::imp::write::h1204ab053b688140
|
||||
2: 0x10922649e -
|
||||
std::panicking::default_hook::{{closure}}::hdac93beb64eaf365
|
||||
3: 0x109226140 - std::panicking::default_hook::h4a7f61136a9004ca
|
||||
std::panicking::default_hook::{{closure}}::h1204ab053b688140
|
||||
3: 0x109226140 - std::panicking::default_hook::h1204ab053b688140
|
||||
4: 0x109226897 -
|
||||
std::panicking::rust_panic_with_hook::hdf5cd951b8d6fa36
|
||||
std::panicking::rust_panic_with_hook::h1204ab053b688140
|
||||
5: 0x1092266f4 - std::panicking::begin_panic::h1204ab053b688140
|
||||
6: 0x109226662 - std::panicking::begin_panic_fmt::h7d4fffc79f986d3b
|
||||
6: 0x109226662 - std::panicking::begin_panic_fmt::h1204ab053b688140
|
||||
7: 0x1092265c7 - rust_begin_unwind
|
||||
8: 0x1092486f0 - core::panicking::panic_fmt::he6eb92dab4407c61
|
||||
8: 0x1092486f0 - core::panicking::panic_fmt::h1204ab053b688140
|
||||
9: 0x109248668 -
|
||||
core::panicking::panic_bounds_check::h37b4772a417ae8c7
|
||||
core::panicking::panic_bounds_check::h1204ab053b688140
|
||||
10: 0x1092205b5 - <collections::vec::Vec<T> as
|
||||
core::ops::Index<usize>>::index::hbc2823add66bc839
|
||||
11: 0x10922066a - aggregator::main::h977e018a69ea4690
|
||||
core::ops::Index<usize>>::index::h1204ab053b688140
|
||||
11: 0x10922066a - panic::main::h1204ab053b688140
|
||||
12: 0x1092282ba - __rust_maybe_catch_panic
|
||||
13: 0x109226b16 - std::rt::lang_start::h5196b70c908371ed
|
||||
13: 0x109226b16 - std::rt::lang_start::h1204ab053b688140
|
||||
14: 0x1092206e9 - main
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue