Lukas Wirth
537f4b258f
Merge pull request #18928 from roife/fix-18918
...
fix: handle character boundary in search mode
2025-02-12 14:07:51 +00:00
Lukas Wirth
2de75297fc
Merge pull request #19109 from Veykril/push-nzpuuqommpnq
...
fix: Do not show safety hints for extern items lacking semantics
2025-02-12 13:58:56 +00:00
roife
0d8015cb23
fix: handle character boundary in search mode
2025-02-12 14:47:28 +01:00
Lukas Wirth
a09ece2925
fix: Do not show safety hints for extern items lacking semantics
2025-02-12 14:43:51 +01:00
Lukas Wirth
4a1559344f
Merge pull request #19111 from ShoyuVanilla/issue-19021
...
fix: Apply adjustments to proper expr when invoking `CoerceMany`
2025-02-12 13:42:52 +00:00
Lukas Wirth
53e687058c
Merge pull request #19110 from eagr/panic-context
...
Simplify panic_context
2025-02-12 13:41:11 +00:00
Lukas Wirth
815919578b
Merge pull request #19125 from ChayimFriedman2/cfg-attr-fast
...
fix: Censor cfg_attr for attribute macros
2025-02-12 13:38:24 +00:00
Lukas Wirth
444c2f961a
Merge pull request #18995 from alibektas/12210
...
fix: Lower range pattern bounds to expressions
2025-02-12 11:58:33 +00:00
Lukas Wirth
ad8c6c6b46
Merge pull request #19129 from ChayimFriedman2/snippet-macro
...
fix: Fix postfix completions inside macros
2025-02-12 11:55:46 +00:00
Lukas Wirth
f504084d4b
Merge pull request #19132 from joshrotenberg/book-readme-run-codegen
...
doc: add xtask codegen command in development README as well
2025-02-12 11:49:11 +00:00
Lukas Wirth
9a257e94ce
Merge pull request #19136 from rust-lang/dependabot/npm_and_yarn/editors/code/esbuild-0.25.0
...
Bump esbuild from 0.18.12 to 0.25.0 in /editors/code
2025-02-12 11:48:43 +00:00
gohome001
c12a2e750d
minor: don't show drop hints for other pattern
2025-02-12 17:18:42 +08:00
Lukas Wirth
4aa318c35c
Merge pull request #19143 from Veykril/push-mkokotluzskw
...
Propogate error types in mir type projections
2025-02-12 08:40:43 +00:00
Lukas Wirth
3a041fcc2c
Propogate error types in mir type projections
2025-02-12 09:24:33 +01:00
Lukas Wirth
8ddf82b5b7
Merge pull request #19140 from joshrotenberg/remove-mdbook-toc-config
...
doc: remove unused plugin config
2025-02-12 07:48:50 +00:00
Lukas Wirth
98096fedac
Merge pull request #19139 from Wilfred/fix_assists_urls
...
manual: Fix URLs to rustdoc pages
2025-02-12 07:48:28 +00:00
Josh Rotenberg
3a7a47b3b6
remove unused plugin config
2025-02-11 13:52:01 -08:00
Chayim Refael Friedman
8453e14706
Merge pull request #19133 from joshrotenberg/fix-manual-github-paths
...
doc: fix mdbook repository paths
2025-02-11 20:28:48 +00:00
Wilfred Hughes
d695e33c83
manual: Fix URLs to rustdoc pages
...
Now that the manual lives at /manual/, we need to use absolute URLs
to link to rustdoc content.
2025-02-11 12:10:32 -08:00
Chayim Refael Friedman
da4c099375
Merge pull request #19117 from gohome001/implicit-drop-inlay-hints-bug
...
Fix: don't emit implicit drop inlay hints for macro
2025-02-11 13:18:04 +00:00
Lukas Wirth
4883966818
Merge pull request #18998 from ChayimFriedman2/exclude
...
fix: Make `rust-analyzer.files.excludeDirs` work, actually
2025-02-11 11:41:54 +00:00
gohome001
4036a7a77d
add test case for ignoring inlay hint for macro call
2025-02-11 15:27:34 +08:00
gohome001
6e6bdc311a
don't emit implicit drop inlay hints for macro
2025-02-11 15:24:46 +08:00
dependabot[bot]
b4014deb7e
Bump esbuild from 0.18.12 to 0.25.0 in /editors/code
...
Bumps [esbuild](https://github.com/evanw/esbuild ) from 0.18.12 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2023.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.12...v0.25.0 )
---
updated-dependencies:
- dependency-name: esbuild
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 05:37:54 +00:00
Josh Rotenberg
7c68345e1b
fix mdbook paths
2025-02-10 15:20:51 -08:00
Josh Rotenberg
0dd7aad8c3
add xtask codegen command as well
2025-02-10 15:14:00 -08:00
Lukas Wirth
5373014378
Merge pull request #19124 from jyn514/range-fmt-off-by-one
...
Fix off-by-one error in RangeFormatting
2025-02-10 15:25:54 +00:00
Chayim Refael Friedman
724b85ef11
Fix postfix completions inside macros
...
Previously the receiver text was taken directly from the AST, which in macros is missing trivia, leading to corruption (or just unintended replacement of user code).
Now we upmap the range, and extract the original file text in it.
2025-02-10 16:38:13 +02:00
Chayim Refael Friedman
340e9a3364
Merge pull request #19088 from Hmikihiro/all_remove_duplicate_module_adt
...
fix: if item exsits on module, resolve as module instead of type
2025-02-10 09:02:30 +00:00
Hayashi Mikihiro
ef8574aa04
Shadowing BuiltinType by Module
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-02-10 17:46:43 +09:00
Laurențiu Nicola
24d7a1490a
Bump rustc crates
2025-02-10 07:52:04 +02:00
Laurențiu Nicola
15cd1f011c
Merge from rust-lang/rust
2025-02-10 07:49:43 +02:00
Laurențiu Nicola
879dc387cd
Preparing for merge from rust-lang/rust
2025-02-10 07:49:25 +02:00
Chayim Refael Friedman
b5ad702c62
Censor cfg_attr for attribute macros
...
This is not documented (and I discovered that from experimenting and looking at the compiler's source code), but cfg_attrs *on the same level* as the attribute macro should be processed before it is expanded. cfg_attrs *below* should not (and this is contrary to what happens with derive macros, where both should be processed).
2025-02-10 01:28:28 +02:00
jyn
d2459e5c1e
fix target dir test
2025-02-09 16:34:01 -05:00
jyn
9bd9bcf496
fix off-by-one error
2025-02-09 15:23:53 -05:00
Ali Bektas
bc5f61c769
Check if PatPtr resolves to ExprId
2025-02-09 17:31:45 +01:00
Ali Bektas
bf2f2c4d71
Fix clippy errors
2025-02-09 17:31:09 +01:00
Ali Bektas
fcc796829e
Remove fixme and add a missing test attribute
2025-02-09 17:31:09 +01:00
Ali Bektas
0d544cf622
Remove dbg lines
2025-02-09 17:31:09 +01:00
Ali Bektas
3e9633b461
resolve_bind_pat_to_const does not early return if expr
2025-02-09 17:31:09 +01:00
Ali Bektas
e402c8cd7e
make SourceAnalyzer::pat_id return ExprOrPatId
...
Not all patterns are mapped to Pats. As such, it was necessary to change
the ret type Option<PatId> to Option<ExprOrPatId>
2025-02-09 17:31:09 +01:00
Ali Bektas
050c63a054
Lower ast::Ident to hir::Path when lowering RangePats
2025-02-09 17:31:09 +01:00
bors
124cc92199
Auto merge of #136751 - bjorn3:update_rustfmt, r=Mark-Simulacrum
...
Update bootstrap compiler and rustfmt
The rustfmt version we previously used formats things differently from what the latest nightly rustfmt does. This causes issues for subtrees that get formatted both in-tree and in their own repo. Updating the rustfmt used in-tree solves those issues. Also bumped the bootstrap compiler as the stage0 update command always updates both at the same
time.
2025-02-09 15:44:16 +00:00
bors
a26e97be88
Auto merge of #136754 - Urgau:rollup-qlkhjqr, r=Urgau
...
Rollup of 5 pull requests
Successful merges:
- #134679 (Windows: remove readonly files)
- #136213 (Allow Rust to use a number of libc filesystem calls)
- #136530 (Implement `x perf` directly in bootstrap)
- #136601 (Detect (non-raw) borrows of null ZST pointers in CheckNull)
- #136659 (Pick the max DWARF version when LTO'ing modules with different versions )
r? `@ghost`
`@rustbot` modify labels: rollup
2025-02-09 12:54:26 +00:00
阿豪
82162a7ac8
doc: error url
2025-02-09 17:49:26 +08:00
Jubilee
5e4d6278af
Rollup merge of #136706 - workingjubilee:finish-up-rustc-abi-updates, r=compiler-errors
...
compiler: mostly-finish `rustc_abi` updates
This almost-finishes all the updates in the compiler to use `rustc_abi` and removes some of the reexports of `rustc_abi` items in `rustc_target` that were previously available.
r? ```@compiler-errors```
2025-02-08 20:41:21 -08:00
Urgau
d024cef057
Rollup merge of #136530 - Kobzol:x-perf, r=onur-ozkan
...
Implement `x perf` directly in bootstrap
Discussed [here](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Turning.20.60x.20perf.60.20into.20a.20first.20class.20command ).
Implementing the command directly in bootstrap let's us correctly build the compiler toolchain based on input arguments (such as include rustdoc in the toolchain [only] when needed), and it also makes the CLI interface nicer.
r? ``@onur-ozkan``
2025-02-09 00:37:27 +01:00
bjorn3
1fcae03369
Rustfmt
2025-02-08 22:12:13 +00:00
bjorn3
3183b44a1e
Update bootstrap compiler and rustfmt
...
The rustfmt version we previously used formats things differently from
what the latest nightly rustfmt does. This causes issues for subtrees
that get formatted both in-tree and in their own repo. Updating the
rustfmt used in-tree solves those issues. Also bumped the bootstrap
compiler as the stage0 update command always updates both at the same
time.
2025-02-08 22:07:11 +00:00