Collin Baker
9bb87eb681
Add soon-to-be-default --no-undefined-version flag
2023-03-09 19:21:43 -05:00
Michael Goulet
fd34549686
Remove body_def_id from Inherited
2023-03-09 23:25:23 +00:00
xFrednet
7ce9ca0508
Mark Rust 1.68.0 as release in the changelog
2023-03-09 23:09:51 +01:00
Raekye
e8fbf6205e
Make ptr::from_ref and ptr::from_mut in #106116 const.
2023-03-09 16:36:20 -05:00
Santiago Pastorino
5b99723439
Make some report and emit errors take DefIds instead of BodyIds
2023-03-09 17:53:35 -03:00
Michael Goulet
f7146136d7
Bail in combine if consts have different types
2023-03-09 20:52:06 +00:00
Michael Goulet
9574f39c2d
Use param's real type in try_eval_lit_or_param
2023-03-09 20:49:11 +00:00
bmoxb
b439189236
Add examples section which demonstrates the behaviour (specifically the sign positive aspect)
2023-03-09 20:44:11 +00:00
bmoxb
8d2bdb89c6
Add missing comment for f64
2023-03-09 20:37:04 +00:00
bmoxb
73016bb8d4
Indicate that 0.0
refers to positive 0.0
2023-03-09 20:36:29 +00:00
Josh Stone
258c7e73c4
ci: use apt install --download-only
for solaris debs
2023-03-09 12:23:18 -08:00
bmoxb
d5bb6056f1
Document the resulting values produced when using From<bool>
on floats
2023-03-09 18:55:33 +00:00
Camille GILLOT
684de0418f
Update coverage info.
2023-03-09 17:51:38 +00:00
Camille GILLOT
2eccd52157
Test let _ =
for const_mut_refs.
2023-03-09 17:45:13 +00:00
Camille GILLOT
09dc10c9c2
Bug on PlaceMention in dest-prop.
2023-03-09 17:45:13 +00:00
Camille GILLOT
45f2a1af3b
Document borrowck behaviour.
2023-03-09 17:45:13 +00:00
Camille GILLOT
b34a8a294d
Pacify tidy.
2023-03-09 17:45:13 +00:00
Camille GILLOT
a5ef6bac28
Also test destructuring assignment.
2023-03-09 17:45:13 +00:00
Camille GILLOT
e107194b66
Ignore AscribeUserType in unsafeck to avoid duplicate diagnostics.
2023-03-09 17:45:13 +00:00
Camille GILLOT
4462bb54e3
Introduce a no-op PlaceMention statement for let _ =
.
2023-03-09 17:45:13 +00:00
Camille GILLOT
be758ef5ab
Add ui test.
2023-03-09 17:45:13 +00:00
Michael Goulet
d4b59a0da2
Propagate expected return type instead of real return type in check_binop
2023-03-09 17:24:07 +00:00
Michael Goulet
1b6d6f92d1
Fix canonicalizer bug for int/float vars too
2023-03-09 17:24:07 +00:00
bors
9074da0bd7
Auto merge of #10359 - mladedav:dm/private/is-empty, r=llogiq
...
Include async functions in the len_without_is_empty
fixes #7232
Changes done to the functionality:
Allowing different error types for the functions was disallowed. So the following was linted before but is not after this change
```
impl Foo {
pub len(&self) -> Result<usize, Error1> { todo!(); }
pub is_empty(&self) -> Result<bool, Error2> { todo!(); }
}
```
---
changelog: Enhancement: [`len_without_is_empty`]: Now also detects `async` functions
[#10359 ](https://github.com/rust-lang/rust-clippy/pull/10359 )
<!-- changelog_checked -->
2023-03-09 17:15:23 +00:00
Guillaume Gomez
9b788da2da
Update rustdoc anonymous reexport test and add regression test for #108931
2023-03-09 18:08:22 +01:00
Guillaume Gomez
e8bd4ef1e5
Don't hide anonymous re-exports but never inline them
2023-03-09 18:08:22 +01:00
bors
a45f71265c
Auto merge of #10458 - samueltardieu:multithreading-lintcheck, r=llogiq
...
lintcheck: use multithreading unless --fix or --recursive is used
Use multithreading unless there is a reason not to.
changelog: none
2023-03-09 17:01:20 +00:00
Michael Goulet
3aea46979a
Emit alias-eq when equating numeric var and projection
2023-03-09 16:42:56 +00:00
bors
5f9873497f
Auto merge of #10467 - blyxyas:underscore_typed, r=Jarcho
...
Add `let_with_type_underscore` lint
Fixes #10463
changelog: [`let_with_type_underscore`]: Add the lint.
2023-03-09 16:35:30 +00:00
blyxyas
ca3bf94c43
Add let_with_type_underscore
lint
2023-03-09 17:18:03 +01:00
b-naber
c6d32f4b05
add myself to compiler reviewers list
2023-03-09 16:10:24 +00:00
bohan
d223c26bce
fix(lexer): not skipped whitespace warning for '\x0c'
2023-03-09 22:44:58 +08:00
clubby789
3abcae2beb
Document tool lints
2023-03-09 14:07:20 +00:00
lcnr
3097453f21
improve readability of winnowing
2023-03-09 14:36:54 +01:00
bors
ea4ebed2ed
Auto merge of #10309 - c410-f3r:arith, r=giraffate
...
[arithmetic_side_effects] Fix #10252
Fix #10252
At least for integers, shifts are already handled by the compiler.
----
changelog: [`arithmetic_side_effects`]: No longer lints on right or left shifts with constant integers, as the compiler warns about them.
[#10309 ](https://github.com/rust-lang/rust-clippy/pull/10309 )
<!-- changelog_checked-->
2023-03-09 13:30:11 +00:00
Pietro Albini
9c24608b50
record the cpu usage in a gitignored directory
2023-03-09 13:55:23 +01:00
lcnr
a5258d1721
no more do while
2023-03-09 12:53:03 +01:00
Pietro Albini
1853e113b5
add authors for two apache-2-with-llvm-exception files
2023-03-09 12:24:51 +01:00
Pietro Albini
95a659f252
annotate original authors of the ayu theme
2023-03-09 12:24:50 +01:00
Pietro Albini
3ff2d59ba1
attribute the source code from the enum-primitive crate
2023-03-09 12:24:49 +01:00
Pietro Albini
b33172a2df
replace legacy copyright annotations in submodules
2023-03-09 12:24:47 +01:00
Pietro Albini
9b5ded93f1
clarify the fuchsia code licensing
2023-03-09 12:24:46 +01:00
Pietro Albini
598dd1d7d8
mark the whole library/std/src/sync/mpmc as copyrighted by crossbeam
2023-03-09 12:24:45 +01:00
Pietro Albini
89867e8b45
avoid reuse tripping over copyright notices
2023-03-09 12:24:43 +01:00
Pietro Albini
7b9a8e113b
use the same copyright string for adobe fonts
2023-03-09 12:24:42 +01:00
Pietro Albini
39e8b35df9
split fira sans copyright notice into multiple lines
2023-03-09 12:24:41 +01:00
Pietro Albini
f2d9f6dc12
add notice for rustc_apfloat
2023-03-09 12:24:39 +01:00
Pietro Albini
7455bf4949
add mermaid.min.js notice
2023-03-09 12:24:38 +01:00
Pietro Albini
1e40d081ae
add notice for file generated with unicode data
2023-03-09 12:24:37 +01:00
Pietro Albini
f28e2fb9fd
add normalize.css notice from src/librustdoc/html/static/COPYRIGHT.txt
2023-03-09 12:24:35 +01:00