Matthias Krüger
178da9b2ef
neg-multiply: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
e519bb3c85
overflow-check-conditional: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
9178363574
path-buf-push-overwrite: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
81f77a411e
range-zip-with-len: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
3e1e0c9bdb
redundant-static-lifetimes: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
5d69ca5e11
also change "deprecated-attribute" message
2020-08-10 23:49:06 +02:00
Matthias Krüger
fe37ddbd11
suspicious-arithmetic-impl: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
7954c22a99
unknown: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
b36a6c9594
ref_in_deref: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
4418ff122f
unneeded-field-pattern: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
2792260636
empty-liner-after-outer-attr: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
0db5cb1393
drop_bounds: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
590b91d8d4
double-parens: make lint adhere to lint message convention and do minor refactoring
2020-08-10 23:49:06 +02:00
Matthias Krüger
ba7a01a6a8
double-comparisons: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
6b0a6a70f8
default-trait-access: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
3d592b5154
cmp_null: make lint adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
8679dd375b
unnecessary_unwrap, panicking_unwrap: make lints adhere to lint message convention
2020-08-10 23:49:06 +02:00
Matthias Krüger
9b7ab1d38b
checked-conversions: make lint adhere to lint message convention
2020-08-10 23:48:57 +02:00
bors
770bd3d1d0
Auto merge of #75349 - nnethercote:tweak-confusable-idents-checking, r=petrochenkov
...
Tweak confusable idents checking
The confusable idents checking does some sub-optimal things with symbols.
r? @petrochenkov
cc @crlf0710
2020-08-10 21:47:29 +00:00
Eduardo Broto
5d66bd7bb3
Avoid or_fun_call for const_fn with no args
2020-08-10 23:38:58 +02:00
Denis Vasilik
eea85814e1
Use intra-doc links
2020-08-10 23:16:01 +02:00
Denis Vasilik
f260462c32
Remove links that are in scope
2020-08-10 23:14:43 +02:00
Mark Rousskov
6bbf4558ac
Feature gate is always present
2020-08-11 00:08:04 +03:00
Vadim Petrochenkov
20c5044465
Introduce rustc_lexer::is_ident
and use it in couple of places
2020-08-11 00:08:04 +03:00
bors
d495ef527c
Auto merge of #75127 - jyn514:impl-trait, r=pnkfelix
...
Fix async-std by special-casing rustdoc in typeck
https://github.com/rust-lang/rust/issues/75100
2020-08-10 19:33:25 +00:00
Alexis Bourget
a6e492b5db
Move to doc links inside the prelude
2020-08-10 21:09:37 +02:00
Esteban Küber
54f1b43130
Add missing primary label
2020-08-10 12:04:10 -07:00
Esteban Küber
6c0755a7dc
Point at item definition in foreign crates
2020-08-10 12:04:10 -07:00
Esteban Küber
089810a1cb
Do not suggest similarly named enclosing item
2020-08-10 12:04:10 -07:00
Esteban Küber
eef284be59
Tweak ordering of suggestions
...
Modify logic to make it easier to follow and recover labels that would
otherwise be lost.
2020-08-10 12:04:10 -07:00
Alexis Bourget
26792a65cd
Move to doc links inside std/time.rs
2020-08-10 21:01:58 +02:00
Matthias Krüger
40416c0fa8
naive_bytecount: make lint adhere to lint message convention
2020-08-10 20:55:23 +02:00
Matthias Krüger
fd379a889e
builtin-type-shadow: make lint adhere to lint message convention
2020-08-10 20:55:23 +02:00
Matthias Krüger
0876f17d77
bool-comparison: make lint adhere to lint message convention
2020-08-10 20:55:23 +02:00
Matthias Krüger
e57aafe33f
too-many-lines: make lint adhere to lint message convention
2020-08-10 20:55:23 +02:00
Esteban Küber
308b5585f3
Detect JS-style ===
and !==
and recover
...
Fix #75312 .
2020-08-10 11:44:09 -07:00
Denis Vasilik
d7e7271085
Remove AsRef link as it is in the prelude
2020-08-10 20:29:20 +02:00
bors
4113453202
Auto merge of #5887 - robojumper:patch-1, r=flip1995
...
Fix CHANGELOG's commit range links
Two most recent links linked to the wrong range
changelog: none
2020-08-10 17:51:37 +00:00
bors
1275cc15d6
Auto merge of #74936 - GuillaumeGomez:const-rustc_const_unstable, r=jyn514
...
Don't print "const" keyword on non-nightly build if rustc_const_unstable is used on the item
Fixes #74579 .
2020-08-10 17:12:42 +00:00
Ivan Tham
a7f61bf3bb
Remove empty fn main from E0749
2020-08-11 01:06:30 +08:00
robojumper
82c816ee02
Fix CHANGELOG's commit range links
...
Two most recent links linked to the wrong range
changelog: none
2020-08-10 17:45:04 +02:00
bors
08324fe6f7
Auto merge of #74953 - JulianKnodt:master, r=lcnr
...
Remove restriction on type parameters preceding consts w/ feature const-generics
Removed the restriction on type parameters preceding const parameters when the feature const-generics is enabled.
Builds on #74676 , which deals with unsorted generic parameters. This just lifts the check in lowering the AST to HIR that permits consts and types to be reordered with respect to each other. Lifetimes still must precede both
This change is not intended for min-const-generics, and is gated behind the `#![feature(const_generics)]`.
One thing is that it also permits type parameters without a default to come after consts, which I expected to not work, and was hoping to get more guidance on whether that should be permitted or how to prevent it otherwise.
I did not go through the RFC process for this pull request because there was prior work to get this feature added. In the previous PR that was cited, work was done to enable this change.
r? @lcnr
2020-08-10 15:19:46 +00:00
Guillaume Gomez
2a281e0a76
Add test for rustc_const_unstable on methods
2020-08-10 16:57:25 +02:00
Guillaume Gomez
a34bc7961a
Add help button
2020-08-10 16:52:19 +02:00
Ivan Tham
8cb1a2f8a2
Use : rather than . in example description
...
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2020-08-10 22:46:15 +08:00
Ivan Tham
a2d7c33aa8
Split fix into another section for E0749
2020-08-10 22:33:17 +08:00
bors
c576bedc41
Auto merge of #5883 - flip1995:rollup-x9mftxe, r=flip1995
...
Rollup of 5 pull requests
Successful merges:
- #5825 (Add the new lint `same_item_push`)
- #5869 (New lint against `Self` as an arbitrary self type)
- #5870 (enable #[allow(clippy::unsafe_derive_deserialize)])
- #5871 (Lint .min(x).max(y) with x < y)
- #5874 (Make the docs clearer for new contributors)
Failed merges:
r? @ghost
changelog: rollup
2020-08-10 13:02:53 +00:00
bors
4c336d4626
Auto merge of #75357 - RalfJung:miri, r=RalfJung
...
update Miri
Fixes https://github.com/rust-lang/rust/issues/75274
Cc @rust-lang/miri r? @ghost
2020-08-10 13:01:44 +00:00
Philipp Krones
7f6897c7a3
Rollup merge of #5874 - camelid:patch-1, r=flip1995
...
Make the docs clearer for new contributors
It confused me before, so I made it extra obvious that you need to run
a script to set up your toolchain before you can build Clippy.
I also added a note so that new contributors aren't confused when
Clippy doesn't build as a result of a change in rustc's internals.
changelog: make `CONTRIBUTING.md` clearer for new contributors
2020-08-10 14:56:30 +02:00
Philipp Krones
ee8db50e13
Rollup merge of #5871 - wiomoc:feature/methodcall-minmax, r=flip1995
...
Lint .min(x).max(y) with x < y
Fixes #5854
changelog: Also lint `ord.min(a).max(b)`, where `a < b` in [`min_max`] lint
2020-08-10 14:56:29 +02:00