Commit graph

124480 commits

Author SHA1 Message Date
Guillaume Gomez
80e3126ec1 Clean up E0510 explanation 2020-04-08 15:05:52 +02:00
Alex Aktsipetrov
aaebbe196b Suggest move for closures and async blocks in more cases. 2020-04-08 13:01:53 +02:00
marmeladema
6ae3888b19 librustc_resolve: fixup nit in previous commit 2020-04-08 09:23:58 +01:00
Eduard-Mihai Burtescu
9d13520a6b Replace "rc"/"arc" lang items with Rc/Arc diagnostic items. 2020-04-08 10:47:41 +03:00
CAD97
2fcfd233f7 Redesign the Step trait 2020-04-08 02:24:16 -04:00
CAD97
b70e7fd0db Add inherent impls for unchecked math intrinsics 2020-04-08 02:11:55 -04:00
CAD97
1b76bb03fe Stabilize some of alloc_layout_extras 2020-04-08 02:09:47 -04:00
Tobias Thiel
f03db79eaa rustc_session: forbid lints override regardless of position 2020-04-07 22:05:32 -07:00
mark
b9f91e5227 ignore 429's when linkcheck 2020-04-07 23:29:45 -05:00
YI
3ae974f025 fix misleading type annotation diagonstics
This solves the method call part of issue
https://github.com/rust-lang/rust/issues/69455
I added a `target_span` field so as to pin down the exact location of
the error. We need a dedicated field `found_exact_method_call` to
prioritize situations like the test case `issue-69455.rs`. If we reuse
`found_method_call`, `found_local_pattern` will show up first. We can
not move `found_method_call` up, it is undesirable in various
situations.
2020-04-08 11:52:29 +08:00
mark
daddf4db72 fix another ICE 2020-04-07 22:47:26 -05:00
mark
a38eae5942 fix ice with trait obj dummy self 2020-04-07 22:47:26 -05:00
mark
4fe09f282b fix abuses of tykind::err 2020-04-07 22:47:25 -05:00
Theo Sandstrom
4cdb2065ef Remove unnecessary TypeFlags::NOMINAL_FLAGS
This was a relic from when we had "nominal flags" and "cached
properties." The latter no longer exists, so nominal flags are no
longer necessary. In fact, every flag is considered a nominal flag. I
went ahead and removed all references to NOMINAL_FLAGS.

Fixes rust-lang#70836
2020-04-07 21:57:31 -04:00
Mazdak Farrokhzad
f6c729d4a0 track_caller: harden naked interactions 2020-04-08 03:49:53 +02:00
Esteban Küber
a3e54b59f9 Do not suggest adding type param when use is already suggested
Fix #70365, cc #70572.
2020-04-07 18:07:26 -07:00
Rakshith Ravi
0a54a9403d Added FuseIteratorImpl, FustDoubleEndedIteratorImpl and FuseExactSizeIteratorImpl to avoid exposing default functions outside of the current crate. 2020-04-08 05:39:00 +05:30
Josh Stone
ce8abc63a7 Avoid extra &mut in Chain::fold and try_fold 2020-04-07 16:58:52 -07:00
Josh Stone
2c4cffde3b Reduce callsites in Chain::last() 2020-04-07 16:50:26 -07:00
Josh Stone
8aac1077ed Reduce callsites in Chain::count() 2020-04-07 16:50:16 -07:00
marmeladema
59e0db69e0 librustc_hir: return LocalDefId instead of DefId in local_def_id 2020-04-08 00:43:56 +01:00
Linus Färnstrand
1647f53fb3 Use int assoc consts in MANUAL_SATURATING_ARITHMETIC 2020-04-08 00:43:27 +02:00
Linus Färnstrand
4726daad52 Use int assoc consts in checked_conversions lint 2020-04-08 00:43:27 +02:00
Linus Färnstrand
b192f2cd15 Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
Linus Färnstrand
c2f67e1e19 Use integer assoc consts in more lint example code 2020-04-08 00:43:27 +02:00
Linus Färnstrand
518568ae0a Don't import primitive type modules 2020-04-08 00:43:27 +02:00
Linus Färnstrand
51bb1d28c5 Use assoc const NAN for zero_div_zero lint 2020-04-08 00:43:27 +02:00
Linus Färnstrand
645b62e436 Fix float cmp to use assoc fxx::EPSILON 2020-04-08 00:43:27 +02:00
Linus Färnstrand
0b4ee9a649 Fix NAN comparison lint to use assoc NAN 2020-04-08 00:43:27 +02:00
Theo Sandstrom
d55c3998e0 Corrects a typo in rustdoc documentation.
Fixes rust-lang#70856
2020-04-07 18:37:35 -04:00
flip1995
70d9f9eab6
Update Clippy 2020-04-07 22:50:58 +02:00
Philipp Krones
d342cee787
Merge pull request #5434 from eddyb/rustup
rustup: update for the new Ty::walk interface.

