# Announcing Rust 1.66.0 | Rust Blog

> Clean Markdown view of GeekNews topic #8039. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8039](https://news.hada.io/topic?id=8039)
- GeekNews Markdown: [https://news.hada.io/topic/8039.md](https://news.hada.io/topic/8039.md)
- Type: news
- Author: [ragingwind](https://news.hada.io/@ragingwind)
- Published: 2022-12-16T05:15:16+09:00
- Updated: 2022-12-16T05:15:16+09:00
- Original source: [blog.rust-lang.org](https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html)
- Points: 5
- Comments: 0

## Topic Body

- Explicit discriminants on enums with fields: 기존 에는 enum 에는 다양한 필드가 없는 경우에만 Primitive representation`[repr()]` 를 사용할 수 있었다면 현재 버전에서는 상관없이 필드가 동일한 레이아웃을 가지도록 가능하고 동시에 명시적 값을 설정하거나 기본값으로 배치됩니다.  
  
```rust  
    #[repr(u8)]  
    enum Bar {  
        A,  
        B,  
        C = 42,  
    }  
```  
  
- core::hint::black_box: `black_box` 를 사용하여 컴파일시 특정 코드들의 최적화를 방지합니다  
- cargo remove: (드디어!) `cargo remove` 로 디펜던시들을 삭제 할 수 있습니다.

## Comments



_No public comments on this page._
