bors
6b8eb75e12
Auto merge of #15316 - HKalbasi:mir, r=HKalbasi
...
Pass `TraitEnvironment` into `layout_ty` and `const_eval`
We need to do either this or get rid of trait environment in `normalize_ty`. Let's go with this for now.
2023-07-20 09:39:06 +00:00
hkalbasi
eb143383c3
Pass TraitEnvironment
into layout_ty
and const_eval
2023-07-20 13:08:38 +03:30
bors
cecbd3f84a
Auto merge of #15312 - alexkirsz:alexkirsz/resolve-deref-raw-follow-up, r=lnicola
...
Don't follow raw pointer derefs when considering method receiver candidates
In https://github.com/rust-lang/rust-analyzer/pull/15118 , I enabled following raw pointer derefs when considering self type candidates. However, I also inadvertently enabled it for receiver type candidates, which is invalid and causes false positives (see new test).
2023-07-19 17:52:17 +00:00
Alex Kirszenberg
5187533495
Don't follow raw pointer derefs for method receiver type candidates
2023-07-19 19:48:56 +02:00
bors
3759c41d3c
Auto merge of #15287 - lowr:internal/remove-crate-vis, r=lnicola
...
internal: remove `crate` visibility modifier
This PR removes `crate` as a now-unaccepted experimental visibility modifier from our parser. This feature has been [unaccepted] and [removed] from rustc more than a year ago, so I don't think this removal affects anyone.
[unaccepted]: https://github.com/rust-lang/rust/issues/53120#issuecomment-1124065083
[removed]: https://github.com/rust-lang/rust/pull/97239
2023-07-18 14:03:32 +00:00
bors
cc2f0ec32c
Auto merge of #15306 - lnicola:sync-from-rust, r=lnicola
...
minor: Sync from rust
2023-07-17 17:51:07 +00:00
Laurențiu Nicola
84897fd548
Merge remote-tracking branch 'upstream/master' into sync-from-rust
2023-07-17 20:50:20 +03:00
bors
d2b7ab003c
Auto merge of #15304 - HKalbasi:mir, r=HKalbasi
...
Use `.kind(Interner)` instead of `.data(Interner).kind`
2023-07-17 17:27:58 +00:00
hkalbasi
e64a10fc4d
Use .kind(Interner)
instead of .data(Interner).kind
2023-07-17 20:56:31 +03:30
Laurențiu Nicola
4704881b64
Merge commit '37f84c101bca43b11027f30ab0c2852f9325bc3d' into sync-from-ra
2023-07-17 16:49:15 +03:00
bors
37f84c101b
Auto merge of #15301 - bjorn3:uncompressed_dylib_metadata, r=lnicola
...
Support reading uncompressed proc macro metadata
rust-lang/rust#113695 makes the dylib metadata uncompressed for perf reasons. This commit allows reading both the current compressed and future uncompressed dylib metadata.
2023-07-17 13:31:41 +00:00
bjorn3
17a6bb557e
Support reading uncompressed proc macro metadata
...
rust-lang/rust#113695 makes the dylib metadata uncompressed for perf
reasons. This commit allows reading both the current compressed and
future uncompressed dylib metadata.
2023-07-17 13:30:19 +00:00
bors
81744506ca
Auto merge of #15302 - lnicola:sync-from-rust, r=lnicola
...
minor: Sync from rust
2023-07-17 13:10:31 +00:00
Laurențiu Nicola
71499fcd22
Merge remote-tracking branch 'upstream/master' into sync-from-rust
2023-07-17 16:09:39 +03:00
bors
d824511039
Auto merge of #15297 - HKalbasi:mir, r=HKalbasi
...
Normalize type alias in projected_ty
fix #15143
2023-07-16 21:47:00 +00:00
hkalbasi
832eb0d94c
Normalize type alias in projected_ty
2023-07-17 01:16:26 +03:30
bors
ca797d2f88
Auto merge of #15295 - bernardosulzbach:fix-ssr-help-message, r=lnicola
...
Fix rust-analzyer ssr help message
It's missing a `>`, so
```
> rust-analyzer ssr '''$a.foo($b) ==> bar($a, $b)'''
can't parse `rule`, Parse error: Cannot find delimiter `==>>`
```
happens.
2023-07-16 10:21:07 +00:00
Bernardo Sulzbach
0e2c68da64
Fix rust-analzyer ssr help message
2023-07-16 12:12:33 +02:00
bors
bc0628c9b4
Auto merge of #15292 - kberov:patch-1, r=lnicola
...
Update flags.rs
Fixed typo in documentation comment
2023-07-16 07:33:53 +00:00
Красимир Беров
8f169f9642
Update flags.rs
...
Fixed typo in documentation comment
2023-07-16 10:27:20 +03:00
bors
4fad3301b1
Auto merge of #15280 - lnicola:bump-rust-version, r=lnicola
...
minor: Bump rust-version to 1.70 and use the workspace one in xtask
CC https://github.com/rust-lang/rust-analyzer/issues/15279
2023-07-16 06:50:43 +00:00
bors
f4b5c7c8bd
Auto merge of #15291 - rust-lang:revert-15288-15143, r=lnicola
...
Revert "Handle TyAlias in projected_ty"
Reverts rust-lang/rust-analyzer#15288
2023-07-16 06:36:33 +00:00
Laurențiu Nicola
467f5f418e
Revert "Handle TyAlias in projected_ty"
2023-07-16 09:34:35 +03:00
bors
996e054f1e
Auto merge of #15288 - alibektas:15143, r=lnicola
...
Handle TyAlias in projected_ty
First of all I still have no idea how MIR works but #15143 has been an issue that constantly made RA crash so I have been looking for a way to make RA stop panicking. I have zero claims that what I want to merge has any sense or is correct 😄 but there isn't any more panicking. Even if it is wrong may this be at least a step towards resolving this issue.
As is customary this PR fixes #15143
2023-07-15 17:14:13 +00:00
Ali Bektas
f8f19c4288
Change names to sth more presentable
2023-07-15 19:04:59 +02:00
Ali Bektas
75f06ce1fb
Handle TyAlias in projected_ty
2023-07-15 18:32:21 +02:00
Ryo Yoshida
004971f3f0
Remove crate
visibility modifier
2023-07-16 00:01:11 +09:00
bors
789dfd2a25
Auto merge of #15284 - HKalbasi:mir, r=HKalbasi
...
Enable cfg miri in analysis
2023-07-14 19:30:35 +00:00
hkalbasi
41b8b0b77d
Enable cfg miri in analysis
2023-07-14 22:59:46 +03:30
bors
8e5f944317
Auto merge of #15282 - HKalbasi:mir, r=HKalbasi
...
Give real discriminant_type to chalk
2023-07-14 16:46:35 +00:00
hkalbasi
50559118fb
Give real discriminant_type to chalk
2023-07-14 20:15:18 +03:30
hkalbasi
5208bf8f55
implement type_name intrinsic
2023-07-14 16:52:36 +03:30
Laurențiu Nicola
424da10077
Bump rust-version to 1.70 and use the workspace one in xtask
2023-07-14 16:15:26 +03:00
bors
c7ce8add14
Auto merge of #15265 - tetsuharuohzeki:update-dependencies, r=lnicola
...
editor/code: Update dependencies
This includes:
- Some major changes.
- [typescript-eslint v6](https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/ )
- [prettier v3](https://prettier.io/blog/2023/07/05/3.0.0.html )
- ~Update ``@types/vscode`` to [1.79](https://code.visualstudio.com/updates/v1_79 ).~
- ~[1.80 has been released](https://code.visualstudio.com/updates/v1_80 ). We can now bump it.~
- _Update1: I removed this change. See the below comments_
- and some patch/minor updates.
2023-07-13 16:06:42 +00:00
Tetsuharu Ohzeki
085b755123
editor/code: Update esbuild
...
https://github.com/evanw/esbuild/blob/main/CHANGELOG.md
2023-07-13 22:46:15 +09:00
Tetsuharu Ohzeki
d534180b30
editor/code: Update ESLint
...
https://eslint.org/blog/category/release-notes/
2023-07-13 22:45:11 +09:00
Tetsuharu Ohzeki
837ded9c9a
editor/code: Update ovsx
...
https://github.com/eclipse/openvsx/blob/master/cli/CHANGELOG.md
2023-07-13 22:45:10 +09:00
Tetsuharu Ohzeki
f7823f3106
editor/code: Re-apply code format
2023-07-13 22:44:29 +09:00
Tetsuharu Ohzeki
9d06aa55b4
editor/code: Update prettier to v3
...
https://prettier.io/blog/2023/07/05/3.0.0.html
2023-07-13 22:44:29 +09:00
Tetsuharu Ohzeki
eed1888b81
editor/code: Update typescript-eslint to v6
...
https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/
2023-07-13 22:44:29 +09:00
Tetsuharu Ohzeki
143646d17e
editor/code: Update typescript
2023-07-13 22:44:29 +09:00
bors
6acb989448
Auto merge of #15275 - Veykril:ci-metrics, r=Veykril
...
Default to stable toolchain for metrics workflow
Metrics CI is failing because of a function that was stabilized in 1.70. So for some reason, it's trying to use an older toolchain i seems though I don't understand why it randomly started complaining about that.
2023-07-13 08:55:21 +00:00
Lukas Wirth
415b527855
Default to stable toolchain for metrics workflow
2023-07-13 10:54:24 +02:00
bors
f6ae0c11ac
Auto merge of #15270 - ChristianSchott:patch-1, r=HKalbasi
...
Make fields of mir::Terminator public
When trying to use the RA crate, I am unable to access the fields in `hir_def::mir::Terminator`.
I don't see any reason, why these should be private, especially as the fields of `hir_def::mir::Statement` are `pub`.
I am not sure if the fields in `hir_def::mir::SwitchTargets` should be made `pub` too, but at least they are read-accessible via some public methods..
Sorry if I missed something, this is my first PR.
2023-07-13 07:54:44 +00:00
bors
132ba2cf77
Auto merge of #15248 - Veykril:eager, r=Veykril
...
Fix eager token mapping panics
2023-07-13 07:39:30 +00:00
Lukas Wirth
6a7b905c86
Fix the eager token maps by re-mapping the textranges between the input and input expansion
2023-07-13 09:22:38 +02:00
bors
215b149a8b
Auto merge of #15272 - lnicola:links, r=lnicola
...
minor: Use a permalink to the SIMD line index code, and add a note on the GitHub API
2023-07-12 23:34:43 +00:00
bors
d16d5fcf68
Auto merge of #15268 - HKalbasi:mir, r=HKalbasi
...
Add write_bytes and ctlz intrinsics
2023-07-12 23:19:30 +00:00
bors
642420fb60
Auto merge of #15267 - lowr:patch/exceeding-exec-limit-is-slow, r=lnicola
...
Mark test for MIR execution limit as slow test
The test for MIR execution limit accounts for ~2/3 of total execution time of non-slow hir-ty tests. It significantly slows down edit-and-run-test type of workflow. Can we mark it as a slow test?
2023-07-12 23:04:16 +00:00
bors
584dca4a35
Auto merge of #15266 - tetsuharuohzeki:cleanup-editor-config, r=lnicola
...
Set .editorconfig default indent size to `4`
We uses `indent_size = 4` for almost files in this repository. This sorts the config to it.
2023-07-12 22:45:28 +00:00