summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-03-05Auto merge of #69692 - matthiaskrgr:submodule_upd, r=oli-obkbors-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-05Clean E0382 and E0384 explanationsGuillaume Gomez-3/+2
2020-03-05Make link to `std::str` activeLeSeulArtichaut-1/+3
2020-03-05Bumped version number for const_eval_limit in active.rsChristoph Schmidler-25/+47
and renamed 'recursion_limit' in limits.rs to simple 'limit' because it does handle other limits too.
2020-03-05Opt out of CTFE if the 'const_eval_limit' is set to 0Christoph Schmidler-10/+26
2020-03-05Add a new test to reach const_limit setting, although with wrong WARNINGs yetChristoph Schmidler-37/+52
rename feature to const_eval_limit
2020-03-05Disable 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-05Prepare const_limit feature gate and attributeChristoph Schmidler-1/+45
2020-03-05Auto merge of #69717 - estebank:correctly-probe, r=varkorbors-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-04Documentation and slight simplification of BTreeMap's internalsStein Somers-14/+19
2020-03-04Correctly reject `TraitCandidate` in all casesEsteban Küber-2/+1
Follow up to #69255, fix #69629.
2020-03-04Update stderrAaron Hill-59/+35
2020-03-04Fix tabsAaron Hill-10/+10
2020-03-04Extent pretty-print testAaron Hill-0/+9
2020-03-04Test that cfg-gated if-exprs are not type-checkedAaron Hill-0/+12
2020-03-04Move if-attr tests to their own directoryAaron Hill-0/+0
2020-03-04Add run-pass test suggested by @joshtriplettAaron Hill-0/+15
2020-03-04Remove recovery testAaron Hill-30/+0
2020-03-04Test trying to cfg-remove an `if` expressionAaron Hill-0/+13
2020-03-04Test that stmt_expr_attrs properly gates if-attrsAaron Hill-0/+18
2020-03-04Test #[allow(unused)] on `if` expressionAaron Hill-0/+12
2020-03-04Permit attributes on 'if' expressionsAaron 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-04PlaceRef<'a, 'tcx> -> PlaceRef<'tcx>Santiago Pastorino-50/+46
2020-03-04Make PlaceRef lifetimes of in_projection be both 'tcxSantiago Pastorino-4/+4
2020-03-04Make PlaceRef lifetimes of is_prefix_of be both 'tcxSantiago Pastorino-4/+4
2020-03-04Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of closure_span be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of move_spans be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of borrowed_content_source be both 'tcxSantiago Pastorino-2/+2
2020-03-04Make PlaceRef lifetimes of describe_field be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of add_moved_or_invoked_closure_note be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of is_upvar_field_projection be both 'tcxSantiago Pastorino-6/+6
2020-03-04Use 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-04Don'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-04Use .as_deref() instead of .as_ref().map(Deref::deref) ↵Matthias Krüger-2/+2
(clippy::option_as_ref_deref)
2020-03-04Use .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-04Don'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-04Update macros.rs: fix documentation typo.Penelope Phippen-1/+1
2020-03-04On mismatched delimiters, only point at empty blocks that are in the same lineEsteban Küber-9/+8
2020-03-04submodules: update clippy from 8b7f7e66 to 329923edMatthias 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-04Use subslice patterns in slice methodsJosh 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-04Auto merge of #69576 - matthiaskrgr:nightly_bootstrap_from_beta, r=Centrilbors-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-04Make PlaceRef lifetimes of move_path_for_place be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of move_path_closest_to be both 'tcxSantiago Pastorino-2/+2
2020-03-04Update booksEric Huss-0/+0
2020-03-04Make PlaceRef lifetimes of uninitialized_error_reported be both 'tcxSantiago Pastorino-1/+1
2020-03-04Make PlaceRef lifetimes of move_error_reported be both 'tcxSantiago Pastorino-9/+10
2020-03-04Make PlaceRef lifetimes of borrow_conflict_place be both 'tcxSantiago Pastorino-4/+5
2020-03-04cover some more nearby casesRalf Jung-10/+8
2020-03-04use integer assoc consts instead of methodsRalf Jung-13/+13