| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-10-28 | Auto merge of #55192 - cramertj:nested-mod, r=petrochenkov | bors | -0/+11 | |
| Fix ordering of nested modules in non-mod.rs mods Flatten relative offset into directory path before adding inline (mod x { ... }) module names to the current directory path. Fix #55094 | ||||
| 2018-10-27 | feature-gate lint reasons | Zack M. Davis | -0/+3 | |
| We take stability seriously, so we shy away from making even seemingly "trivial" features insta-stable. | ||||
| 2018-10-26 | Auto merge of #54929 - csmoe:cfg_lint, r=petrochenkov | bors | -56/+165 | |
| Suggest to remove prefix `b` in cfg attribute lint string Closes #54926 r? @estebank | ||||
| 2018-10-26 | Rollup merge of #55358 - sinkuu:redundant_clone2, r=estebank | kennytm | -5/+4 | |
| Remove redundant clone (2) | ||||
| 2018-10-26 | Rollup merge of #55301 - estebank:macro-allowed, r=petrochenkov | kennytm | -44/+94 | |
| List allowed tokens after macro fragments Fix #34069. | ||||
| 2018-10-26 | Rollup merge of #55298 - estebank:macro-def, r=pnkfelix | kennytm | -13/+39 | |
| Point at macro definition when no rules expect token Fix #35150. | ||||
| 2018-10-26 | Rollup merge of #55292 - estebank:macro-eof, r=pnkfelix | kennytm | -5/+28 | |
| Macro diagnostics tweaks Fix #30128, fix #10951 by adding an appropriate span to the diagnostic. Fix #26288 by suggesting adding semicolon to macro call. | ||||
| 2018-10-26 | Avoid unnecessary allocations in `float_lit` and `integer_lit`. | Nicholas Nethercote | -4/+19 | |
| This commit avoids an allocation when parsing any float and integer literals that don't involved underscores. This reduces the number of allocations done for the `tuple-stress` benchmark by 10%, reducing its instruction count by just under 1%. | ||||
| 2018-10-26 | Remove redundant clone | Shotaro Yamada | -5/+4 | |
| 2018-10-26 | more reviewer changes | Nick Cameron | -5/+1 | |
| 2018-10-26 | rebasing and reviewer changes | Nick Cameron | -1/+1 | |
| Primarily refactoring `(Ident, Option<NodeId>)` to `Segment` | ||||
| 2018-10-26 | Store a resolved def on hir::PathSegment | Nick Cameron | -1/+1 | |
| 2018-10-26 | Give each PathSegment a NodeId | Nick Cameron | -7/+19 | |
| 2018-10-25 | List allowed tokens after macro fragments | Esteban Küber | -44/+94 | |
| 2018-10-25 | Rollup merge of #55282 - sinkuu:redundant_clone, r=estebank | Pietro Albini | -1/+1 | |
| Remove redundant clone | ||||
| 2018-10-25 | Rollup merge of #55269 - matthiaskrgr:typos_oct, r=zackmdavis | Pietro Albini | -2/+2 | |
| fix typos in various places | ||||
| 2018-10-25 | Rollup merge of #54977 - estebank:macro-arg-parse, r=pnkfelix | Pietro Albini | -1/+2 | |
| Accept `Option<Box<$t:ty>>` in macro argument Given the following code, compile successfuly: ``` macro_rules! test { ( fn fun() -> Option<Box<$t:ty>>; ) => { fn fun(x: $t) -> Option<Box<$t>> { Some(Box::new(x)) } } } test! { fn fun() -> Option<Box<i32>>; } ``` Fix #25274. | ||||
| 2018-10-24 | Fix incorrect semicolon suggestion | Esteban Küber | -1/+3 | |
| 2018-10-24 | Point to macro def span instead of whole body | Esteban Küber | -1/+1 | |
| 2018-10-23 | Point at macro definition when no rules expect token | Esteban Küber | -13/+39 | |
| 2018-10-24 | Feature gate extern prelude additions from `extern crate` items | Vadim Petrochenkov | -0/+3 | |
| Fix rustdoc and fulldeps tests | ||||
| 2018-10-23 | Modify invalid macro in expression context diagnostic | Esteban Küber | -4/+20 | |
| 2018-10-23 | Add macro call span when lacking any other span in diagnostic | Esteban Küber | -1/+6 | |
| 2018-10-23 | fix typos in various places | Matthias Krüger | -2/+2 | |
| 2018-10-23 | Remove redundant clone | Shotaro Yamada | -1/+1 | |
| 2018-10-23 | Auto merge of #54778 - scottmcm:stabilize-ihle, r=pnkfelix | bors | -7/+9 | |
| Stabilize impl_header_lifetime_elision in 2015 ~~This is currently blocked on https://github.com/rust-lang/rust/issues/54902; it should be good after that~~ It's already stable in 2018; this finishes the stabilization. FCP completed (https://github.com/rust-lang/rust/issues/15872#issuecomment-417953153), proposal (https://github.com/rust-lang/rust/issues/15872#issuecomment-412759783). Tracking issue: https://github.com/rust-lang/rust/issues/15872 Usage examples (from libcore): https://github.com/rust-lang/rust/pull/54687 | ||||
| 2018-10-22 | optimize unsupported literal diag message | csmoe | -39/+70 | |
| 2018-10-21 | Fix a few tests with target-specific output | Vadim Petrochenkov | -1/+1 | |
| Enable one fully ignored test | ||||
| 2018-10-20 | Auto merge of #55014 - ljedrz:lazyboye_unwraps, r=matthewjasper | bors | -4/+5 | |
| Prefer unwrap_or_else to unwrap_or in case of function calls/allocations The contents of `unwrap_or` are evaluated eagerly, so it's not a good pick in case of function calls and allocations. This PR also changes a few `unwrap_or`s with `unwrap_or_default`. An added bonus is that in some cases this change also reveals if the object it's called on is an `Option` or a `Result` (based on whether the closure takes an argument). | ||||
| 2018-10-19 | Add a stub feature so we can still test E0705 | Scott McMurray | -4/+7 | |
| 2018-10-19 | Stabilize impl_header_lifetime_elision in 2015 | Scott McMurray | -4/+3 | |
| It's already stable in 2018; this finishes the stabilization. | ||||
| 2018-10-20 | update meta item checking test | csmoe | -1/+3 | |
| 2018-10-20 | suggest to trim prefix in nested meta items | csmoe | -3/+27 | |
| 2018-10-20 | handle errors based on parse_sess | csmoe | -32/+37 | |
| 2018-10-20 | suggest to remove prefix `b` in lint string | csmoe | -45/+92 | |
| 2018-10-19 | Prefer `Default::default` over `FxHash*::default` in struct constructors | Oliver Scherer | -8/+3 | |
| 2018-10-19 | Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack | Oliver Scherer | -3/+3 | |
| 2018-10-19 | Prefer unwrap_or_else to unwrap_or in case of function calls/allocations | ljedrz | -4/+5 | |
| 2018-10-18 | Fix ordering of nested modules in non-mod.rs mods | Taylor Cramer | -0/+11 | |
| Flatten relative offset into directory path before adding inline (mod x { ... }) module names to the current directory path. Fix #55094 | ||||
| 2018-10-15 | Rollup merge of #55025 - ehuss:missing-lifetime-err-msg, r=petrochenkov | Manish Goregaokar | -5/+6 | |
| Add missing lifetime fragment specifier to error message. A very minor issue, `lifetime` was missing from the error list. I left `literal` in the list, even though it is unstable. It looks like it may stabilize soon anyways. | ||||
| 2018-10-14 | Support underscore as constant name | Donato Sciarra | -1/+17 | |
| Issue: 54912 | ||||
| 2018-10-12 | Add missing lifetime fragment specifier to error message. | Eric Huss | -5/+6 | |
| A very minor issue, `lifetime` was missing from the error list. I left `literal` in the list, even though it is unstable. It looks like it may stabilize soon anyways. | ||||
| 2018-10-12 | Rollup merge of #54967 - holmgr:master, r=estebank | kennytm | -0/+5 | |
| Remove incorrect span for second label inner macro invocation A fix for issue #54841 | ||||
| 2018-10-12 | Auto merge of #53933 - GuillaumeGomez:codeblock-error-display, r=QuietMisdreavus | bors | -0/+13 | |
| Improve error display for codeblocks in rustdoc Part of #53919. r? @QuietMisdreavus | ||||
| 2018-10-11 | Auto merge of #54850 - mcr431:fix-54707-trait-function-from-macro, ↵ | bors | -0/+17 | |
| r=nikomatsakis Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls Previously parsing trait items only handled opening brace token and semicolon, I added a branch to the match statement that will also handle interpolated blocks. | ||||
| 2018-10-10 | Accept `Option<Box<$t:ty>>` in macro argument | Esteban Küber | -1/+2 | |
| Given the following code, compile successfuly: ``` macro_rules! test { ( fn fun() -> Option<Box<$t:ty>>; ) => { fn fun(x: $t) -> Option<Box<$t>> { Some(Box::new(x)) } } } test! { fn fun() -> Option<Box<i32>>; } ``` | ||||
| 2018-10-10 | Rollup merge of #54893 - dsciarra:issue-54379, r=pnkfelix | Manish Goregaokar | -0/+3 | |
| Fixes #47311. r? @nrc | ||||
| 2018-10-10 | Rollup merge of #54870 - flip1995:stabilize_tool_lints, r=Manishearth | Manish Goregaokar | -3/+2 | |
| Fixes #47311. r? @nrc | ||||
| 2018-10-10 | Rollup merge of #54862 - Havvy:cfg_attr_multi, r=petrochenkov | Manish Goregaokar | -18/+82 | |
| Fixes #47311. r? @nrc | ||||
| 2018-10-10 | Remove incorrect span for second label inner macro invocation | holmgr | -0/+5 | |
