Rust: #![allow(unknown_lints)]λŠ” nightly-2017-08-11-x86_64-unknown-linux-gnu 이후 λ™μΌν•œ μˆ˜μ€€μ— μ•Œ 수 μ—†λŠ” λ¦°νŠΈκ°€ μžˆλŠ” 경우 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2017λ…„ 08μ›” 11일  Β·  3μ½”λ©˜νŠΈ  Β·  좜처: rust-lang/rust

λ‹€μŒ μŠ€λ‹ˆνŽ«μ€ nightly-2017-08-11-x86_64-unknown-linux-gnu 전에 잘 μž‘λ™ν•©λ‹ˆλ‹€.

#![allow(unknown_lints)]
#![allow(clippy)]

ν•˜μ§€λ§Œ 이제 κ²½κ³ λ₯Ό λ³΄κ³ ν•©λ‹ˆλ‹€.

warning: unknown lint: `clippy`
 --> /home/poc/src/../a/b.rs:2:10
  |
2 | #![allow(clippy)]
  |          ^^^^^^
  |
  = note: #[warn(unknown_lints)] on by default

μž¬ν˜„ 단계:

  1. https://github.com/overvenus/poc.git 볡제
  2. Rustup λ¬΄μ‹œ μ„€μ • nightly-2017-08-11
  3. ν™”λ¬Ό ν…ŒμŠ€νŠΈ

이것은 μ˜ˆμƒλœ λ™μž‘μž…λ‹ˆκΉŒ, μ•„λ‹ˆλ©΄ λ²„κ·Έμž…λ‹ˆκΉŒ? κ°μ‚¬ν•©λ‹ˆλ‹€!

C-bug T-compiler regression-from-stable-to-nightly

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

https://github.com/rust-lang/rust/pull/43841 μ—μ„œ 이에 λŒ€ν•œ PR을 μ—΄μ—ˆμŠ΅λ‹ˆλ‹€.

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

cc @alexcrichton -- μ•„λ§ˆλ„ μƒˆλ‘œμš΄ 린트 κ΅¬ν˜„κ³Ό 관련이 μžˆμ„ κ²ƒμž…λ‹ˆλ‹€.

예, 이것은 https://github.com/rust-lang/rust/pull/43522 에 μ˜ν•΄ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ 이 μ½”λ“œ 쀄에 μžˆμŠ΅λ‹ˆλ‹€ . allow_lints 이 λ²”μœ„μ— μžˆλŠ”μ§€ μ—¬λΆ€λ₯Ό ν™•μΈν•˜λŠ” 것은 λ¦°νŠΈλ˜λŠ” ν˜„μž¬ 속성 집합을 ν™•μΈν•˜λŠ” 것이 μ•„λ‹™λ‹ˆλ‹€.

예λ₯Ό λ“€μ–΄ λ‹€μŒμ€ κ²½κ³ ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

#![allow(unknown_lints)]

#[allow(clippy)]
fn main() {}

κ·ΈλŸ¬λ‚˜ 이것은 λ‹€μŒκ³Ό 같이 κ²½κ³ ν•©λ‹ˆλ‹€.

#![allow(unknown_lints)]
#![allow(clippy)]

fn main() {}

(당신이 눈치 μ±˜μ„ λ•Œ)

μˆ˜μ • 사항은 둜컬 λ³€μˆ˜ specs κ°€ μˆ˜μ§‘λœ μ΅œμ‹  린트 속성 집합이 μžˆλŠ” κ³„μ •μœΌλ‘œ κ°€μ Έμ˜€λŠ” κ²ƒμž…λ‹ˆλ‹€.

https://github.com/rust-lang/rust/pull/43841 μ—μ„œ 이에 λŒ€ν•œ PR을 μ—΄μ—ˆμŠ΅λ‹ˆλ‹€.

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