| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2015-11-27 | Auto merge of #30064 - fhartwig:macro-suggestions, r=sanxiyn | bors | -0/+88 | |
| Fixes #13677 This does the same sort of suggestion for misspelt macros that we already do for misspelt identifiers. Example. Compiling this program: ```rust macro_rules! foo { ($e:expr) => ( $e ) } fn main() { fob!("hello!"); } ``` gives the following error message: ``` /Users/mcp/temp/test.rs:7:5: 7:8 error: macro undefined: 'fob!' /Users/mcp/temp/test.rs:7 fob!("hello!"); ^~~ /Users/mcp/temp/test.rs:7:5: 7:8 help: did you mean `foo`? /Users/mcp/temp/test.rs:7 fob!("hello!"); ``` I had to move the levenshtein distance function into libsyntax for this. Maybe this should live somewhere else (some utility crate?), but I couldn't find a crate to put it in that is imported by libsyntax and the other rustc crates. | ||||
| 2015-11-27 | Introduce max_suggestion_distance function to avoid duplicating the heuristic | Florian Hartwig | -4/+10 | |
| 2015-11-26 | Added stmt_expr_attribute feature gate | Marvin Löbel | -63/+291 | |
| 2015-11-26 | Some TLC for the MoveMap trait | Marvin Löbel | -56/+120 | |
| 2015-11-26 | Fixed macro expander not folding attributes (though I'm not sure if that is ↵ | Marvin Löbel | -16/+18 | |
| actually neccessary) | ||||
| 2015-11-26 | Moved and refactored ThinAttributes | Marvin Löbel | -130/+132 | |
| 2015-11-26 | Add syntax support for attributes on expressions and all syntax | Marvin Löbel | -312/+845 | |
| 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-26 | Fix spans for macros | Kevin Yeh | -3/+6 | |
| 2015-11-26 | Add '!' to macro name suggestion, use fileline_help instead of span_help | Florian Hartwig | -1/+1 | |
| 2015-11-26 | Auto merge of #30015 - petrochenkov:staged, r=brson | bors | -3/+4 | |
| Closes https://github.com/rust-lang/rust/issues/30008 `#[stable]`, `#[unstable]` and `#[rustc_deprecated]` are now guarded by `#[feature(staged_api)]` r? @brson | ||||
| 2015-11-26 | Add suggestion of similar macro names to `macro undefined` error message | Florian Hartwig | -0/+82 | |
| 2015-11-25 | Fix "Cannot fill in a NT" ICE | Jonas Schievink | -12/+23 | |
| 2015-11-25 | Remove all uses of `#[staged_api]` | Vadim Petrochenkov | -1/+1 | |
| 2015-11-25 | Remove `#[staged_api]` | Vadim Petrochenkov | -2/+3 | |
| 2015-11-25 | Auto merge of #30011 - jonas-schievink:macro-context, r=nrc | bors | -10/+10 | |
| Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`. | ||||
| 2015-11-24 | Remove "this" | Jonas Schievink | -1/+1 | |
| 2015-11-24 | Rollup merge of #30004 - michaelwoerister:primitive-ty-to-str, r=alexcrichton | Steve Klabnik | -29/+23 | |
| Good candidate for a rollup, this one. | ||||
| 2015-11-24 | Auto merge of #30000 - Manishearth:unreachable-call, r=nrc | bors | -4/+4 | |
| Fixes #1889 | ||||
| 2015-11-24 | Fix unreachable code in libsyntax | Manish Goregaokar | -4/+4 | |
| 2015-11-23 | Auto merge of #29952 - petrochenkov:depr, r=brson | bors | -8/+10 | |
| Part of https://github.com/rust-lang/rust/issues/29935 The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things. | ||||
| 2015-11-23 | Print the macro context name on incomplete parse | Jonas Schievink | -10/+10 | |
| Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`. | ||||
| 2015-11-23 | Avoid some code duplication around getting names of numeric types. | Michael Woerister | -29/+23 | |
| 2015-11-22 | Look up macro names as well when suggesting replacements for function ↵ | Manish Goregaokar | -18/+28 | |
| resolve errors fixes #5780 | ||||
| 2015-11-20 | Rename #[deprecated] to #[rustc_deprecated] | Vadim Petrochenkov | -8/+10 | |
| 2015-11-20 | add feature gate `const_indexing` | Oliver Schneider | -0/+6 | |
| tracking issue is #29947 | ||||
| 2015-11-18 | Rework the `IdVisitor` so that it only visits item contents (and doesn't | Niko Matsakis | -18/+10 | |
| visit nested items). This is what all clients wanted anyhow. | ||||
| 2015-11-18 | Add some unicode aliases for ". | Huon Wilson | -0/+17 | |
| 2015-11-17 | Auto merge of #29887 - sanxiyn:match-ref-pats, r=sfackler | bors | -57/+57 | |
| 2015-11-17 | Auto merge of #29766 - oli-obk:impl_item, r=nikomatsakis | bors | -38/+37 | |
| [breaking change] I'm not sure if those renames are ok. [TokenType::Tt* to TokenType::*](https://github.com/rust-lang/rust/pull/29582) was obvious, but for all those Item-enums it's less obvious to me what the right way forward is due to the underscore. | ||||
| 2015-11-17 | Fix match_ref_pats flagged by Clippy | Seo Sanghyeon | -57/+57 | |
| 2015-11-17 | Auto merge of #29837 - Wafflespeanut:unicode_chars, r=Manishearth | bors | -1/+193 | |
| fixes #25957 | ||||
| 2015-11-17 | Detect confusing unicode characters and show the alternative | Ravi Shankar | -1/+193 | |
| 2015-11-16 | rename `ast::ImplItem_::*ImplItem` to `ast::ImplItemKind::*` | Oliver Schneider | -38/+37 | |
| 2015-11-16 | Auto merge of #29828 - sanxiyn:check-macro, r=nrc | bors | -49/+63 | |
| Fix #27409. | ||||
| 2015-11-14 | Check macro definition and do not expand invalid macros | Seo Sanghyeon | -3/+22 | |
| 2015-11-14 | Reindent code | Seo Sanghyeon | -22/+22 | |
| 2015-11-14 | Store TokenTree in MacroRulesMacroExpander | Seo Sanghyeon | -28/+23 | |
| 2015-11-13 | Move the panicking parse functions out of the parser | Kyle Mayes | -50/+52 | |
| Since these functions are only used by the AST quoting syntax extensions, they should be there instead of in the parser. | ||||
| 2015-11-13 | Auto merge of #29761 - eefriedman:rename-nopanic, r=sanxiyn | bors | -87/+87 | |
| Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable. | ||||
| 2015-11-12 | Auto merge of #29807 - nrc:op_span, r=brson | bors | -1/+1 | |
| cc @nagisa | ||||
| 2015-11-13 | Fix a bad span for binops | Nick Cameron | -1/+1 | |
| 2015-11-12 | Auto merge of #29780 - KyleMayes:quote-ext, r=nrc | bors | -1/+86 | |
| This is my first code contribution to Rust, so I'm sure there are some issues with the changes I've made. I've added the `quote_arg!`, `quote_block!`, `quote_path!`, and `quote_meta_item!` quasiquoting macros. From my experience trying to build AST in compiler plugins, I would like to be able to build any AST piece with a quasiquoting macro (e.g., `quote_struct_field!` or `quote_variant!`) and then use those AST pieces in other quasiquoting macros, but this pull request just adds some of the low-hanging fruit. I'm not sure if these additions are desirable, and I'm sure these macros can be implemented in an external crate if not. | ||||
| 2015-11-12 | Auto merge of #29544 - Ryman:reduce_doc_warnings, r=steveklabnik | bors | -17/+24 | |
| Did this alphabetically, so I didn't see [how `std` was doing things](https://dxr.mozilla.org/rust/source/src/libstd/lib.rs#215) till I was nearly finished. If you prefer to add crate-level-whitelists like std instead of test-level, I can rebase with that strategy. A number of these commits can probably be dropped as the crates don't have much to test, and are deprecated. Let me know which if any to drop! (can also squash after review if desired) r? @steveklabnik | ||||
| 2015-11-12 | libsyntax: deny warnings in doctests | Kevin Butler | -17/+24 | |
| 2015-11-12 | Add -Zinput-stats | Nick Cameron | -1/+174 | |
| Emits loc, and node count - before and after expansion. E.g., ``` rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore Lines of code: 32060 Pre-expansion node count: 120205 Post-expansion node count: 482749 ``` | ||||
| 2015-11-11 | libsyntax: Add more quasiquoting macros | Kyle Mayes | -1/+86 | |
| 2015-11-11 | Auto merge of #29744 - sanxiyn:modernize, r=nrc | bors | -30/+30 | |
| 2015-11-11 | Auto merge of #29727 - alexcrichton:debug-unused-result, r=sfackler | bors | -4/+21 | |
| This should help avoid triggering the unused_results lint which can frequently be turned on. Closes #29710 | ||||
| 2015-11-10 | Rename _nopanic methods to remove the suffix. | Eli Friedman | -87/+87 | |
| Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable. | ||||
| 2015-11-10 | Auto merge of #29725 - aturon:lang-features, r=huonw | bors | -45/+59 | |
| This commit adds issue numbers to the vast majority of active feature gates. The few that are left without issues are rustc/runtime-internal features that are essentially private APIs. Closes #28244 r? @huonw | ||||
