Rust 1.73.0: Everything Revealed in 16 Minutes

preview_player
Показать описание

Links:

0:00 Intro
0:12 1. Cleaner panic messages
1:22 2. Better thread-local API
2:49 3. clippy::fn_null_check lint uplifted
3:11 4. noop_method_call now warns
3:29 5. async block macro support
3:53 6. unconditional_recursion lint detects recursive drops
4:18 7. New lint: coinductive_overlap_in_coherence
5:19 8. invalid_reference_casting lint now denies by default
5:50 9. Version info written to .comment section of executable
6:05 10. Official documentation of the v0 symbol mangling format
6:30 11. thiscall and thiscall-unwind FFI ABIs stabilized
6:52 12. Seven new platform targets
8:43 13. Arc wrapping File implements the Read, Write, and Seek traits
8:54 14. std::io::Empty now implements the write trait
9:07 15. std::process::ExitStatus now implements the Default trait
9:20 16. Stabilized APIs
10:21 17. Const Stabilized APIs
10:41 18. Print env vars in extra verbose mode
10:52 19. Crate versions on timing graph
11:15 20. New, colorful cargo help output
11:36 21. Twenty new clippy lints
11:44 Lint 1: impossible_comparisons
12:00 Lint 2: redundant comparisons
12:17 Lint 3: ignored_unit_patterns
12:30 Lint 4: readonly_write_lock
12:42 Lint 5: filter_map_bool_then
12:54 Lint 6: needless_return_with_question_mark
13:15 Lint 7: redundant_guards
13:28 Lint 8: redundant_locals
13:41 Lint 9: absolute_paths
13:51 Lint 10: error_impl_error
14:04 Lint 11: iter_skip_zero
14:15 Lint 12: string_lit_chars_any
14:28 Lint 13: four_forward_slashes
14:38 Lint 14: format_collect
14:56 Lint 15: needless_pass_by_ref_mut
15:11 Lint 16: manual_is_infinite
15:23 Lint 17: manual_is_finite
15:30 Lint 18: manual_partial_ord_and_ord_impl
15:42 Lint 19: read_line_without_trim
16:01 Lint 20: type_id_on_box
16:20 Outro

Рекомендации по теме
Комментарии
Автор

Great video Nathan as always. Keep up 😃👍

pwnwriter
Автор

Why does the colored output for cargo mentioned at 11:15 not work for me both in Linux Ubuntu and Windows terminals (for which I also enabled colored output in said terminals)? Am I missing something? running cargo with '--color always' also doesn't do anything for me

aturnine
Автор

fwiw there is no color output for cargo help, does not work, yet. I think it is comming

JohnPywtorak
Автор

this update had my 2-year-old pr in it!

CyborusYT
Автор

I don't feel that we needed to spend time building warnings for `////`...

dakunskye
Автор

Sorry, accidentally hit the dislike button.

bitflogger