about summary refs log tree commit diff
path: root/src/test/ui-fulldeps
AgeCommit message (Collapse)AuthorLines
2019-09-06Rollup merge of #64111 - Centril:ast-only-patkind-or, r=petrochenkovMazdak Farrokhzad-3/+3
or-patterns: Uniformly use `PatKind::Or` in AST & Fix/Cleanup resolve Following up on work in https://github.com/rust-lang/rust/pull/63693 and https://github.com/rust-lang/rust/pull/61708, in this PR we: - Uniformly use `PatKind::Or(...)` in AST: - Change `ast::Arm.pats: Vec<P<Pat>>` => `ast::Arm.pat: P<Pat>` - Change `ast::ExprKind::Let.0: Vec<P<Pat>>` => `ast::ExprKind::Let.0: P<Pat>` - Adjust `librustc_resolve/late.rs` to correctly handle or-patterns at any level of nesting as a result. In particular, the already-bound check which rejects e.g. `let (a, a);` now accounts for or-patterns. The consistency checking (ensures no missing bindings and binding mode consistency) also now accounts for or-patterns. In the process, a bug was found in the current compiler which allowed: ```rust enum E<T> { A(T, T), B(T) } use E::*; fn foo() { match A(0, 1) { B(mut a) | A(mut a, mut a) => {} } } ``` The new algorithms took a few iterations to get right. I tried several clever schemes but ultimately a version based on a stack of hashsets and recording product/sum contexts was chosen since it is more clearly correct. - Clean up `librustc_resolve/late.rs` by, among other things, using a new `with_rib` function to better ensure stack dicipline. - Do not push the change in AST to HIR for now to avoid doing too much in this PR. To cope with this, we introduce a temporary hack in `rustc::hir::lowering` (clearly marked in the diff). cc https://github.com/rust-lang/rust/issues/54883 cc @dlrobertson @matthewjasper r? @petrochenkov
2019-09-05Fix testEsteban Küber-22/+25
2019-09-05or-patterns: fix pprust-expr-roundtrip due to AST change.Mazdak Farrokhzad-3/+3
2019-09-03use TokenStream rather than &[TokenTree] for built-in macrosAleksey Kladov-3/+3
That way, we don't loose the jointness info
2019-08-30Use `panic::set_hook` to print the ICE messageJonas Schievink-1/+1
2019-08-20Deprecate using rustc_plugin without the rustc_driver dylib.Simon Sapin-27/+13
CC https://github.com/rust-lang/rust/pull/59800 https://github.com/rust-lang/rust/commit/7198687bb2df13a3298ef1e8f594753073d6b9e8 Fix https://github.com/rust-lang/rust/issues/62717
2019-08-10resolve: Remove remaining special cases from built-in macrosVadim Petrochenkov-17/+12
2019-08-03Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkovMazdak Farrokhzad-2/+0
Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov
2019-07-31Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]`Vadim Petrochenkov-20/+0
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-2/+0
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-2/+1
rustbuild Remove some random unnecessary lint `allow`s
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+2214
2019-07-26Introduce built-in macros through libcoreVadim Petrochenkov-8/+34
2019-07-21normalize use of backticks in compiler messages for librustc_lintSamy Kacimi-1/+1
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-12/+12
https://github.com/rust-lang/rust/issues/60532
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-6/+6
https://github.com/rust-lang/rust/issues/60532
2019-07-07Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasperMazdak Farrokhzad-1/+3
Support stability and deprecation checking for all macros RELNOTES: Deprecation attributes on macros now have effect. Fixes https://github.com/rust-lang/rust/issues/34079 Fixes https://github.com/rust-lang/rust/issues/49912 Unblocks https://github.com/rust-lang/rust/pull/62086 Unblocks https://github.com/rust-lang/rust/pull/61000
2019-07-07syntax: Migrate built-in macros to the regular stability checkingVadim Petrochenkov-1/+3
2019-07-07Link compiler plugins to rustc_driverJohn Kåre Alsaker-0/+6
2019-06-24Turn internal lints into tool lintsflip1995-18/+24
2019-06-24Only allow {declare,impl}_lint_pass macros for implementing LintPassflip1995-1/+30
2019-06-24Implement initernal lint LINT_PASS_IMPL_WITHOUT_MACROflip1995-0/+50
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-43/+43
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-43/+43
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-3/+3
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-5/+6
2019-04-28Update *.stderr filesflip1995-1/+101
2019-04-28Add testsflip1995-0/+99
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-10/+12
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-2/+1
2019-04-11Fix ui-fulldeps testEsteban Küber-6/+12
2019-04-04Rollup merge of #59669 - Centril:lint-pass-macro, r=oli-obkMazdak Farrokhzad-45/+9
Reduce repetition in librustc(_lint) wrt. impl LintPass by using macros r? @oli-obk cc @Zoxc
2019-04-03reduce repetition in librustc(_lint) wrt. impl LintPassMazdak Farrokhzad-45/+9
2019-04-03Update testsflip1995-57/+38
2019-04-03Fix rebase falloutflip1995-59/+39
2019-04-03Add tests for internal lintsflip1995-0/+345
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-36/+35
2019-03-11Update testsVadim Petrochenkov-18/+18
2019-03-05Add a test for HashStable stabilityJohn Kåre Alsaker-0/+63
2019-02-27allow specifying attributes for tool lintsAndy Russell-1/+5
2019-01-26Auto merge of #57726 - Zoxc:combine-early-lints, r=estebankbors-0/+16
Combine all builtin early lints This also adds a -Z no-interleave-lints option to allow benchmarking lints. r? @estebank
2019-01-24Remove quote_*! macros and associated APIsMark Simulacrum-424/+7
2019-01-19Fix lints in testsJohn Kåre Alsaker-0/+16
2018-12-26Store `Ident` rather than just `Name` in HIR types `Item` and `ForeignItem`.Alexander Regueiro-4/+5
2018-12-25Remove licensesMark Rousskov-380/+60
2018-12-09Move some tests from ui-fulldeps to uiVadim Petrochenkov-502/+0
2018-12-09Move compile-fail-fulldeps tests to ui-fulldepsVadim Petrochenkov-0/+1583
2018-11-30tests: move all proc_macro tests from -fulldeps.Eduard-Mihai Burtescu-2912/+0
2018-11-30tests: remove ignore-stage1 where possible in proc_macro tests.Eduard-Mihai Burtescu-40/+36