Rust: μœ ν˜•κ³Ό μΈν„°νŽ˜μ΄μŠ€κ°€ λͺ¨λ‘ λ³„μΉ­μ΄μ§€λ§Œ RustλŠ” "곡개 μΈν„°νŽ˜μ΄μŠ€μ˜ 개인 μœ ν˜•"에 λŒ€ν•΄ λΆˆν‰ν•©λ‹ˆλ‹€.

에 λ§Œλ“  2016λ…„ 06μ›” 16일  Β·  1논평  Β·  좜처: rust-lang/rust

use core::nonzero::NonZero;
use std::os::raw::c_void;

type Foo = NonZero<*const c_void>;

// warning: private type in public interface
pub type Bar = Foo;
// warning: private type in public interface
pub type Baz = Foo;

pub use ing NonZero 및 c_void 도 μ‹œλ„ν–ˆμ§€λ§Œ 도움이 λ˜μ§€ μ•Šμ•˜μœΌλ―€λ‘œ μœ ν˜• μžμ²΄κ°€ λ¬Έμ œκ°€ μ•„λ‹™λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄ 였λ₯˜ λ©”μ‹œμ§€κ°€ 별칭을 μΈμ‹ν•˜μ§€ λͺ»ν•  λ•Œ Rustκ°€ 이 λ™μž‘μ— λŒ€ν•΄ λΆˆν‰ν•˜λŠ” 것은 μ΄μƒν•˜κ²Œ λ³΄μž…λ‹ˆλ‹€. κ·Έλ ‡κ²Œ λ˜λ”λΌλ„ 개인 별칭을 μ •μ˜λœ 곡용 μœ ν˜•μœΌλ‘œ ν™•μΈν•˜λŠ” 것은 μ‚¬μ†Œν•œ μΌμ΄λ―€λ‘œ 이λ₯Ό ν—ˆμš©ν•˜μ§€ μ•ŠλŠ” μœ ν‹Έλ¦¬ν‹°λ₯Ό λ³Ό 수 μ—†μŠ΅λ‹ˆλ‹€.

λ‚΄ rustc --version --verbose :

rustc 1.11.0-nightly (6b4511755 2016-06-14)
binary: rustc
commit-hash: 6b4511755cfe63a46f2db8c72145e07f94911c08
commit-date: 2016-06-14
host: x86_64-unknown-linux-gnu
release: 1.11.0-nightly

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

이에 λŒ€ν•œ 문제(https://github.com/rust-lang/rust/issues/30503)와 이λ₯Ό μˆ˜μ •ν•˜λŠ” PR(https://github.com/rust-lang/rust/pull/34193)이 μžˆμŠ΅λ‹ˆλ‹€.
이것은 λ°˜λ…„ 이상 전에 κ΅¬ν˜„λ  수 μžˆμ—ˆμ§€λ§Œ μš°μ„  μˆœμœ„κ°€ μ§€μ •λ˜μ§€ μ•Šμ€ 보쑰 κΈ°λŠ₯에 λŒ€ν•œ μ˜μ‚¬ 결정이 λ•Œλ•Œλ‘œ 맀우 λŠλ¦½λ‹ˆλ‹€.

>λͺ¨λ“  λŒ“κΈ€

이에 λŒ€ν•œ 문제(https://github.com/rust-lang/rust/issues/30503)와 이λ₯Ό μˆ˜μ •ν•˜λŠ” PR(https://github.com/rust-lang/rust/pull/34193)이 μžˆμŠ΅λ‹ˆλ‹€.
이것은 λ°˜λ…„ 이상 전에 κ΅¬ν˜„λ  수 μžˆμ—ˆμ§€λ§Œ μš°μ„  μˆœμœ„κ°€ μ§€μ •λ˜μ§€ μ•Šμ€ 보쑰 κΈ°λŠ₯에 λŒ€ν•œ μ˜μ‚¬ 결정이 λ•Œλ•Œλ‘œ 맀우 λŠλ¦½λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