Skip to content

Commit 9f4b651

Browse files
committed
Auto merge of rust-lang#17259 - lnicola:sync-from-rust, r=lnicola
internal: Sync from downstream
2 parents 143661a + c944b01 commit 9f4b651

File tree

47,484 files changed

+2972826
-492799
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47,484 files changed

+2972826
-492799
lines changed

.cargo/config.toml

-12
This file was deleted.

.editorconfig

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
1-
# https://EditorConfig.org
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
25
root = true
36

47
[*]
8+
end_of_line = lf
59
charset = utf-8
610
trim_trailing_whitespace = true
7-
end_of_line = lf
811
insert_final_newline = true
912
indent_style = space
1013
indent_size = 4
14+
15+
[*.rs]
1116
max_line_length = 100
1217

1318
[*.md]
14-
indent_size = 2
19+
# double whitespace at end of line
20+
# denotes a line break in Markdown
21+
trim_trailing_whitespace = false
1522

16-
[*.{yml, yaml}]
23+
[*.yml]
1724
indent_size = 2
25+
26+
[Makefile]
27+
indent_style = tab

.git-blame-ignore-revs

+24-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1-
# for this file to take effect make sure you use git ^2.23 and
2-
# add ignoreFile to your git configuration:
3-
# ```
4-
# git config --global blame.ignoreRevsFile .git-blame-ignore-revs
5-
# ```
1+
# Use `git config blame.ignorerevsfile .git-blame-ignore-revs` to make `git blame` ignore the following commits.
62

7-
# prettier format
8-
f247090558c9ba3c551566eae5882b7ca865225f
3+
# format the world
4+
a06baa56b95674fc626b3c3fd680d6a65357fe60
5+
# format libcore
6+
95e00bfed801e264e9c4ac817004153ca0f19eb6
7+
# reformat with new rustfmt
8+
971c549ca334b7b7406e61e958efcca9c4152822
9+
# refactor infcx building
10+
283abbf0e7d20176f76006825b5c52e9a4234e4c
11+
# format libstd/sys
12+
c34fbfaad38cf5829ef5cfe780dc9d58480adeaa
13+
# move tests
14+
cf2dff2b1e3fa55fa5415d524200070d0d7aacfe
15+
# Run rustfmt on bootstrap
16+
b39a1d6f1a30ba29f25d7141038b9a5bf0126e36
17+
# reorder fluent message files
18+
f97fddab91fbf290ea5b691fe355d6f915220b6e
19+
# format let-else
20+
cc907f80b95c6ec530c5ee1b05b044a468f07eca
21+
# format let-chains
22+
b2d2184edea578109a48ec3d8decbee5948e8f35
23+
# test directives migration
24+
6e48b96692d63a79a14563f27fe5185f122434f8
25+
ec2cc761bc7067712ecc7734502f703fe3b024c8

