| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-07-17 | Auto merge of #34789 - jonathandturner:simplify_liberror, r=alexcrichton | bors | -1/+1 | |
| Simplify librustc_errors This is part 2 of the error crate refactor, starting with #34403. In this refactor, I focused on slimming down the error crate to fewer moving parts. As such, I've removed quite a few parts and replaced the with simpler, straight-line code. Specifically, this PR: * Removes BasicEmitter * Remove emit from emitter, leaving emit_struct * Renames emit_struct to emit * Removes CoreEmitter and focuses on a single Emitter * Implements the latest changes to error format RFC (#1644) * Removes (now-unused) code in emitter.rs and snippet.rs * Moves more tests to the UI tester, removing some duplicate tests in the process There is probably more that could be done with some additional refactoring, but this felt like it was getting to a good state. r? @alexcrichton cc: @Manishearth (as there may be breaking changes in stuff I removed/changed) | ||||
| 2016-07-14 | Implement latest rfc style using simpler rendering | Jonathan Turner | -1/+1 | |
| 2016-07-14 | Implement `macro_rules!` placeholders and the macro scope map | Jeffrey Seyfried | -0/+4 | |
| 2016-06-26 | Rollup merge of #34436 - jseyfried:no_block_expr, r=eddyb | Jeffrey Seyfried | -1/+1 | |
| To allow these braced macro invocation, this PR removes the optional expression from `ast::Block` and instead uses a `StmtKind::Expr` at the end of the statement list. Currently, braced macro invocations in blocks can expand into statements (and items) except when they are last in a block, in which case they can only expand into expressions. For example, ```rust macro_rules! make_stmt { () => { let x = 0; } } fn f() { make_stmt! {} //< This is OK... let x = 0; //< ... unless this line is commented out. } ``` Fixes #34418. | ||||
| 2016-06-26 | Rollup merge of #34339 - jseyfried:thin_vec, r=petrochenkov,Manishearth | Jeffrey Seyfried | -2/+2 | |
| Generalize and abstract `ThinAttributes` to `ThinVec<Attribute>`. | ||||
| 2016-06-23 | Refactor away duplicate method `ecx.block_all()` | Jeffrey Seyfried | -1/+1 | |
| 2016-06-23 | Remove field `expr` of `ast::Block` | Jeffrey Seyfried | -1/+1 | |
| 2016-06-23 | Move test helper functions to consolidated codemap testing | Jonathan Turner | -63/+0 | |
| 2016-06-23 | Actually consolidate the CodeMap tests | Jonathan Turner | -517/+0 | |
| 2016-06-23 | Consolidate codemap tests and fix more errors for travis | Jonathan Turner | -2/+586 | |
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -2/+2 | |
| 2016-06-19 | Generalize and abstract `ThinAttributes` | Jeffrey Seyfried | -2/+2 | |
| 2016-06-16 | Simplify gated cfg checking | Jeffrey Seyfried | -2/+0 | |
| 2016-06-11 | Strip `#[test]` nodes during `cfg` processing on non-test builds. | Jeffrey Seyfried | -14/+1 | |
| 2016-06-09 | Load macros from `extern crate`s during expansion. | Jeffrey Seyfried | -2/+4 | |
| 2016-05-28 | Auto merge of #33821 - sanxiyn:cfg-test, r=nikomatsakis | bors | -11/+3 | |
| Do not inject test harness for --cfg test Fix #33670. | ||||
| 2016-05-27 | Process `cfg_attr` attributes on non-optional expressions | Jeffrey Seyfried | -7/+2 | |
| 2016-05-26 | Implement `CfgFolder` directly instead of passing a closure to `strip_items` | Jeffrey Seyfried | -7/+15 | |
| 2016-05-24 | Remove unused field and argument | Seo Sanghyeon | -6/+2 | |
| 2016-05-24 | Do not inject test harness for --cfg test | Seo Sanghyeon | -5/+1 | |
| 2016-04-24 | syntax: Merge keywords and remaining special idents in one list | Vadim Petrochenkov | -6/+6 | |
| Simplify the macro used for generation of keywords Make `Keyword::ident` private | ||||
| 2016-04-24 | syntax: Make static/super/self/Self keywords + special ident cleanup | Vadim Petrochenkov | -5/+5 | |
| 2016-04-06 | syntax: dismantle ast_util. | Eduard Burtescu | -7/+9 | |
| 2016-02-12 | Use more autoderef in libsyntax | Jonas Schievink | -6/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Visibility variants | Oliver 'ker' Schneider | -9/+9 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Mutablity variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Item_ variants | Oliver 'ker' Schneider | -10/+10 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Ty_ variants | Oliver Schneider | -4/+4 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Expr_ variants | Oliver Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob import/export syntax::abi enum variants | Oliver Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't glob import ast::FunctionRetTy variants | Oliver Schneider | -4/+4 | |
| 2015-12-18 | Rollup merge of #30420 - petrochenkov:owned2, r=nrc | Manish Goregaokar | -1/+0 | |
| Part of https://github.com/rust-lang/rust/pull/30095 not causing mysterious segfaults. r? @nrc | ||||
| 2015-12-18 | Deprecate name `OwnedSlice` and don't use it | Vadim Petrochenkov | -1/+0 | |
| 2015-12-17 | move error handling from libsyntax/diagnostics.rs to libsyntax/errors/* | Nick Cameron | -6/+6 | |
| Also split out emitters into their own module. | ||||
| 2015-12-14 | [breaking-change] move ast_util functions to methods | faineance | -1/+1 | |
| 2015-11-26 | Some TLC for the MoveMap trait | Marvin Löbel | -1/+2 | |
| 2015-11-26 | Add syntax support for attributes on expressions and all syntax | Marvin Löbel | -3/+6 | |
| nodes in statement position. Extended #[cfg] folder to allow removal of statements, and of expressions in optional positions like expression lists and trailing block expressions. Extended lint checker to recognize lint levels on expressions and locals. | ||||
| 2015-11-17 | Fix match_ref_pats flagged by Clippy | Seo Sanghyeon | -2/+2 | |
| 2015-08-28 | Rollup merge of #28033 - Manishearth:compilerexpn, r=eddyb | Manish Goregaokar | -5/+3 | |
| We were using them for every expansion, instead of using `Name`. Also converted `CompilerExpansion` into an enum so its nicer to use and takes up less space. Will profile later, but this should be a small improvement in memory usage. r? @eddyb | ||||
| 2015-08-28 | Move ExpnInfo to Name | Manish Goregaokar | -3/+3 | |
| 2015-08-27 | Enumify CompilerExpansion in ExpnInfo | Manish Goregaokar | -4/+2 | |
| 2015-08-24 | Remove #[start] as well as #[main] in --test | William Throwe | -9/+6 | |
| Fixes #11766. | ||||
| 2015-08-24 | Move main removal to its own pass in --test mode | William Throwe | -39/+56 | |
| This handles the case where the #[main] function is buried deeper in the ast than we search for #[test] functions. I'm not sure why one would want to do that, but since it works in standard compilation it should also work for tests. | ||||
| 2015-08-24 | Mark main-like functions allow(dead_code) in tests | William Throwe | -15/+34 | |
| Fixes #12327. | ||||
| 2015-08-17 | feature gate `cfg(target_feature)`. | Huon Wilson | -1/+3 | |
| This is theoretically a breaking change, but GitHub search turns up no uses of it, and most non-built-in cfg's are passed via cargo features, which look like `feature = "..."`, and hence can't overlap. | ||||
| 2015-08-04 | syntax: Don't assume `std` exists for tests | Alex Crichton | -14/+9 | |
| This commit removes the injection of `std::env::args()` from `--test` expanded code, relying on the test runner itself to call this funciton. This is more hygienic because we can't assume that `std` exists at the top layer all the time, and it meaks the injected test module entirely self contained. | ||||
| 2015-08-03 | syntax: Implement #![no_core] | Alex Crichton | -0/+1 | |
| This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The `#![no_std]` attribute now injects `extern crate core` at the top of the crate as well as the libcore prelude into all modules (in the same manner as the standard library's prelude). The `#![no_core]` attribute disables both std and core injection. [rfc]: https://github.com/rust-lang/rfcs/pull/1184 | ||||
| 2015-06-10 | Removed many pointless calls to *iter() and iter_mut() | Joshua Landau | -1/+1 | |
| 2015-05-21 | syntax: parse `const fn` for free functions and inherent methods. | Eduard Burtescu | -4/+6 | |
| 2015-05-14 | syntax: replace sess.span_diagnostic.cm with sess.codemap(). | Eduard Burtescu | -1/+1 | |
