pierwill
535278aa51
Add run-make-fulldeps test
...
Implement RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER
Also makes minor docs edits.
2021-12-13 10:24:06 -06:00
pierwill
7d7dfba350
Include rustc version in rustc_span::StableCrateId
...
Normalize symbol hashes in compiletest.
Remove DefId sorting
2021-12-13 10:24:05 -06:00
Jakub Beránek
ac08f13948
Remove sort from hashing hashset, treeset and treemap
2021-12-13 16:11:28 +01:00
Jack Huey
48974158f1
Adjust wording for review
2021-12-13 10:06:57 -05:00
Alan Egerton
5920a1d948
Avoid cloning refcounted types during folding
2021-12-13 14:27:26 +00:00
bors
06a6674a7d
Auto merge of #91657 - nikic:update-llvm, r=cuviper
...
Update LLVM submodule
Update LLVM submodule with recent cherry-picks. In particular:
* https://github.com/rust-lang/llvm-project/pull/123
* https://github.com/rust-lang/llvm-project/pull/124
2021-12-13 13:37:53 +00:00
Lucas Kent
fae40c5070
Suggest to specify a target triple when eh_personality lang item is missing
2021-12-14 00:04:15 +11:00
Andy Wang
5e481d07d2
Provide object files to llvm-dwp instead of .dwo
2021-12-13 12:09:10 +00:00
Samuel E. Moelius III
3807905e08
Handle to_vec
on for loop expression #8069
2021-12-13 07:04:57 -05:00
Jonas Berlin
715c562d71
[ReviewFix] Linguistics
2021-12-13 13:52:17 +02:00
Andy Wang
707f72c1df
Revert "Produce .dwo file for Packed as well"
...
This reverts commit 32810223c6b743de889eda96b442f621c293a848.
2021-12-13 11:40:59 +00:00
Samuel E. Moelius III
290f74be4e
Address review comments
...
* Share a list of methods with `implicit_clone`
* Ensure no overlap with `redundant_clone`
2021-12-13 06:31:17 -05:00
Samuel E. Moelius III
468c86e4a3
Add unnecessary_to_owned
lint
2021-12-13 06:31:17 -05:00
Jonas Berlin
7f2f9c60c2
Iterator::cycle() — document empty iterator special case
2021-12-13 13:23:33 +02:00
bors
a737592a3d
Auto merge of #91654 - nikic:llvmbc-section-flags, r=nagisa
...
Use module inline assembly to embed bitcode
In LLVM 14, our current method of setting section flags to avoid
embedding the `.llvmbc` section into final compilation artifacts
will no longer work, see issue #90326 . The upstream recommendation
is to instead embed the entire bitcode using module-level inline
assembly, which is what this change does.
I've kept the existing code for platforms where we do not need to
set section flags, but possibly we should always be using the
inline asm approach (which would have to look a bit different for MachO).
r? `@nagisa`
2021-12-13 10:35:28 +00:00
ouz-a
a01b13dede
formatting
2021-12-13 12:59:31 +03:00
ouz-a
01948e2f45
Looser check for binary_op_overflow
2021-12-13 12:35:55 +03:00
Konrad Borowski
23e4aeb140
Stabilize const_cstr_unchecked
2021-12-13 08:43:19 +01:00
bors
6d6d0899c8
Auto merge of #91626 - klensy:json-less-alloc, r=petrochenkov
...
rustc_serialize: don't allocate `String`s as key for `BTreeMap`, when `str` is enough
2021-12-13 07:30:38 +00:00
Jack Huey
7cbd0dcf93
I wrote these functions, I should use them dang it
2021-12-13 01:10:39 -05:00
Jack Huey
8a28c172a1
Instead of checking for exact bounds, try to prove them
2021-12-13 00:48:46 -05:00
woppopo
2a5a6680fc
Make MaybeUninit::zeroed
const
2021-12-13 14:17:35 +09:00
Jacob Hoffman-Andrews
da472a5a84
Add -webkit-appearance: none to search input
...
This fixes an issue when displaying on iPad, where the search box had no
borders.
2021-12-12 20:33:18 -08:00
bors
4a7fb971c9
Auto merge of #91569 - erikdesjardins:vt-align, r=nikic
...
Attach range metadata to alignment loads from vtables
...because alignment is always nonzero[0].
This helps eliminate redundant runtime alignment checks, when a DST
is a field of a struct whose remaining fields have alignment 1.
Fixes #91438 .
---
[0]:
The [reference](https://doc.rust-lang.org/reference/type-layout.html ) says that alignment must be at least 1.
And in practice, the alignment field for all vtables is generated here: 772d51f887/compiler/rustc_middle/src/ty/vtable.rs (L68-L90)
and is nonzero because [`Align::bytes()`](772d51f887/compiler/rustc_target/src/abi/mod.rs (L547-L549)
) is always nonzero.
2021-12-13 04:29:20 +00:00
Ellen
6c79595134
extra test for bug i found
2021-12-13 03:33:14 +00:00
Ellen
5ab1329b58
hurray for portable simd finding a nice test for this FIXME
2021-12-13 03:16:00 +00:00
Cormac Relf
fec8a507a2
let-else: add deref-coercion tests
2021-12-13 14:02:41 +11:00
Cormac Relf
2715c5f984
let-else: add match-ergonomics tests adapted from rfc2005
...
collect explicit-mut passing tests in one file
2021-12-13 14:02:41 +11:00
Cormac Relf
102b9125e1
let-else: build out ref/ref mut tests, with/without explicit annotations
...
expands issue 89960
2021-12-13 14:02:41 +11:00
Cormac Relf
61bcd8d307
let-else: add tests for moved expressions, copy out of non-copy
2021-12-13 14:02:41 +11:00
Cormac Relf
34a98192d5
let-else: use hir::Let in clippy
...
fix clippy format using `cargo fmt -p clippy_{lints,utils}`
manually revert rustfmt line truncations
rename to hir::Let in clippy
Undo the shadowing of various `expr` variables after renaming `scrutinee`
reduce destructuring of hir::Let to avoid `expr` collisions
cargo fmt -p clippy_{lints,utils}
bless new clippy::author output
2021-12-13 14:02:41 +11:00
Cormac Relf
9b45713b6c
let-else: fix attribute aliasing + add test for issue 89807
2021-12-13 14:02:41 +11:00
Cormac Relf
af2f0e6b7c
let-else: add hir::Let and type check it like a hir::Local
...
unify typeck of hir::Local and hir::Let
remove extraneous pub(crate/super)
2021-12-13 14:02:19 +11:00
Noah Lev
9afa190c44
doctest: Rename options
to rustdoc_options
...
These are the rustdoc-wide options. It's easy to confuse them with
options for doctests in particular, so this change should help.
2021-12-12 17:46:19 -08:00
Noah Lev
5e33e6affd
Rename TestOptions
to GlobalTestOptions
...
It seems to apply to all doctests in the crate.
2021-12-12 17:46:19 -08:00
Noah Lev
b345e18462
rustdoc: Coalesce some run_test
args as one LangString
arg
2021-12-12 17:46:18 -08:00
bors
f7fd79ac1d
Auto merge of #91841 - matthiaskrgr:rollup-zlhsg5a, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #91086 (Implement `TryFrom<&'_ mut [T]>` for `[T; N]`)
- #91091 (Stabilize `ControlFlow::{is_break, is_continue}`)
- #91749 (BTree: improve public descriptions and comments)
- #91819 (rustbot: Add autolabeling for `T-compiler`)
- #91824 (Make `(*mut T)::write_bytes` `const`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2021-12-13 00:56:18 +00:00
Amanieu d'Antras
e1139cf570
Fix clippy tests
2021-12-13 00:00:51 +00:00
Amanieu d'Antras
ead68f0e5c
Fix clippy tests
2021-12-13 00:00:51 +00:00
Tomasz Miąsko
3f2a1c9c17
Use OutputFilenames
to generate output file for -Zllvm-time-trace
...
The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.
This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
2021-12-13 00:00:00 +00:00
Matthias Krüger
9e662d0c03
Rollup merge of #91824 - woppopo:const_ptr_write_bytes, r=oli-obk
...
Make `(*mut T)::write_bytes` `const`
Tracking issue: #86302
2021-12-13 00:20:10 +01:00
Matthias Krüger
3b79d4f0b7
Rollup merge of #91819 - rust-lang:compiler-autolabel, r=jackh726
...
rustbot: Add autolabeling for `T-compiler`
This commit adds autolabeling for the `T-compiler` label, for PRs that
modify rustc's source code or tests (currently only `src/test/ui`).
This is possible now that rust-lang/triagebot#1321 has landed.
2021-12-13 00:20:09 +01:00
Matthias Krüger
87cda671e5
Rollup merge of #91749 - ssomers:btree_comments, r=Mark-Simulacrum
...
BTree: improve public descriptions and comments
BTreeSet has always used the term "value" next to and meaning the same thing as "elements" (in the mathematical sense but also used for key-value pairs in BTreeMap), while in the BTreeMap sense these "values" are known as "keys" and definitely not "values". Today I had enough of that.
r? `@Mark-Simulacrum`
2021-12-13 00:20:08 +01:00
Matthias Krüger
6227d42928
Rollup merge of #91091 - ecstatic-morse:control-flow-enum-is, r=m-ou-se
...
Stabilize `ControlFlow::{is_break, is_continue}`
The type itself was stabilized in 1.55, but using it is not ergonomic without these helper functions. Stabilize them.
r? rust-lang/libs-api
2021-12-13 00:20:07 +01:00
Matthias Krüger
42f8d4833f
Rollup merge of #91086 - rhysd:issue-91085, r=m-ou-se
...
Implement `TryFrom<&'_ mut [T]>` for `[T; N]`
Fixes #91085 .
2021-12-13 00:20:06 +01:00
Jakub Beránek
6e33d3ecc2
Use modular arithmetic
2021-12-12 23:48:11 +01:00
bors
22f8bde876
Auto merge of #91549 - fee1-dead:const_env, r=spastorino
...
Eliminate ConstnessAnd again
Closes #91489 .
Closes #89432 .
Reverts #91491 .
Reverts #89450 .
r? `@spastorino`
2021-12-12 22:15:32 +00:00
bors
41c48bd390
Auto merge of #91549 - fee1-dead:const_env, r=spastorino
...
Eliminate ConstnessAnd again
Closes #91489 .
Closes #89432 .
Reverts #91491 .
Reverts #89450 .
r? `@spastorino`
2021-12-12 22:15:32 +00:00
Amanieu d'Antras
76cd709f9e
Fix unused import in test
2021-12-12 21:11:15 +00:00
Jakub Beránek
a5f5f6b689
Avoid sorting in hash map stable hashing
2021-12-12 20:57:24 +01:00