| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-09-06 | Rollup merge of #64111 - Centril:ast-only-patkind-or, r=petrochenkov | Mazdak 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-05 | Fix test | Esteban Küber | -22/+25 | |
| 2019-09-05 | or-patterns: fix pprust-expr-roundtrip due to AST change. | Mazdak Farrokhzad | -3/+3 | |
| 2019-09-03 | use TokenStream rather than &[TokenTree] for built-in macros | Aleksey Kladov | -3/+3 | |
| That way, we don't loose the jointness info | ||||
| 2019-08-30 | Use `panic::set_hook` to print the ICE message | Jonas Schievink | -1/+1 | |
| 2019-08-20 | Deprecate 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-10 | resolve: Remove remaining special cases from built-in macros | Vadim Petrochenkov | -17/+12 | |
| 2019-08-03 | Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkov | Mazdak Farrokhzad | -2/+0 | |
| Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov | ||||
| 2019-07-31 | Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]` | Vadim Petrochenkov | -20/+0 | |
| 2019-07-31 | Replace AstBuilder with inherent methods | Mark Rousskov | -2/+0 | |
| 2019-07-28 | Remove lint annotations in specific crates that are already enforced by ↵ | Vadim Petrochenkov | -2/+1 | |
| rustbuild Remove some random unnecessary lint `allow`s | ||||
| 2019-07-27 | tests: Move run-pass tests without naming conflicts to ui | Vadim Petrochenkov | -0/+2214 | |
| 2019-07-26 | Introduce built-in macros through libcore | Vadim Petrochenkov | -8/+34 | |
| 2019-07-21 | normalize use of backticks in compiler messages for librustc_lint | Samy Kacimi | -1/+1 | |
| 2019-07-17 | normalize use of backticks in compiler messages for librustc/lint | Samy Kacimi | -12/+12 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-09 | normalize use of backticks in compiler messages for libsyntax/feature_gate | Samy Kacimi | -6/+6 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-07 | Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper | Mazdak 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-07 | syntax: Migrate built-in macros to the regular stability checking | Vadim Petrochenkov | -1/+3 | |
| 2019-07-07 | Link compiler plugins to rustc_driver | John Kåre Alsaker | -0/+6 | |
| 2019-06-24 | Turn internal lints into tool lints | flip1995 | -18/+24 | |
| 2019-06-24 | Only allow {declare,impl}_lint_pass macros for implementing LintPass | flip1995 | -1/+30 | |
| 2019-06-24 | Implement initernal lint LINT_PASS_IMPL_WITHOUT_MACRO | flip1995 | -0/+50 | |
| 2019-06-14 | Unify all uses of 'gcx and 'tcx. | Eduard-Mihai Burtescu | -43/+43 | |
| 2019-06-12 | rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`. | Eduard-Mihai Burtescu | -43/+43 | |
| 2019-05-13 | Remove 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-13 | Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions. | Nicholas Nethercote | -5/+6 | |
| 2019-04-28 | Update *.stderr files | flip1995 | -1/+101 | |
| 2019-04-28 | Add tests | flip1995 | -0/+99 | |
| 2019-04-22 | Remove double trailing newlines | varkor | -1/+0 | |
| 2019-04-22 | update tests for migrate mode by default | Matthew Jasper | -10/+12 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -2/+1 | |
| 2019-04-11 | Fix ui-fulldeps test | Esteban Küber | -6/+12 | |
| 2019-04-04 | Rollup merge of #59669 - Centril:lint-pass-macro, r=oli-obk | Mazdak Farrokhzad | -45/+9 | |
| Reduce repetition in librustc(_lint) wrt. impl LintPass by using macros r? @oli-obk cc @Zoxc | ||||
| 2019-04-03 | reduce repetition in librustc(_lint) wrt. impl LintPass | Mazdak Farrokhzad | -45/+9 | |
| 2019-04-03 | Update tests | flip1995 | -57/+38 | |
| 2019-04-03 | Fix rebase fallout | flip1995 | -59/+39 | |
| 2019-04-03 | Add tests for internal lints | flip1995 | -0/+345 | |
| 2019-03-14 | Moved issue tests to subdirs and normalised names. | Alexander Regueiro | -36/+35 | |
| 2019-03-11 | Update tests | Vadim Petrochenkov | -18/+18 | |
| 2019-03-05 | Add a test for HashStable stability | John Kåre Alsaker | -0/+63 | |
| 2019-02-27 | allow specifying attributes for tool lints | Andy Russell | -1/+5 | |
| 2019-01-26 | Auto merge of #57726 - Zoxc:combine-early-lints, r=estebank | bors | -0/+16 | |
| Combine all builtin early lints This also adds a -Z no-interleave-lints option to allow benchmarking lints. r? @estebank | ||||
| 2019-01-24 | Remove quote_*! macros and associated APIs | Mark Simulacrum | -424/+7 | |
| 2019-01-19 | Fix lints in tests | John Kåre Alsaker | -0/+16 | |
| 2018-12-26 | Store `Ident` rather than just `Name` in HIR types `Item` and `ForeignItem`. | Alexander Regueiro | -4/+5 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -380/+60 | |
| 2018-12-09 | Move some tests from ui-fulldeps to ui | Vadim Petrochenkov | -502/+0 | |
| 2018-12-09 | Move compile-fail-fulldeps tests to ui-fulldeps | Vadim Petrochenkov | -0/+1583 | |
| 2018-11-30 | tests: move all proc_macro tests from -fulldeps. | Eduard-Mihai Burtescu | -2912/+0 | |
| 2018-11-30 | tests: remove ignore-stage1 where possible in proc_macro tests. | Eduard-Mihai Burtescu | -40/+36 | |
