Rust 1.42.0 Release Notes
// RUST-RELEASE-NOTES— official release note timeline
Rust 1.42.0 공식 release note를 기준으로, 섹션별 앞쪽 항목을 발췌해 변화 흐름을 빠르게 훑을 수 있게 정리했습니다.
범위
- 대상 릴리즈: Rust 1.42.0
- 포함된 릴리즈 수: 1개
- 생성 경로:
scripts/bloggen.py rust-release-docs - 생성일:
2026-07-08 - 원문: rust-lang/rust RELEASES.md
읽는 법
- 이 문서는 해당 Rust 릴리즈 하나만 다룹니다.
- 섹션별 최대 3개 앞쪽 항목만 발췌했으므로, 세부 API 목록은 원문 링크를 확인하세요.
- Compatibility Notes는 업그레이드 전 회귀 위험을 확인하는 체크리스트로 보면 됩니다.
타임라인
Rust 1.42.0 (2020-03-12)
- Language
- You can now use the slice pattern syntax with subslices. e.g. fn foo(words: &[&str]) { match words { ["Hello", "World", "!", ..] => println!("Hello World!"), ["Foo", "Bar", ..] => println!("Baz"), rest => println!("{:?}", rest), } }
- You can now use
#[repr(transparent)]on univariantenums. Meaning that you can create an enum that has the exact layout and ABI of the type it contains. - You can now use outer attribute procedural macros on inline modules.
- 그 외 1개 항목은 원문 참고
- Compiler
- Added tier 2* support for
armv7a-none-eabi. - Added tier 2 support for
riscv64gc-unknown-linux-gnu. Option::{expect,unwrap}andResult::{expect, expect_err, unwrap, unwrap_err}now produce panic messages pointing to the location where they were called, rather thancore's internals.
- Added tier 2* support for
- Libraries
iter::Empty<T>now implementsSendandSyncfor anyT.Pin::{map_unchecked, map_unchecked_mut}no longer require the return type to implementSized.io::Cursornow derivesPartialEqandEq.- 그 외 2개 항목은 원문 참고
- Stabilized APIs
CondVar::wait_whileCondVar::wait_timeout_whileDebugMap::key- 그 외 5개 항목은 원문 참고
- Cargo
- You no longer need to include
extern crate proc_macro;to be able touse proc_macro;in the2018edition.
- You no longer need to include
- Compatibility Notes
Error::descriptionhas been deprecated, and its use will now produce a warning. It's recommended to useDisplay/to_stringinstead.
Sources
- Rust release notes — official rust-lang/rust release notes.