Skip to content

Rollup of 13 pull requests #120743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
06a4168
Add unstable `-Z direct-access-external-data` cmdline flag for `rustc`
heiher Dec 14, 2023
f38489e
Enable `remove_storage_markers` MIR-opt test
JarlEvanson Jan 28, 2024
d1edc9d
Enable `simplify` MIR-opt test
JarlEvanson Jan 28, 2024
1031598
Enable `lifetimes` SROA MIR-opt test
JarlEvanson Jan 28, 2024
7a2b663
interning doesn't check alignment anymroe, because it doesn't do any …
oli-obk Jan 24, 2024
b6d0225
prefer instrumentation over entry/exit tracing statements
oli-obk Jan 24, 2024
a73c448
Prefer external iteration now that we don't actually recurse anymore
oli-obk Jan 24, 2024
a57a00e
separately intern the outermost alloc from the rest
oli-obk Jan 24, 2024
5d46b98
Document base vs nested alloc interning
oli-obk Jan 25, 2024
2e212b7
coverage: Split out counter increment sites from BCB node/edge counters
Zalathar Jan 25, 2024
bae4f17
Enable `structs` SROA MIR-opt test
JarlEvanson Feb 4, 2024
d622195
Add an `armv8r-none-eabihf` target to support the Cortex-R52.
chrisnc Feb 4, 2024
9aff42e
Update src/doc/rustc/src/platform-support.md
wesleywiser Feb 5, 2024
c94769a
Clarify order of operations during interning
oli-obk Feb 5, 2024
411967c
Zip together `place_ty` and `place_validity`
Nadrieril Jan 31, 2024
6cac1c4
Track `is_top_level` via `PlaceInfo`
Nadrieril Jan 31, 2024
a939bad
Suggest turnging `if let` into irrefutable `let` if appropriate
estebank Jan 29, 2024
aef18c9
Mark "unused binding" suggestion as maybe incorrect
estebank Jan 29, 2024
8d1c20a
Remove return value from `emit_stashed_diagnostics`.
nnethercote Feb 6, 2024
7fb4512
fix `llvm_out` to use the correct LLVM root
onur-ozkan Feb 6, 2024
14dda5f
Don't use bashism in checktools.sh
saethlin Feb 7, 2024
63cc3c7
test `llvm_out` behaviour
onur-ozkan Feb 7, 2024
a59d006
Add parallel rustc ui tests
SparrowLii Feb 7, 2024
e55df62
Remove an `unchecked_claim_error_was_emitted` call.
nnethercote Feb 6, 2024
e6794dd
rustdoc: make `main` more like rustc's.
nnethercote Feb 6, 2024
83adf88
rustdoc: remove `unchecked_claim_error_was_emitted` call in `main_args`.
nnethercote Feb 6, 2024
97c157f
Tighten up `ErrorGuaranteed` handling.
nnethercote Feb 6, 2024
6889fe3
Rename `unchecked_claim_error_was_emitted` as `unchecked_error_guaran…
nnethercote Feb 7, 2024
c5e6df0
MirPass: make name more const
klensy Feb 7, 2024
2b6f393
Rollup merge of #110482 - chrisnc:armv8r-target, r=wesleywiser
Nadrieril Feb 7, 2024
2e7e637
Rollup merge of #119162 - heiher:direct-access-external-data, r=petro…
Nadrieril Feb 7, 2024
c541dc4
Rollup merge of #120302 - oli-obk:const_intern_cleanups, r=RalfJung
Nadrieril Feb 7, 2024
5661a5b
Rollup merge of #120455 - JarlEvanson:sroa-miri-tests, r=cjgillot
Nadrieril Feb 7, 2024
faa8be0
Rollup merge of #120470 - estebank:issue-54196, r=compiler-errors
Nadrieril Feb 7, 2024
0aefc20
Rollup merge of #120479 - estebank:issue-61788, r=wesleywiser
Nadrieril Feb 7, 2024
57caa20
Rollup merge of #120564 - Zalathar:increment-site, r=oli-obk
Nadrieril Feb 7, 2024
6edc4d7
Rollup merge of #120633 - Nadrieril:place_info, r=compiler-errors
Nadrieril Feb 7, 2024
8ba999e
Rollup merge of #120664 - SparrowLii:parallel_test, r=nnethercote
Nadrieril Feb 7, 2024
0d3ff16
Rollup merge of #120721 - onur-ozkan:incorrect-llvm-path-on-cross-tar…
Nadrieril Feb 7, 2024
ce49414
Rollup merge of #120726 - saethlin:no-bashism, r=Mark-Simulacrum
Nadrieril Feb 7, 2024
4a110f2
Rollup merge of #120733 - klensy:trait-const-fn, r=oli-obk
Nadrieril Feb 7, 2024
600d3bb
Rollup merge of #120735 - nnethercote:rm-some-unchecked_claims, r=oli…
Nadrieril Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark "unused binding" suggestion as maybe incorrect
Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change.

Fix #54196.
  • Loading branch information
estebank committed Feb 6, 2024
commit aef18c9bfb8c7844b95f6d950133f61b0fa2158b
4 changes: 2 additions & 2 deletions compiler/rustc_passes/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ pub struct UnusedVariableTryPrefix {

#[derive(Subdiagnostic)]
pub enum UnusedVariableSugg {
#[multipart_suggestion(passes_suggestion, applicability = "machine-applicable")]
#[multipart_suggestion(passes_suggestion, applicability = "maybe-incorrect")]
TryPrefixSugg {
#[suggestion_part(code = "_{name}")]
spans: Vec<Span>,
Expand Down Expand Up @@ -1778,7 +1778,7 @@ pub struct UnusedVarTryIgnore {
}

#[derive(Subdiagnostic)]
#[multipart_suggestion(passes_suggestion, applicability = "machine-applicable")]
#[multipart_suggestion(passes_suggestion, applicability = "maybe-incorrect")]
pub struct UnusedVarTryIgnoreSugg {
#[suggestion_part(code = "{name}: _")]
pub shorthands: Vec<Span>,
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/future-incompat-json-test.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"$message_type":"future_incompat","future_incompat_report":[{"diagnostic":{"$message_type":"diagnostic","message":"unused variable: `x`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"$DIR/future-incompat-json-test.rs","byte_start":338,"byte_end":339,"line_start":9,"line_end":9,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let x = 1;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-A unused-variables` implied by `-A unused`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-A unused` add `#[allow(unused_variables)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if this is intentional, prefix it with an underscore","code":null,"level":"help","spans":[{"file_name":"$DIR/future-incompat-json-test.rs","byte_start":338,"byte_end":339,"line_start":9,"line_end":9,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let x = 1;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":"_x","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused variable: `x`
{"$message_type":"future_incompat","future_incompat_report":[{"diagnostic":{"$message_type":"diagnostic","message":"unused variable: `x`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"$DIR/future-incompat-json-test.rs","byte_start":338,"byte_end":339,"line_start":9,"line_end":9,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let x = 1;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-A unused-variables` implied by `-A unused`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-A unused` add `#[allow(unused_variables)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if this is intentional, prefix it with an underscore","code":null,"level":"help","spans":[{"file_name":"$DIR/future-incompat-json-test.rs","byte_start":338,"byte_end":339,"line_start":9,"line_end":9,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let x = 1;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":"_x","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused variable: `x`
--> $DIR/future-incompat-json-test.rs:9:9
|
LL | let x = 1;
Expand Down