Michael Goulet
75729afcc0
Fix HashStable implementation on InferTy
2021-12-13 20:36:17 -08:00
Peter Jaszkowiak
7085b4e117
Remove in_band_lifetimes from rustc_hir
2021-12-13 21:33:53 -07:00
LegionMammal978
a19eaf3542
Remove in_band_lifetimes from rustc_const_eval
...
See #91867 for more information.
2021-12-13 22:39:00 -05:00
Ellen
7175980ff5
awdawdawd
2021-12-14 03:32:58 +00:00
PFPoitras
ae21dd00ac
Remove in_band_lifetimes
2021-12-13 21:45:08 -04:00
bors
a2d25b4ff7
Auto merge of #91660 - llogiq:make-a-hash-of-def-ids, r=nnethercote
...
manually implement `Hash` for `DefId`
This might speed up hashing for hashers that can work on individual u64s. Just as an experiment, suggested in a reddit thread on `FxHasher`. cc `@nnethercote`
Note that this should not be merged as is without cfg-ing the code path for 64 bits.
2021-12-14 01:39:01 +00:00
Amanieu d'Antras
6ab488af57
Fix lint examples on non-x86_64
2021-12-14 00:13:27 +00:00
LegionMammal978
375524014f
Remove in_band_lifetimes from rustc_infer
...
This crate actually had a typo `'ctx` in one of its functions:
```diff
-pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
+pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
```
2021-12-13 17:53:27 -05:00
b-naber
f3ecd64c61
use try_normalize_erasing_regions in RevealAllVisitor
2021-12-13 23:13:24 +01:00
b-naber
399ab40dbd
get rid of normalize_generic_arg... queries
2021-12-13 23:05:25 +01:00
b-naber
8250eef685
normalize_generic_arg_after in terms of try version
2021-12-13 23:04:09 +01:00
Alexis Bourget
be33ca7d5b
Use Inherited Visibility instead of None when no vis is present
2021-12-13 22:41:42 +01:00
ouz-a
b6c80985bd
Add regression test and comment
2021-12-14 00:15:50 +03:00
Amanieu d'Antras
d1204ac3b1
Remove invalid doc links.
2021-12-13 20:40:17 +00:00
Alexis Bourget
b0806b2de9
Update test to new error message
2021-12-13 21:36:35 +01:00
Alexis Bourget
5c9950023b
Suggest remove on const async const instead of const const async
2021-12-13 21:36:35 +01:00
Alexis Bourget
7bc8577d99
Fix broken span and related tests
2021-12-13 21:36:35 +01:00
Alexis Bourget
b88a612d9a
Change error for pub in fn decl if already present
2021-12-13 21:36:32 +01:00
Jakub Beránek
1f284b07ed
Add special case for length 1
2021-12-13 21:34:54 +01:00
Hans Kratz
3011154573
Revert "Set MACOSX_DEPLOYMENT_TARGET env var to default for linking if not set."
...
This reverts commit b376f5621b , which is
the main part of #90499 , because it turns out that this causes a good
amount of breakage in crates relying on the old behavior.
Fixes #91372 .
2021-12-13 21:31:48 +01:00
bors
8f117a77d0
Auto merge of #91865 - matthiaskrgr:rollup-rai9ecq, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #91699 (Add `-webkit-appearance: none` to search input)
- #91846 (rustdoc: Reduce number of arguments for `run_test` a bit)
- #91847 (Fix FIXME for `generic_arg_infer` in `create_substs_for_ast_path`)
- #91849 (GATs outlives lint: Try to prove bounds)
- #91855 (Stabilize const_cstr_unchecked)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2021-12-13 20:12:35 +00:00
Matthias Krüger
ff214b745d
Rollup merge of #91855 - xfix:const_cstr_unchecked, r=dtolnay
...
Stabilize const_cstr_unchecked
Closes #90343
``@rustbot`` modify labels: +T-libs-api
2021-12-13 18:15:17 +01:00
Matthias Krüger
84878336b0
Rollup merge of #91849 - jackh726:gats-outlives-lint-part2, r=nikomatsakis
...
GATs outlives lint: Try to prove bounds
Fixes #91036
Fixes #90888
Fixes #91348 (better error + documentation to be added to linked issue)
Instead of checking for bounds directly, try to prove them in the associated type environment.
Also, add a bit of extra information to the error, including a link to the relevant discussion issue (#87479 ). That should be edited to include a brief summary of the current state of the outlives lint, including a brief background. It also might or might not be worth it to bump this to a full error code at some point.
r? ``@nikomatsakis``
2021-12-13 18:15:16 +01:00
Matthias Krüger
f8de2f56e8
Rollup merge of #91847 - BoxyUwU:generic_arg_infer_fixme, r=lcnr
...
Fix FIXME for `generic_arg_infer` in `create_substs_for_ast_path`
Fixes a FIXME, does some general refactoring of this fn, and also fixes a bug where we would use a const params defaults instead of an inference var ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=19456f65ea5dc3fcaa9b696f842ab380 ))
(lot of stuff in one PR but it was all so close together...)
r? `@lcnr`
Fixes #91614
2021-12-13 18:15:15 +01:00
Esteban Kuber
1a7f2d5cd9
review comment: change wording of suggestion
2021-12-13 17:09:16 +00:00
Esteban Kuber
64dea33a3d
review comments
2021-12-13 17:09:16 +00:00
Esteban Kuber
d59f74aeaf
Simplify diagnostic logic
...
The spans no longer overlap, so we no longer need to specialize the
output depending on whether they would.
2021-12-13 17:09:16 +00:00
Esteban Kuber
b825b0fe63
Fix rebase and clippy tests
2021-12-13 17:09:16 +00:00
Esteban Kuber
f640438b40
Keep info on pre-desugaring expression for better "incorrect .await" suggestion
...
Keep the `HirId` of `.await`ed expressions so in the case of a `fn` call
on on a sync `fn`, we can suggest maybe turning it into an `async fn`.
2021-12-13 17:09:16 +00:00
Esteban Kuber
d45e030c04
Fix mistake
2021-12-13 17:09:15 +00:00
Esteban Kuber
4f2b1c0650
Remove unnecessary argument
2021-12-13 17:09:15 +00:00
Esteban Kuber
79749d64fa
Remove yet more output from for-loop and ? errors
2021-12-13 17:09:15 +00:00
Esteban Kuber
81a3b90afd
Further silence ? errors
2021-12-13 17:09:15 +00:00
Esteban Kuber
caf0c1bb1c
Reduce verbosity for ? on non-Try expressions
2021-12-13 17:09:15 +00:00
Esteban Kuber
75b62757e4
Reduce verbosity when calling for-loop on non-Iterator expression
2021-12-13 17:09:15 +00:00
Esteban Kuber
7227a87371
When .await is called on a non-Future expression, suggest removal
...
Keep track of the origin of a `T: Future` obligation when caused by an
`.await` expression.
Address #66731 .
2021-12-13 17:09:15 +00:00
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
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
Andy Wang
707f72c1df
Revert "Produce .dwo file for Packed as well"
...
This reverts commit 32810223c6 .
2021-12-13 11:40:59 +00: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
Axel Cohen
75d1208df8
Fix conditions for using legacy or new pm plugins
2021-12-13 10:43:02 +01:00
Axel Cohen
c4f29fa0ed
Use the existing llvm-plugins option for both legacy and new pm registration
2021-12-13 10:41:43 +01:00
Axel Cohen
97cf461b8f
Add a codegen option to allow loading LLVM pass plugins
2021-12-13 10:40:44 +01:00
ouz-a
01948e2f45
Looser check for binary_op_overflow
2021-12-13 12:35:55 +03:00