| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-05 | Auto merge of #69692 - matthiaskrgr:submodule_upd, r=oli-obk | bors | -7/+11 | |
| submodules: update clippy from 8b7f7e66 to 74eae9dc Changes: ```` Rustup to rust-lang/rust#69506 Revive rls integration test use question mark operator Add regression test Use `try_eval_usize` over `eval_usize` Add path for display trait Use lang items instead of get_trait_def_id where possible Update stderr Don't lint debug formatting in debug impl Whitelist unused attribute for use items. add test for #5238 ```` Makes clippy tests pass again. r? @oli-obk | ||||
| 2020-03-05 | Clean E0382 and E0384 explanations | Guillaume Gomez | -3/+2 | |
| 2020-03-05 | Make link to `std::str` active | LeSeulArtichaut | -1/+3 | |
| 2020-03-05 | Bumped version number for const_eval_limit in active.rs | Christoph Schmidler | -25/+47 | |
| and renamed 'recursion_limit' in limits.rs to simple 'limit' because it does handle other limits too. | ||||
| 2020-03-05 | Opt out of CTFE if the 'const_eval_limit' is set to 0 | Christoph Schmidler | -10/+26 | |
| 2020-03-05 | Add a new test to reach const_limit setting, although with wrong WARNINGs yet | Christoph Schmidler | -37/+52 | |
| rename feature to const_eval_limit | ||||
| 2020-03-05 | Disable CTFE if const_limit was set to 0, otherwise use the value set, which ↵ | Christoph Schmidler | -8/+40 | |
| defaults to 1_000_000 | ||||
| 2020-03-05 | Prepare const_limit feature gate and attribute | Christoph Schmidler | -1/+45 | |
| 2020-03-05 | Auto merge of #69717 - estebank:correctly-probe, r=varkor | bors | -2/+1 | |
| Correctly reject `TraitCandidate` in all cases Follow up to #69255, addresses #69629. When `self.select_trait_candidate(trait_ref)` returned `Err(_)`, `result` wasn't being set to `NoMatch`, causing invalid methods to be selected. | ||||
| 2020-03-04 | Documentation and slight simplification of BTreeMap's internals | Stein Somers | -14/+19 | |
| 2020-03-04 | Correctly reject `TraitCandidate` in all cases | Esteban Küber | -2/+1 | |
| Follow up to #69255, fix #69629. | ||||
| 2020-03-04 | Update stderr | Aaron Hill | -59/+35 | |
| 2020-03-04 | Fix tabs | Aaron Hill | -10/+10 | |
| 2020-03-04 | Extent pretty-print test | Aaron Hill | -0/+9 | |
| 2020-03-04 | Test that cfg-gated if-exprs are not type-checked | Aaron Hill | -0/+12 | |
| 2020-03-04 | Move if-attr tests to their own directory | Aaron Hill | -0/+0 | |
| 2020-03-04 | Add run-pass test suggested by @joshtriplett | Aaron Hill | -0/+15 | |
| 2020-03-04 | Remove recovery test | Aaron Hill | -30/+0 | |
| 2020-03-04 | Test trying to cfg-remove an `if` expression | Aaron Hill | -0/+13 | |
| 2020-03-04 | Test that stmt_expr_attrs properly gates if-attrs | Aaron Hill | -0/+18 | |
| 2020-03-04 | Test #[allow(unused)] on `if` expression | Aaron Hill | -0/+12 | |
| 2020-03-04 | Permit attributes on 'if' expressions | Aaron Hill | -34/+137 | |
| Previously, attributes on 'if' expressions (e.g. #[attr] if true {}) were disallowed during parsing. This made it impossible for macros to perform any custom handling of such attributes (e.g. stripping them away), since a compilation error would be emitted before they ever had a chance to run. This PR permits attributes on 'if' expressions ('if-attrs' from here on). Both built-in attributes (e.g. `#[allow]`, `#[cfg]`) are supported. We still do *not* accept attributes on 'other parts' of an if-else chain. That is, the following code snippet still fails to parse: ```rust if true {} #[attr] else if false {} else #[attr] if false {} #[attr] else {} ``` | ||||
| 2020-03-04 | PlaceRef<'a, 'tcx> -> PlaceRef<'tcx> | Santiago Pastorino | -50/+46 | |
| 2020-03-04 | Make PlaceRef lifetimes of in_projection be both 'tcx | Santiago Pastorino | -4/+4 | |
| 2020-03-04 | Make PlaceRef lifetimes of is_prefix_of be both 'tcx | Santiago Pastorino | -4/+4 | |
| 2020-03-04 | Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of closure_span be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of move_spans be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of borrowed_content_source be both 'tcx | Santiago Pastorino | -2/+2 | |
| 2020-03-04 | Make PlaceRef lifetimes of describe_field be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of add_moved_or_invoked_closure_note be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of is_upvar_field_projection be both 'tcx | Santiago Pastorino | -6/+6 | |
| 2020-03-04 | Use single-char patter on {ends,starts}_with and remove clone on copy type. | Matthias Krüger | -4/+4 | |
| These were introduced since I last fixed most of these occurences. (clippy::clone_on_copy, clippy::single_char_pattern) | ||||
| 2020-03-04 | Don't use "if let" bindings to only check a value and not actually bind ↵ | Matthias Krüger | -9/+9 | |
| anything. For example: `if let Some(_) = foo() {}` can be reduced to `if foo().is_some() {}` (clippy::redundant_pattern_matching) | ||||
| 2020-03-04 | Use .as_deref() instead of .as_ref().map(Deref::deref) ↵ | Matthias Krüger | -2/+2 | |
| (clippy::option_as_ref_deref) | ||||
| 2020-03-04 | Use .map() to modify data inside Options instead of using .and_then(|x| ↵ | Matthias Krüger | -22/+17 | |
| Some(y)) (clippy::option_and_then_some) | ||||
| 2020-03-04 | Don't use .ok() before unwrapping via .expect() on a Result. | Matthias Krüger | -1/+0 | |
| The Result can be expect-unwrapped directly. (clippy::ok_expect) | ||||
| 2020-03-04 | Update macros.rs: fix documentation typo. | Penelope Phippen | -1/+1 | |
| 2020-03-04 | On mismatched delimiters, only point at empty blocks that are in the same line | Esteban Küber | -9/+8 | |
| 2020-03-04 | submodules: update clippy from 8b7f7e66 to 329923ed | Matthias Krüger | -7/+11 | |
| Changes: ```` Apply suggestions from code review Simplify if_chain. Move NumericLiteral to its own module. Included binary and octal cases. Resolve false positives for hex int cast. Test for unnecessary_cast of hex int literal. run-rustfix Lint `if let Some` in question_mark lint Add restrictive pat use in full binded struct Update test case answers to match cargo dev fmt Ran cargo dev fmt Rustup to rust-lang/rust#69506 Recommended changes from flip1995 Revive rls integration test use question mark operator Add regression test Use `try_eval_usize` over `eval_usize` Add path for display trait Use lang items instead of get_trait_def_id where possible Update stderr Don't lint debug formatting in debug impl Whitelist unused attribute for use items. Fix one last test issue Refactor suggested by krishna-veerareddy Fixed compile error from merging Changed test output to reflect cargo fmt Run cargo dev fmt Finished checking for cases of absolute values add test for #5238 Some bugfixing Created floating point abs lint and test, but not yet run ```` | ||||
| 2020-03-04 | Use subslice patterns in slice methods | Josh Stone | -22/+8 | |
| For all of the methods that pick off the first or last element, we can use subslice patterns to implement them directly, rather than relying on deeper indexing function calls. At a minimum, this means the generated code will rely less on inlining for performance, but in some cases it also optimizes better. | ||||
| 2020-03-04 | Auto merge of #69576 - matthiaskrgr:nightly_bootstrap_from_beta, r=Centril | bors | -1/+1 | |
| nightly: bootstrap from 1.42.0-beta.5 (4e1c5f0e9 2020-02-28) This beta snapshot has the llvm miscompilation fix included and is bootstrapped from a stable version that also has it included. | ||||
| 2020-03-04 | Make PlaceRef lifetimes of move_path_for_place be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of move_path_closest_to be both 'tcx | Santiago Pastorino | -2/+2 | |
| 2020-03-04 | Update books | Eric Huss | -0/+0 | |
| 2020-03-04 | Make PlaceRef lifetimes of uninitialized_error_reported be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-04 | Make PlaceRef lifetimes of move_error_reported be both 'tcx | Santiago Pastorino | -9/+10 | |
| 2020-03-04 | Make PlaceRef lifetimes of borrow_conflict_place be both 'tcx | Santiago Pastorino | -4/+5 | |
| 2020-03-04 | cover some more nearby cases | Ralf Jung | -10/+8 | |
| 2020-03-04 | use integer assoc consts instead of methods | Ralf Jung | -13/+13 | |
