본문으로 건너뛰기

Rust 1.31.0 Release Notes

// RUST-RELEASE-NOTES — official release note timeline

Rust 1.31.0 공식 release note를 기준으로, 섹션별 앞쪽 항목을 발췌해 변화 흐름을 빠르게 훑을 수 있게 정리했습니다.

범위

  • 대상 릴리즈: Rust 1.31.0
  • 포함된 릴리즈 수: 1개
  • 생성 경로: scripts/bloggen.py rust-release-docs
  • 생성일: 2026-07-08
  • 원문: rust-lang/rust RELEASES.md

읽는 법

  • 이 문서는 해당 Rust 릴리즈 하나만 다룹니다.
  • 섹션별 최대 3개 앞쪽 항목만 발췌했으므로, 세부 API 목록은 원문 링크를 확인하세요.
  • Compatibility Notes는 업그레이드 전 회귀 위험을 확인하는 체크리스트로 보면 됩니다.

타임라인

Rust 1.31.0 (2018-12-06)

  • Language
    • 🎉 This version marks the release of the 2018 edition of Rust. 🎉
    • New lifetime elision rules now allow for eliding lifetimes in functions and impl headers. E.g. impl<'a> Reader for BufReader<'a> {} can now be impl Reader for BufReader<'_> {}. Lifetimes are still required to be defined in structs.
    • You can now define and use const functions. These are currently a strict minimal subset of the const fn RFC. Refer to the language reference for what exactly is available.
    • 그 외 3개 항목은 원문 참고
  • Compiler
    • Updated musl to 1.1.20
  • Libraries
    • You can now convert num::NonZero* types to their raw equivalents using the From trait. E.g. u8 now implements From<NonZeroU8>.
    • You can now convert a &Option<T&gt; into Option&lt;&T> and &mut Option&lt;T&gt; into Option&lt;&mut T&gt; using the From trait.
    • You can now multiply (*) a time::Duration by a u32.
  • Stabilized APIs
    • slice::align_to
    • slice::align_to_mut
    • slice::chunks_exact
    • 그 외 6개 항목은 원문 참고
  • Cargo
    • Cargo will now download crates in parallel using HTTP/2.
    • You can now rename packages in your Cargo.toml We have a guide on how to use the package key in your dependencies.

Sources