rust/src/test/ui/rfc-2497-if-let-chains
Dylan DPC 759204ffc4
Rollup merge of #82217 - m-ou-se:edition-prelude, r=nikomatsakis
Edition-specific preludes

This changes `{std,core}::prelude` to export edition-specific preludes under `rust_2015`, `rust_2018` and `rust_2021`. (As suggested in https://github.com/rust-lang/rust/issues/51418#issuecomment-395630382.) For now they all just re-export `v1::*`, but this allows us to add things to the 2021edition prelude soon.

This also changes the compiler to make the automatically injected prelude import dependent on the selected edition.

cc `@rust-lang/libs` `@djc`
2021-03-10 17:55:38 +01:00
..
ast-pretty-check.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
ast-pretty-check.stdout Update test output for edition preludes. 2021-02-25 13:43:11 +01:00
disallowed-positions.rs Suggest expressions that look like const generic arguments should be enclosed in brackets 2020-10-26 21:54:45 +00:00
disallowed-positions.stderr Account for `if (let pat = expr) {}` 2021-03-07 13:49:36 -08:00
feature-gate.rs Account for `if (let pat = expr) {}` 2021-03-07 13:49:36 -08:00
feature-gate.stderr Remove notes, increase S/N ratio 2021-03-07 15:03:46 -08:00
protect-precedences.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
protect-precedences.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00