@@ -220,73 +220,74 @@ SocketAddr::from(([127, 0, 0, 1], 3000))
220
220
([127 , 0 , 0 , 1 ], 3000 ). into ())
221
221
``
222
222
223
- This removes some uneccesary run - time parsing , and is roughly as readable , depending on
223
+ This removes some unnecesary run - time parsing , and is roughly as readable , depending on
224
224
your preferences .
225
225
226
226
Backtraces [now have nicer formatting ](https : // github.com/rust-lang/rust/pull/38165), eliding
227
- many internal stack frames by default . For example , the full backtrace :
227
+ some things by default . For example , the full backtrace :
228
228
229
229
```text
230
- thread 'main' panicked at 'This function never returns! ', t .rs:2
230
+ thread 'main' panicked at 'explicit panic ', foo .rs:2
231
231
stack backtrace:
232
- 0: 0x558ddf666478 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::hec84c9dd8389cc5d
233
- at /home/yamakaky/dev/rust/rust/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
234
- 1: 0x558ddf65d90e - std::sys_common::backtrace::_print::hfa25f8b31f4b4353
235
- at /home/yamakaky/dev/rust/rust/src/libstd/sys_common/backtrace.rs:71
236
- 2: 0x558ddf65cb5e - std::sys_common::backtrace::print::h9b711e11ac3ba805
237
- at /home/yamakaky/dev/rust/rust/src/libstd/sys_common/backtrace.rs:60
238
- 3: 0x558ddf66796e - std::panicking::default_hook::{{closure}}::h736d216e74748044
239
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:355
240
- 4: 0x558ddf66743c - std::panicking::default_hook::h16baff397e46ea10
241
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:371
242
- 5: 0x558ddf6682bc - std::panicking::rust_panic_with_hook::h6d5a9bb4eca42c80
243
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:559
244
- 6: 0x558ddf64ea93 - std::panicking::begin_panic::h17dc549df2f10b99
245
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:521
246
- 7: 0x558ddf64ec42 - t::diverges::he6bc43fc925905f5
247
- at /tmp/p/t.rs:2
248
- 8: 0x558ddf64ec5a - t::main::h0ffc20356b8a69c0
249
- at /tmp/p/t.rs:6
250
- 9: 0x558ddf6687f5 - core::ops::FnOnce::call_once::hce41f19c0db56f93
251
- 10: 0x558ddf667cde - std::panicking::try::do_call::hd4c8c97efb4291df
252
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:464
253
- 11: 0x558ddf698d77 - __rust_try
254
- 12: 0x558ddf698c57 - __rust_maybe_catch_panic
255
- at /home/yamakaky/dev/rust/rust/src/libpanic_unwind/lib.rs:98
256
- 13: 0x558ddf667adb - std::panicking::try::h2c56ed2a59ec1d12
257
- at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:440
258
- 14: 0x558ddf66cc9a - std::panic::catch_unwind::h390834e0251cc9af
259
- at /home/yamakaky/dev/rust/rust/src/libstd/panic.rs:361
260
- 15: 0x558ddf6809ee - std::rt::lang_start::hb73087428e233982
261
- at /home/yamakaky/dev/rust/rust/src/libstd/rt.rs:57
262
- 16: 0x558ddf64ec92 - main
263
- 17: 0x7fecb869e290 - __libc_start_main
264
- 18: 0x558ddf64e8b9 - _start
265
- 19: 0x0 - <unknown>
232
+ 1: 0x55c39a23372c - std::sys::imp::backtrace::tracing::imp::write::hf33ae72d0baa11ed
233
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:42
234
+ 2: 0x55c39a23571e - std::panicking::default_hook::{{closure}}::h59672b733cc6a455
235
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:351
236
+ 3: 0x55c39a235324 - std::panicking::default_hook::h1670459d2f3f8843
237
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:367
238
+ 4: 0x55c39a235afb - std::panicking::rust_panic_with_hook::hcf0ddb069e7beee7
239
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:555
240
+ 5: 0x55c39a22e866 - std::panicking::begin_panic::heb433e9aa28a7408
241
+ 6: 0x55c39a22e9bf - foo::main::hd216d4a160fcce19
242
+ 7: 0x55c39a23d44a - __rust_maybe_catch_panic
243
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libpanic_unwind/lib.rs:98
244
+ 8: 0x55c39a236006 - std::rt::lang_start::hd7c880a37a646e81
245
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:436
246
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panic.rs:361
247
+ at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/rt.rs:57
248
+ 9: 0x55c39a22e9e9 - main
249
+ 10: 0x7f5e5ed3382f - __libc_start_main
250
+ 11: 0x55c39a22e6b8 - _start
251
+ 12: 0x0 - <unknown>
266
252
```
267
253
268
254
is now instead
269
255
270
256
```text
271
- thread ' main ' panicked at ' explicit panic ', t.rs:2
272
- Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
257
+ thread ' main ' panicked at ' explicit panic ', foo.rs:2
273
258
stack backtrace:
274
- 0: t::fail
275
- at ./t.rs:2
276
- 1: t::main::{{closure}}
277
- at ./t.rs:6
278
- 2: t::main
279
- at ./t.rs:7
259
+ 0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
260
+ at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
261
+ 1: std::sys_common::backtrace::_print
262
+ at /checkout/src/libstd/sys_common/backtrace.rs:71
263
+ 2: std::panicking::default_hook::{{closure}}
264
+ at /checkout/src/libstd/sys_common/backtrace.rs:60
265
+ at /checkout/src/libstd/panicking.rs:355
266
+ 3: std::panicking::default_hook
267
+ at /checkout/src/libstd/panicking.rs:371
268
+ 4: std::panicking::rust_panic_with_hook
269
+ at /checkout/src/libstd/panicking.rs:549
270
+ 5: std::panicking::begin_panic
271
+ 6: foo::main
272
+ 7: __rust_maybe_catch_panic
273
+ at /checkout/src/libpanic_unwind/lib.rs:98
274
+ 8: std::rt::lang_start
275
+ at /checkout/src/libstd/panicking.rs:433
276
+ at /checkout/src/libstd/panic.rs:361
277
+ at /checkout/src/libstd/rt.rs:57
278
+ 9: main
279
+ 10: __libc_start_main
280
+ 11: _start
280
281
```
281
282
282
283
By default. As the message says, you can set an environment variable to get the full
283
- backtrace.
284
+ backtrace. We may be able to do more cleanup in the future; see [this bug](https://github.com/rust-lang/rust/pull/40264) for more.
284
285
285
286
See the [detailed release notes][notes] for more.
286
287
287
288
#### Cargo features
288
289
289
- Other than the previous mentioned `build.rs` changes, Cargo has a few new improvements.
290
+ Other than the previously mentioned `build.rs` changes, Cargo has a few new improvements.
290
291
[`cargo check --all`](https://github.com/rust-lang/cargo/pull/3731) and
291
292
[`cargo run --package`](https://github.com/rust-lang/cargo/pull/3691) are two missing
292
293
flags that are now supported.
@@ -348,4 +349,4 @@ See the [detailed release notes][notes] for more.
348
349
### Contributors to 1.17.0
349
350
350
351
Many people came together to create Rust 1.17. We couldn't have done it without
351
- all of you. [ Thanks!] ( https://thanks.rust-lang.org/rust/1.17.0 )
352
+ all of you. [ Thanks!] ( https://thanks.rust-lang.org/rust/1.17.0 )
0 commit comments