bors
02c240ff81
Auto merge of #12898 - Veykril:compl-pat-brace, r=Veykril
...
fix: Fix pattern completions adding unnecessary braces
Fixes https://github.com/rust-lang/rust-analyzer/issues/12852
2022-07-28 13:48:12 +00:00
Lukas Wirth
7c59d7c75c
fix: Fix pattern completions adding unnecessary braces
2022-07-28 15:47:46 +02:00
Jack Wrenn
e8a1925b64
safe transmute: use AtomicU32
State
ids to appease mips
...
...instead of `AtomicU64`, which is unavailable.
ref: https://github.com/rust-lang/rust/pull/92268#issuecomment-1197797990
2022-07-28 13:47:11 +00:00
bors
e5682615bb
Auto merge of #99849 - Dylan-DPC:rollup-1yfpplw, r=Dylan-DPC
...
Rollup of 5 pull requests
Successful merges:
- #99714 (Fix regression introduced with #99383 )
- #99723 (Allow using stable os::fd::raw items through unstable os::wasi module)
- #99810 (Fix settings slider on small width screens)
- #99837 (Avoid `Symbol` to `String` conversions)
- #99846 (Refactor `UnresolvedImportError`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-07-28 13:32:35 +00:00
Maybe Waffle
620b0f1935
improve type mismatch error for functions
...
This also fixes the argument names in `report_closure_arg_mismatch`
(confusing expected/found)
2022-07-28 17:29:47 +04:00
Tomasz Miąsko
01f4534b42
Build rust demangler before running run-make tests
2022-07-28 14:33:29 +02:00
Tomasz Miąsko
2e7b421778
Diagnose missing make includes
2022-07-28 14:33:29 +02:00
Tomasz Miąsko
866d5c621c
Move coverage tests from run-make-fulldeps to run-make
2022-07-28 14:33:29 +02:00
Nilstrieb
11c0280798
bless mir opt tests
2022-07-28 14:24:44 +02:00
Yotam Ofek
ee0ce346e8
Fix small typo in Cargo.toml comment
2022-07-28 14:29:58 +03:00
Dylan DPC
71b0e95b82
Rollup merge of #99846 - TaKO8Ki:refactor-UnresolvedImportError, r=davidtwco
...
Refactor `UnresolvedImportError`
This patch changes the type of `note` field in `UnresolvedImportError` to `Option<String>`.
2022-07-28 16:38:35 +05:30
Dylan DPC
3a37c9a47e
Rollup merge of #99837 - TaKO8Ki:avoid-symbol-to-string-conversions, r=fee1-dead
...
Avoid `Symbol` to `String` conversions
follow-up to #99508
2022-07-28 16:38:34 +05:30
Dylan DPC
3c4a66d04e
Rollup merge of #99810 - GuillaumeGomez:fix-settings-slider-small-width, r=notriddle
...
Fix settings slider on small width screens
Fixes #99794 .
Screenshot of the fix:
![Screenshot from 2022-07-27 14-17-08](https://user-images.githubusercontent.com/3050060/181250007-55f982d1-89db-45b7-a4f1-0d1729e6a3e3.png )
cc `````@jsha`````
r? `````@notriddle`````
2022-07-28 16:38:31 +05:30
Dylan DPC
f3266923fe
Rollup merge of #99723 - bstrie:wasifd, r=yaahc
...
Allow using stable os::fd::raw items through unstable os::wasi module
This fixes a regression from stable to nightly.
Closes #99502 .
2022-07-28 16:38:31 +05:30
Dylan DPC
91b8b9ba4b
Rollup merge of #99714 - ouz-a:issue_57961, r=oli-obk
...
Fix regression introduced with #99383
Fixes #99642
2022-07-28 16:38:30 +05:30
Guillaume Gomez
660dc6f393
Remove Clean trait implementation for VariantData fields
2022-07-28 13:08:08 +02:00
Guillaume Gomez
961dce44a9
Remove Clean trait implementation for VariantStruct
2022-07-28 13:05:19 +02:00
ouz-a
bd24b4006c
type alias covers whole return
2022-07-28 13:52:49 +03:00
bors
05e678ccca
Auto merge of #99756 - fasterthanlime:ra-sync-and-pms-component, r=Mark-Simulacrum
...
Sync `rust-analyzer`, add `rust-analyzer-proc-macro-srv` binary to Rustc component
As discussed earlier with `@jyn514` and `@pietroalbini,` I'm also going to use this PR to have `dist::Rustc` build the `rust-analyzer-proc-macro-srv` binary introduced in:
* https://github.com/rust-lang/rust-analyzer/pull/12871
2022-07-28 10:51:46 +00:00
klensy
43512e6745
update few deps
...
openssl-src v111.18.0+1.1.1n -> v111.22.0+1.1.1q
openssl-probe v0.1.2 -> v0.1.5
indoc v1.0.3 -> v1.0.6
bstr v0.2.13 -> v0.2.17
crc32fast v1.2.0 -> v1.3.2
diff v0.1.12 -> v0.1.13
ignore v0.4.17 -> v0.4.18
globset v0.4.5 -> v0.4.9
regex v1.5.5 -> v1.5.6
2022-07-28 13:22:34 +03:00
Nilstrieb
7cf7ead0bc
Use line numbers relative to function in mir opt tests
...
This adds a new option, `-Zmir-pretty-relative-line-numbers`, that
is then used in compiletest for the mir-opt tests.
2022-07-28 11:59:54 +02:00
ouz-a
bd52f58e3b
create type alias
2022-07-28 12:56:57 +03:00
Guillaume Gomez
c2c70e20bc
Remove Clean trait implementation for ty::Visibility
2022-07-28 11:52:59 +02:00
Takayuki Maeda
2ce42eb79c
remove an unnecessary line break
2022-07-28 18:28:29 +09:00
xtexChooser
957fe0ba61
Update custom.md
2022-07-28 17:21:04 +08:00
Takayuki Maeda
089471b129
change the type of note
field to Option<String>
2022-07-28 18:17:55 +09:00
bjorn3
7c6c7e8785
Introduce an ArchiveBuilderBuilder
...
This avoids monomorphizing all linker code for each codegen backend and
will allow passing in extra information to the archive builder from the
codegen backend.
2022-07-28 09:08:47 +00:00
Oli Scherer
803d374f9b
Pass PatCtxt instead of passing MatchCtxt + Ty separately
2022-07-28 08:49:39 +00:00
Oli Scherer
544de44a6b
Don't pass (the rather large) PatCtxt
by value
2022-07-28 08:44:49 +00:00
bjorn3
90da3c6f2b
Inline inject_dll_import_lib
2022-07-28 08:43:15 +00:00
bjorn3
7c93154a30
Move output argument from ArchiveBuilder::new to .build()
2022-07-28 08:39:19 +00:00
Oli Scherer
970ff3d45d
Move constructor into the branch that actually uses it
2022-07-28 08:33:36 +00:00
bors
02f9ec4be5
Auto merge of #12895 - Veykril:compl-anchor, r=Veykril
...
fix: Calculate completions after type anchors
Fixes https://github.com/rust-lang/rust-analyzer/issues/12892
2022-07-28 08:06:58 +00:00
Lukas Wirth
e782e59d3d
fix: Calculate completions after type anchors
2022-07-28 10:06:36 +02:00
bors
70bca2988b
Auto merge of #9253 - Serial-ATA:fix-fmt-err, r=flip1995
...
Tell the user how to revert `dev setup intellij`
changelog: none
2022-07-28 07:54:15 +00:00
Serial
1ed7bff32c
Tell the user how to revert dev setup intellij
2022-07-28 03:40:21 -04:00
Preston From
1b2e05e212
Use more idiomatic rust, comment for lint logic
2022-07-28 00:10:19 -06:00
Takayuki Maeda
3cbc94427c
avoid Symbol
to String
conversions
2022-07-28 10:20:55 +09:00
bors
48316dfea1
Auto merge of #99182 - RalfJung:mitigate-uninit, r=scottmcm
...
mem::uninitialized: mitigate many incorrect uses of this function
Alternative to https://github.com/rust-lang/rust/pull/98966 : fill memory with `0x01` rather than leaving it uninit. This is definitely bitewise valid for all `bool` and nonnull types, and also those `Option<&T>` that we started putting `noundef` on. However it is still invalid for `char` and some enums, and on references the `dereferenceable` attribute is still violated, so the generated LLVM IR still has UB -- but in fewer cases, and `dereferenceable` is hopefully less likely to cause problems than clearly incorrect range annotations.
This can make using `mem::uninitialized` a lot slower, but that function has been deprecated for years and we keep telling everyone to move to `MaybeUninit` because it is basically impossible to use `mem::uninitialized` correctly. For the cases where that hasn't helped (and all the old code out there that nobody will ever update), we can at least mitigate the effect of using this API. Note that this is *not* in any way a stable guarantee -- it is still UB to call `mem::uninitialized::<bool>()`, and Miri will call it out as such.
This is somewhat similar to https://github.com/rust-lang/rust/pull/87032 , which proposed to make `uninitialized` return a buffer filled with 0x00. However
- That PR also proposed to reduce the situations in which we panic, which I don't think we should do at this time.
- The 0x01 bit pattern means that nonnull requirements are satisfied, which (due to references) is the most common validity invariant.
`@5225225` I hope I am using `cfg(sanitize)` the right way; I was not sure for which ones to test here.
Cc https://github.com/rust-lang/rust/issues/66151
Fixes https://github.com/rust-lang/rust/issues/87675
2022-07-28 01:11:10 +00:00
Takayuki Maeda
c0a22a0209
suggest adding/removing ref
for binding patterns
2022-07-28 09:55:12 +09:00
bors
cdd4dfc6d6
Auto merge of #9182 - Serial-ATA:new_lint-type-flag, r=xFrednet
...
Add `--type` flag to `dev new_lint`
changelog: none
This only works with directories, `--type={copies, doc, ...}` won't work. Should they be counted?
2022-07-27 22:17:29 +00:00
bors
ada80a13b9
Auto merge of #99725 - lcnr:dedup-region_bound_pairs, r=compiler-errors
...
use `FxIndexSet` for `region_bound_pairs`
should help with #99217 and might generally be a perf improvement.
r? types
2022-07-27 22:02:14 +00:00
Serial
8319196499
Document --type
flag
2022-07-27 17:59:56 -04:00
Vincenzo Palazzo
1e584d2d6d
add suggestion when there is a impl of external trait on pointer
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-07-27 21:53:37 +00:00
bors
40875353a5
Auto merge of #12891 - brennanvincent:expander_stack, r=lnicola
...
Use large stack on expander thread
I have verified that this fixes #12884 for me.
Hat tip to `@bjorn3` for identifying the cause of the issue.
2022-07-27 19:40:59 +00:00
Brennan Vincent
f83738e1d9
Use large stack on expander thread
2022-07-27 15:02:34 -04:00
bors
2643b16468
Auto merge of #99816 - GuillaumeGomez:rollup-tyobksa, r=GuillaumeGomez
...
Rollup of 7 pull requests
Successful merges:
- #94247 (Fix slice::ChunksMut aliasing)
- #99358 (Allow `ValTree::try_to_raw_bytes` on `u8` array)
- #99651 (Deeply deny fn and raw ptrs in const generics)
- #99710 (lint: add bad opt access internal lint)
- #99717 (Add some comments to the docs issue template to clarify)
- #99728 (Clean up HIR-based lifetime resolution)
- #99812 (Fix headings colors)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-07-27 18:22:33 +00:00
Michael Howell
2f03cbdc8e
rustdoc: remove Clean trait impl for ty::GenericParamDef
2022-07-27 11:13:39 -07:00
Michael Howell
3ea9916625
rustdoc: remove Clean trait impl for hir::Term
2022-07-27 11:08:22 -07:00
Michael Howell
8aca8835a0
rustdoc: remove Clean trait impl for ty::Term
2022-07-27 11:04:54 -07:00