forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
FormatArgs
storage when -Zthreads
> 1
- Loading branch information
Showing
3,569 changed files
with
351,122 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[alias] | ||
uitest = "test --test compile-test" | ||
uibless = "test --test compile-test -- -- --bless" | ||
bless = "test -- -- --bless" | ||
dev = "run --package clippy_dev --bin clippy_dev --manifest-path clippy_dev/Cargo.toml --" | ||
lintcheck = "run --package lintcheck --bin lintcheck --manifest-path lintcheck/Cargo.toml -- " | ||
collect-metadata = "test --test dogfood --features internal -- run_metadata_collection_lint --ignored" | ||
|
||
[build] | ||
# -Zbinary-dep-depinfo allows us to track which rlib files to use for compiling UI tests | ||
rustflags = ["-Zunstable-options", "-Zbinary-dep-depinfo"] | ||
target-dir = "target" | ||
|
||
[unstable] | ||
binary-dep-depinfo = true | ||
|
||
[profile.dev] | ||
split-debuginfo = "unpacked" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 120 | ||
|
||
[*.md] | ||
# double whitespace at end of line | ||
# denotes a line break in Markdown | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto eol=lf | ||
*.rs text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4 | ||
*.fixed linguist-language=Rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Blank Issue | ||
description: Create a blank issue. | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for filing an issue! | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Description | ||
description: > | ||
Please provide a description of the issue, along with any information | ||
you feel relevant to replicate it. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: "Rust version (`rustc -Vv`)" | ||
placeholder: | | ||
rustc 1.46.0-nightly (f455e46ea 2020-06-20) | ||
binary: rustc | ||
commit-hash: f455e46eae1a227d735091091144601b467e1565 | ||
commit-date: 2020-06-20 | ||
host: x86_64-unknown-linux-gnu | ||
release: 1.46.0-nightly | ||
LLVM version: 10.0 | ||
render: text | ||
- type: textarea | ||
id: labels | ||
attributes: | ||
label: Additional Labels | ||
description: > | ||
Additional labels can be added to this issue by including the following | ||
command | ||
placeholder: | | ||
@rustbot label +<label> | ||
Common labels for this issue type are: | ||
* C-an-interesting-project | ||
* C-enhancement | ||
* C-question | ||
* C-tracking-issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Bug Report | ||
description: Create a bug report for Clippy | ||
labels: ["C-bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for filing a bug report! 🐛 | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Summary | ||
description: > | ||
Please provide a short summary of the bug, along with any information | ||
you feel relevant to replicate the bug. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproducer | ||
attributes: | ||
label: Reproducer | ||
description: Please provide the code and steps to reproduce the bug | ||
value: | | ||
I tried this code: | ||
```rust | ||
<code> | ||
``` | ||
I expected to see this happen: | ||
Instead, this happened: | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: "Rust version (`rustc -Vv`)" | ||
placeholder: | | ||
rustc 1.46.0-nightly (f455e46ea 2020-06-20) | ||
binary: rustc | ||
commit-hash: f455e46eae1a227d735091091144601b467e1565 | ||
commit-date: 2020-06-20 | ||
host: x86_64-unknown-linux-gnu | ||
release: 1.46.0-nightly | ||
LLVM version: 10.0 | ||
render: text | ||
- type: textarea | ||
id: labels | ||
attributes: | ||
label: Additional Labels | ||
description: > | ||
Additional labels can be added to this issue by including the following | ||
command | ||
placeholder: | | ||
@rustbot label +<label> | ||
Common labels for this issue type are: | ||
* `I-suggestion-causes-error` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Rust Programming Language Forum | ||
url: https://users.rust-lang.org | ||
about: Please ask and answer questions about Rust here. |
50 changes: 50 additions & 0 deletions
50
src/tools/clippy/.github/ISSUE_TEMPLATE/false_negative.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Bug Report (False Negative) | ||
description: Create a bug report about missing warnings from a lint | ||
labels: ["C-bug", "I-false-negative"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for filing a bug report! 🐛 | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Summary | ||
description: > | ||
Please provide a short summary of the bug, along with any information | ||
you feel relevant to replicate the bug. | ||
validations: | ||
required: true | ||
- type: input | ||
id: lint-name | ||
attributes: | ||
label: Lint Name | ||
description: Please provide the lint name. | ||
- type: textarea | ||
id: reproducer | ||
attributes: | ||
label: Reproducer | ||
description: Please provide the code and steps to reproduce the bug | ||
value: | | ||
I tried this code: | ||
```rust | ||
<code> | ||
``` | ||
I expected to see this happen: | ||
Instead, this happened: | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: "Rust version (`rustc -Vv`)" | ||
placeholder: | | ||
rustc 1.46.0-nightly (f455e46ea 2020-06-20) | ||
binary: rustc | ||
commit-hash: f455e46eae1a227d735091091144601b467e1565 | ||
commit-date: 2020-06-20 | ||
host: x86_64-unknown-linux-gnu | ||
release: 1.46.0-nightly | ||
LLVM version: 10.0 | ||
render: text |
68 changes: 68 additions & 0 deletions
68
src/tools/clippy/.github/ISSUE_TEMPLATE/false_positive.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Bug Report (False Positive) | ||
description: Create a bug report about a wrongly emitted lint warning | ||
labels: ["C-bug", "I-false-positive"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for filing a bug report! 🐛 | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Summary | ||
description: > | ||
Please provide a short summary of the bug, along with any information | ||
you feel relevant to replicate the bug. | ||
validations: | ||
required: true | ||
- type: input | ||
id: lint-name | ||
attributes: | ||
label: Lint Name | ||
description: Please provide the lint name. | ||
- type: textarea | ||
id: reproducer | ||
attributes: | ||
label: Reproducer | ||
description: > | ||
Please provide the code and steps to reproduce the bug together with the | ||
output from Clippy. | ||
value: | | ||
I tried this code: | ||
```rust | ||
<code> | ||
``` | ||
I saw this happen: | ||
``` | ||
<output> | ||
``` | ||
I expected to see this happen: | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: "Rust version (`rustc -Vv`)" | ||
placeholder: | | ||
rustc 1.46.0-nightly (f455e46ea 2020-06-20) | ||
binary: rustc | ||
commit-hash: f455e46eae1a227d735091091144601b467e1565 | ||
commit-date: 2020-06-20 | ||
host: x86_64-unknown-linux-gnu | ||
release: 1.46.0-nightly | ||
LLVM version: 10.0 | ||
render: text | ||
- type: textarea | ||
id: labels | ||
attributes: | ||
label: Additional Labels | ||
description: > | ||
Additional labels can be added to this issue by including the following | ||
command | ||
placeholder: | | ||
@rustbot label +<label> | ||
Common labels for this issue type are: | ||
* `I-suggestion-causes-error` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Internal Compiler Error | ||
description: Create a report for an internal compiler error (ICE) in Clippy. | ||
labels: ["C-bug", "I-ICE"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for finding an Internal Compiler Error! 🧊 | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Summary | ||
description: | | ||
If possible, try to provide a minimal verifiable example. You can read ["Rust Bug Minimization Patterns"][mve] for how to create smaller examples. Otherwise, provide the crate where the ICE occurred. | ||
[mve]: http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/ | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: "Rust version (`rustc -Vv`)" | ||
placeholder: | | ||
rustc 1.46.0-nightly (f455e46ea 2020-06-20) | ||
binary: rustc | ||
commit-hash: f455e46eae1a227d735091091144601b467e1565 | ||
commit-date: 2020-06-20 | ||
host: x86_64-unknown-linux-gnu | ||
release: 1.46.0-nightly | ||
LLVM version: 10.0 | ||
render: text | ||
- type: textarea | ||
id: error | ||
attributes: | ||
label: Error output | ||
description: > | ||
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in | ||
your environment. E.g. `RUST_BACKTRACE=1 cargo clippy`. | ||
value: | | ||
<details><summary>Backtrace</summary> | ||
<p> | ||
``` | ||
<backtrace> | ||
``` | ||
</p> | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: New lint suggestion | ||
description: Suggest a new Clippy lint. | ||
labels: ["A-lint"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for your lint idea! | ||
- type: textarea | ||
id: what | ||
attributes: | ||
label: What it does | ||
description: What does this lint do? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: advantage | ||
attributes: | ||
label: Advantage | ||
description: > | ||
What is the advantage of the recommended code over the original code? | ||
placeholder: | | ||
- Remove bounds check inserted by ... | ||
- Remove the need to duplicate/store ... | ||
- Remove typo ... | ||
- type: textarea | ||
id: drawbacks | ||
attributes: | ||
label: Drawbacks | ||
description: What might be possible drawbacks of such a lint? | ||
- type: textarea | ||
id: example | ||
attributes: | ||
label: Example | ||
description: > | ||
Include a short example showing when the lint should trigger together | ||
with the improved code. | ||
value: | | ||
```rust | ||
<code> | ||
``` | ||
Could be written as: | ||
```rust | ||
<code> | ||
``` | ||
validations: | ||
required: true |
Oops, something went wrong.