The first commit fixes a portability bug in `setup-toolchain.sh`, while the second rewrites the handling of "trait impl methods" in `use_self` - even if `Ty::walk` could've still been used, it was IMO a misuse.

This could also serve as a PSA: *please* use `hir_ty_to_ty` instead of trying to compare `hir::Ty`s between themselves or against semantic `Ty`s. Its "quasi-deprecation" is 3 years old and doesn't really mean anything, just that it's currently uncached and that we should eventually querify it (either for a single HIR node, or for all of the nodes in an entire definition).

---

changelog: none
2020-04-07 22:40:18 +02:00
Eric Huss
ff26849e6b Update cargo 2020-04-07 13:29:15 -07:00
Philipp Krones
f5b6a0c54d
Format clippy_lints/src/let_underscore.rs 2020-04-07 22:19:20 +02:00
Guillaume Gomez
cbee6c5f0c Extend sidebar scrollbar changes to all scrollbars 2020-04-07 22:10:17 +02:00
Eduard Burtescu
2ad4d6a057 rustup: update for the new Ty::walk interface. 2020-04-07 19:53:56 +00:00
Eduard Burtescu
89e14d201d use_self: switch to hir_ty_to_ty. 2020-04-07 19:53:02 +00:00
Eduard Burtescu
18520aa8b2 Only /usr/bin/env is portable in shebangs. 2020-04-07 19:51:59 +00:00
Ralf Jung
203accce35 bump Miri 2020-04-07 20:23:43 +02:00
Ana-Maria Mihalache
d0e0f4021d Remove old mir-opt test format. 2020-04-07 18:02:11 +00:00
Josh Stone
859b8da21f Implement Chain with Option fuses
The iterators are now "fused" with `Option` so we don't need separate
state to track which part is already exhausted, and we may also get
niche layout for `None`. We don't use the real `Fuse` adapter because
its specialization for `FusedIterator` unconditionally descends into the
iterator, and that could be expensive to keep revisiting stuff like
nested chains. It also hurts compiler performance to add more iterator
layers to `Chain`.
2020-04-07 10:55:00 -07:00
Ana-Maria Mihalache
ea4aca19c1 Normalize away pairs of line:col numbers. 2020-04-07 17:49:14 +00:00
Ana-Maria Mihalache
e0bb75ef69 Add EMIT_MIR_FOR_EACH_BIT_WIDTH to tests that need it. 2020-04-07 17:49:14 +00:00
Ana-Maria Mihalache
688a4ddd20 --bless more mir-opt tests. 2020-04-07 17:49:14 +00:00
Jonas Schievink
b8f416d67f Further improve comments 2020-04-07 19:30:16 +02:00
Tomasz Miąsko
ebd02670fe Update LLVM submodule fixing sanitizers build with glibc 2.31 2020-04-07 18:00:02 +02:00
Bastian Kauschke
817f05986a remove false positives of unused_braces 2020-04-07 17:54:50 +02:00
Guillaume Gomez
e1aa88c6a0 Improve scrollbar display in rustdoc 2020-04-07 17:50:39 +02:00
Bastian Kauschke
ab4178bd7d wf: refactor compute_trait_ref 2020-04-07 17:49:47 +02:00
Ana-Maria Mihalache
ef88769e4f --bless all mir-opt tests. 2020-04-07 15:09:01 +00:00