본문으로 건너뛰기

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 univariant enums. 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} and Result::{expect, expect_err, unwrap, unwrap_err} now produce panic messages pointing to the location where they were called, rather than core's internals.
  • Libraries
    • iter::Empty<T> now implements Send and Sync for any T.
    • Pin::{map_unchecked, map_unchecked_mut} no longer require the return type to implement Sized.
    • io::Cursor now derives PartialEq and Eq.
    • 그 외 2개 항목은 원문 참고
  • Stabilized APIs
    • CondVar::wait_while
    • CondVar::wait_timeout_while
    • DebugMap::key
    • 그 외 5개 항목은 원문 참고
  • Cargo
    • You no longer need to include extern crate proc_macro; to be able to use proc_macro; in the 2018 edition.
  • Compatibility Notes
    • Error::description has been deprecated, and its use will now produce a warning. It's recommended to use Display/to_string instead.

Sources