bors
7ca74ea0af
Auto merge of #91680 - saethlin:spare_capacity_mut-in-join, r=dtolnay
...
Use spare_capacity_mut instead of invalid unchecked indexing when joining str
This is a fix for https://github.com/rust-lang/rust/issues/91574
I think in general I'd prefer to see this code implemented with raw pointers or `MaybeUninit::write_slice`, but there's existing code in here based on copying from slice to slice, so converting everything from `&[T]` to `&[MaybeUninit<T>]` is less disruptive.
2021-12-14 04:29:54 +00: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
0a0f01410d
test
2021-12-14 03:33:18 +00:00
Ellen
7175980ff5
awdawdawd
2021-12-14 03:32:58 +00:00
Andy Russell
4e38807166
core: minor Option
doc correction
2021-12-13 22:23:55 -05: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
ouz-a
b85762f436
test should pass 😅
2021-12-14 01:19:10 +03: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
5cf96e70f4
Add tests for misplaced/duplicated pub in fn decl
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
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
Samuel E. Moelius III
cb609a9904
Add comma
2021-12-13 12:27:47 -05:00
Esteban Kuber
f2fc84f604
fix coverage report test
2021-12-13 17:22:48 +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
Matthias Krüger
dca8ddeade
Rollup merge of #91846 - camelid:doctest-cleanup, r=GuillaumeGomez
...
rustdoc: Reduce number of arguments for `run_test` a bit
- rustdoc: Coalesce some `run_test` args as one `LangString` arg
- Rename `TestOptions` to `GlobalTestOptions`
- doctest: Rename `options` to `rustdoc_options`
2021-12-13 18:15:14 +01:00
Matthias Krüger
e354f0ce87
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
...
Add `-webkit-appearance: none` to search input
This fixes an issue when displaying on iPad, where the search box had no borders.
r? ``@GuillaumeGomez``
Demo https://rustdoc.crud.net/jsha/webkit-appearance-search-input/std/string/struct.String.html
2021-12-13 18:15:13 +01:00
Esteban Kuber
c5287b37fa
fix clippy tests
2021-12-13 17:09:16 +00:00
Esteban Kuber
64f88e8379
fix clippy tests
2021-12-13 17:09:16 +00:00
Esteban Kuber
1c3747e7dd
Fix rebase and clippy tests
2021-12-13 17:09:16 +00:00
Esteban Kuber
1a7f2d5cd9
review comment: change wording of suggestion
2021-12-13 17:09:16 +00:00
Esteban Kuber
d8af82e4bb
Fix clippy uses of QPath::LangItem
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
9ecb141643
tidy fix
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
8888d0d61e
Fix clippy uses of QPath::LangItem
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
bors
1796de7bb1
Auto merge of #91353 - eggyal:reuse-rcs-during-folding, r=lcnr
...
Avoid cloning refcounted types during folding
Addresses FIXME comment created in #78313
r? `@lcnr`
2021-12-13 17:05:40 +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