.gitattributes

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
* text=auto eol=lf
1+
[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
22

3-
# git grep shouldn't match entries in this benchmark data
4-
bench_data/** binary
3+
* text=auto eol=lf
4+
*.cpp rust
5+
*.h rust
6+
*.rs rust diff=rust
7+
*.fixed linguist-language=Rust
8+
*.mir linguist-language=Rust
9+
src/etc/installer/gfx/* binary
10+
src/vendor/** -text
11+
Cargo.lock linguist-generated=false
512

6-
# Older git versions try to fix line endings on images, this prevents it.
13+
# Older git versions try to fix line endings on images and fonts, this prevents it.
714
*.png binary
8-
*.jpg binary
915
*.ico binary
16+
*.woff binary
17+
*.woff2 binary

.github/ISSUE_TEMPLATE/blank_issue.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
name: Blank Issue
3+
about: Create a blank issue.
4+
---

.github/ISSUE_TEMPLATE/bug_report.md

+32-23
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
11
---
2-
name: Bug report
3-
about: Create a bug report for rust-analyzer.
4-
title: ''
5-
labels: 'C-bug'
6-
assignees: ''
7-
2+
name: Bug Report
3+
about: Create a bug report for Rust.
4+
labels: C-bug
85
---
9-
106
<!--
11-
Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting
12-
Forum for questions: https://users.rust-lang.org/c/ide/14
13-
14-
Before submitting, please make sure that you're not running into one of these known issues:
15-
16-
1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107
17-
18-
Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3.
7+
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
8+
along with any information you feel relevant to replicating the bug.
199
-->
2010

21-
**rust-analyzer version**: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via <kbd>Ctrl/⌘</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>)
11+
I tried this code:
2212

23-
**rustc version**: (eg. output of `rustc -V`)
13+
```rust
14+
<code>
15+
```
2416

25-
**editor or extension**: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
17+
I expected to see this happen: *explanation*
2618

27-
**relevant settings**: (eg. client settings, or environment variables like `CARGO`, `RUSTC`, `RUSTUP_HOME` or `CARGO_HOME`)
19+
Instead, this happened: *explanation*
2820

29-
**repository link (if public, optional)**: (eg. [rust-analyzer](https://github.com/rust-lang/rust-analyzer))
21+
### Meta
22+
<!--
23+
If you're using the stable version of the compiler, you should also check if the
24+
bug also exists in the beta or nightly versions.
25+
-->
3026

31-
**code snippet to reproduce**:
32-
```rust
33-
// add your code here
27+
`rustc --version --verbose`:
28+
```
29+
<version>
30+
```
31+
32+
<!--
33+
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
34+
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
35+
-->
36+
<details><summary>Backtrace</summary>
37+
<p>
3438

3539
```
40+
<backtrace>
41+
```
42+
43+
</p>
44+
</details>

.github/ISSUE_TEMPLATE/config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question
4+
url: https://users.rust-lang.org
5+
about: Please ask and answer questions about Rust on the user forum.
6+
- name: Feature Request
7+
url: https://internals.rust-lang.org/
8+
about: Please discuss language feature requests on the internals forum.
9+
- name: Clippy Bug
10+
url: https://github.com/rust-lang/rust-clippy/issues/new/choose
11+
about: Please report Clippy bugs such as false positives in the Clippy repo.

.github/ISSUE_TEMPLATE/critical_nightly_regression.md

-16
This file was deleted.
+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Diagnostic issue
2+
description: Create a bug report or feature request for a change to `rustc`'s error output
3+
labels: ["A-diagnostics", "T-compiler"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for filing a diagnostics bug report! 🐛
9+
10+
Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug.
11+
12+
If you cannot produce a minimal reproduction case (something that would work in isolation), please provide the steps or even link to a repository that causes the problematic output to occur.
13+
- type: textarea
14+
id: code
15+
attributes:
16+
label: Code
17+
description: Please provide code that can reproduce the problem
18+
placeholder: code
19+
render: Rust
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: output
24+
attributes:
25+
label: Current output
26+
description: Please provide the `rustc` output you see
27+
placeholder: rustc output
28+
render: Shell
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: desired-output
33+
attributes:
34+
label: Desired output
35+
description: Please provide what the output *should* be
36+
placeholder: proposed output
37+
render: Shell
38+
validations:
39+
required: false
40+
- type: textarea
41+
id: rationale
42+
attributes:
43+
label: Rationale and extra context
44+
description: If the problem is not self-explanatory, please provide a rationale for the change.
45+
validations:
46+
required: false
47+
- type: textarea
48+
id: other-output
49+
attributes:
50+
label: Other cases
51+
description: If dramatically different output is caused by small changes, consider also adding them here.
52+
render: Rust
53+
validations:
54+
required: false
55+
- type: textarea
56+
id: version
57+
attributes:
58+
label: Rust Version
59+
description: Please provide the `rustc` version, `rustc --version --verbose`. Make sure that you're using the latest version of the compiler, and not an outdated stable or nightly release!
60+
placeholder: |
61+
$ rustc --version --verbose
62+
rustc 1.XX.Y (SHORTHASH DATE)
63+
binary: rustc
64+
commit-hash: LONGHASHVALUE
65+
commit-date: DATE
66+
host: PLATFORMTRIPLE
67+
release: 1.XX.Y
68+
LLVM version: XX.YY.ZZ
69+
render: Shell
70+
validations:
71+
required: true
72+
- type: textarea
73+
id: extra
74+
attributes:
75+
label: Anything else?
76+
description: If you have more details you want to give us to reproduce this issue, please add it here
77+
validations:
78+
required: false
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Documentation problem
2+
description: Create a report for a documentation problem.
3+
labels: ["A-docs"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for finding a documentation problem! 📚
9+
10+
Documentation problems might be grammatical issues, typos, or unclear wording, please provide details regarding the documentation including where it is present.
11+
12+
Note: If your issue is for one of these, please use their dedicated issue tracker instead:
13+
- [The Rust Book](https://github.com/rust-lang/book/issues)
14+
- [Rust by Example](https://github.com/rust-lang/rust-by-example/issues)
15+
- [The Edition Guide](https://github.com/rust-lang/edition-guide/issues)
16+
- [The Cargo Book](https://github.com/rust-lang/cargo/issues)
17+
- [The Clippy Book](https://github.com/rust-lang/rust-clippy/issues)
18+
- [The Reference](https://github.com/rust-lang/reference/issues)
19+
- [The Rustonomicon](https://github.com/rust-lang/nomicon/issues)
20+
- [The Embedded Book](https://github.com/rust-embedded/book/issues)
21+
22+
All other documentation issues should be filed here.
23+
24+
Or, if you find an issue related to rustdoc (e.g. doctest, rustdoc UI), please use the bug report or blank issue template instead.
25+
26+
- type: textarea
27+
id: location
28+
attributes:
29+
label: Location
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: summary
35+
attributes:
36+
label: Summary
37+
validations:
38+
required: true

.github/ISSUE_TEMPLATE/feature_request.md

-8
This file was deleted.

.github/ISSUE_TEMPLATE/ice.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Internal Compiler Error
3+
about: Create a report for an internal compiler error in rustc.
4+
labels: C-bug, I-ICE, T-compiler
5+
---
6+
<!--
7+
Thank you for finding an Internal Compiler Error! 🧊 If possible, try to provide
8+
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
9+
how to create smaller examples.
10+
http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/
11+
-->
12+
13+
### Code
14+
15+
```Rust
16+
<code>
17+
```
18+
19+
20+
### Meta
21+
<!--
22+
If you're using the stable version of the compiler, you should also check if the
23+
bug also exists in the beta or nightly versions.
24+
-->
25+
26+
`rustc --version --verbose`:
27+
```
28+
<version>
29+
```
30+
31+
### Error output
32+
33+
```
34+
<output>
35+
```
36+
37+
<!--
38+
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
39+
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
40+
-->
41+
<details><summary><strong>Backtrace</strong></summary>
42+
<p>
43+
44+
```
45+
<backtrace>
46+
```
47+
48+
</p>
49+
</details>

0 commit comments

Comments
 (0)