Amanieu d'Antras
8e3467c215
Link to libgcc dynamically on windows-gnu when using dylib crates
2020-03-05 17:36:50 +00:00
Amanieu d'Antras
1c950e5c6f
Simplify the try intrinsic by using a callback in the catch block
2020-03-05 17:36:50 +00:00
Amanieu d'Antras
5953c100d1
Use #[rustc_std_internal_symbol] instead of #[no_mangle]
2020-03-05 17:36:50 +00:00
Amanieu d'Antras
f4f91f0b2f
Remove eh_unwind_resume lang item
2020-03-05 17:36:50 +00:00
Matthias Krüger
84577c86bf
Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed)
2020-03-05 16:39:20 +01:00
Matthias Krüger
8ba92d9ce4
Use more efficient &&str to String conversion (clippy::inefficient_to_string)
2020-03-05 16:39:20 +01:00
Matthias Krüger
a1c3eb6043
Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call)
2020-03-05 16:39:20 +01:00
Matthias Krüger
3fc5c118dd
Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg)
2020-03-05 16:39:12 +01:00
Matthias Krüger
3e70c8ec2f
Use simple 'for i in x' loops instead of 'while let Some(x) = x.next()' loops on iterators. (clippy::while_let_on_iterator)
2020-03-05 16:38:48 +01:00
Matthias Krüger
c2bbe3349f
Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
2020-03-05 16:38:24 +01:00
Matthias Krüger
edd3e175d6
Remove redundant patterns when matching ( x @ _ to x) (clippy::redundant_pattern)
2020-03-05 16:30:43 +01:00
Tomasz Miąsko
726d5185e0
bootstrap: Use hash to determine if sanitizers needs to be rebuilt
...
* Rebuild sanitizers runtimes when LLVM submodule commit changes.
* When rebuilding LLVM / sanitizers, remove the stamp file before
starting the build process to invalidate previous build output.
2020-03-05 15:52:49 +01:00
Tomasz Miąsko
e54a16cffc
Change DIBuilderCreateEnumerator signature to match LLVM 9
...
No functional changes intended.
2020-03-05 15:34:50 +01:00
Yuki Okushi
d6a17b598f
Move tidy check to mingw-check
2020-03-05 22:59:54 +09:00
bors
c79f5f0647
Auto merge of #69692 - matthiaskrgr:submodule_upd, r=oli-obk
...
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 13:40:57 +00:00
Guillaume Gomez
6b28a8c46f
Clean E0382 and E0384 explanations
2020-03-05 13:05:08 +01:00
Ralf Jung
22ee27b266
update backtrace crate
2020-03-05 11:13:02 +01:00
LeSeulArtichaut
6ed4829c17
Make link to std::str active
2020-03-05 08:52:46 +01:00
Christoph Schmidler
527456e219
Bumped version number for const_eval_limit in active.rs
...
and renamed 'recursion_limit' in limits.rs to simple 'limit' because it does handle other limits too.
2020-03-05 08:10:39 +01:00
Christoph Schmidler
c94c74e2d9
Opt out of CTFE if the 'const_eval_limit' is set to 0
2020-03-05 08:09:52 +01:00
Christoph Schmidler
288e142737
Add a new test to reach const_limit setting, although with wrong WARNINGs yet
...
rename feature to const_eval_limit
2020-03-05 08:09:52 +01:00
Christoph Schmidler
ff38babc31
Disable CTFE if const_limit was set to 0, otherwise use the value set, which defaults to 1_000_000
2020-03-05 08:09:52 +01:00
Christoph Schmidler
337af5ef7a
Prepare const_limit feature gate and attribute
2020-03-05 08:09:52 +01:00
bors
1e179690f8
Auto merge of #69717 - estebank:correctly-probe, r=varkor
...
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-05 03:44:53 +00:00
Esteban Küber
91525fd078
Tweak output for invalid negative impl AST errors
2020-03-04 16:15:23 -08:00
Stein Somers
9384cba72e
Documentation and slight simplification of BTreeMap's internals
2020-03-04 23:33:30 +01:00
Esteban Küber
8a3272985b
Correctly reject TraitCandidate in all cases
...
Follow up to #69255 , fix #69629 .
2020-03-04 13:59:51 -08:00
Aaron Hill
e50fd5a3dc
Update stderr
2020-03-04 16:54:16 -05:00
Aaron Hill
66b152cf9f
Fix tabs
2020-03-04 16:43:14 -05:00
Aaron Hill
37c2c38aeb
Extent pretty-print test
2020-03-04 16:43:14 -05:00
Aaron Hill
1b681d6652
Test that cfg-gated if-exprs are not type-checked
2020-03-04 16:43:14 -05:00
Aaron Hill
7f19358c9e
Move if-attr tests to their own directory
2020-03-04 16:43:14 -05:00
Aaron Hill
e11cdfdae4
Add run-pass test suggested by @joshtriplett
2020-03-04 16:43:14 -05:00
Aaron Hill
b00f6745c4
Remove recovery test
2020-03-04 16:43:14 -05:00
Aaron Hill
9a299e4e21
Test trying to cfg-remove an if expression
2020-03-04 16:43:14 -05:00
Aaron Hill
e9ec47bb70
Test that stmt_expr_attrs properly gates if-attrs
2020-03-04 16:43:13 -05:00
Aaron Hill
e912d9d7ec
Test #[allow(unused)] on if expression
2020-03-04 16:43:13 -05:00
Aaron Hill
f63b88c761
Permit attributes on 'if' expressions
...
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 16:43:13 -05:00
Santiago Pastorino
b11cd0b587
PlaceRef<'a, 'tcx> -> PlaceRef<'tcx>
2020-03-04 18:25:03 -03:00
Santiago Pastorino
2cb2559c18
Make PlaceRef lifetimes of in_projection be both 'tcx
2020-03-04 18:18:15 -03:00
Santiago Pastorino
a5d1e189a1
Make PlaceRef lifetimes of is_prefix_of be both 'tcx
2020-03-04 18:13:47 -03:00
Santiago Pastorino
a32afa33c8
Make PlaceRef lifetimes of classify_drop_access_kind be both 'tcx
2020-03-04 18:10:01 -03:00
Santiago Pastorino
46d85e519b
Make PlaceRef lifetimes of closure_span be both 'tcx
2020-03-04 18:07:33 -03:00
Santiago Pastorino
bd4dad4281
Make PlaceRef lifetimes of move_spans be both 'tcx
2020-03-04 18:05:37 -03:00
Santiago Pastorino
a30f55f4b2
Make PlaceRef lifetimes of borrowed_content_source be both 'tcx
2020-03-04 17:47:00 -03:00
Jonas Schievink
3b6a5fbece
Move formatting to different function
...
This slims down the generator MIR considerably, which makes debugging
easier
2020-03-04 21:32:57 +01:00
Santiago Pastorino
eb67eca74a
Make PlaceRef lifetimes of describe_field be both 'tcx
2020-03-04 17:22:28 -03:00
Santiago Pastorino
6f23650457
Make PlaceRef lifetimes of add_moved_or_invoked_closure_note be both 'tcx
2020-03-04 17:12:31 -03:00
Santiago Pastorino
c6f1244719
Make PlaceRef lifetimes of is_upvar_field_projection be both 'tcx
2020-03-04 17:00:15 -03:00
Matthias Krüger
80ed505c41
Use single-char patter on {ends,starts}_with and remove clone on copy type.
...
These were introduced since I last fixed most of these occurences. (clippy::clone_on_copy, clippy::single_char_pattern)
2020-03-04 20:47:05 +01:00