Repository navigation
Suggest only Span without source changes when source code is unavailable #144585
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1798,6 +1798,9 @@ impl<'test> TestCx<'test> { | |
| compiler.arg("-Zwrite-long-types-to-disk=no"); | ||
| // FIXME: use this for other modes too, for perf? | ||
| compiler.arg("-Cstrip=debuginfo"); | ||
| if self.config.suite != TestSuite::UiFullDeps { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I walked around the code, find in stage1 and ui-fulldeps it changes I did a temp fix, supressing the flag in uifulldeps...but this is a bit strange—do you have any good ideas?@jieyouxu |
||
| compiler.arg("-Zshow-suggestions-with-unavailable-source"); | ||
| } | ||
|
|
||
| if self.config.parallel_frontend_enabled() { | ||
| // Currently, we only use multiple threads for the UI test suite, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,6 +147,8 @@ LL | if let V = vec![] {} | |
| = note: `Vec<()>` is not usable in patterns | ||
| | | ||
| = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details | ||
| help: check for equality instead of pattern matching | ||
| --> $SRC_DIR/alloc/src/macros.rs:LL:COL | ||
|
Comment on lines
+150
to
+151
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. diagnostic bug?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming we end up with a span into the |
||
|
|
||
| error: constant of non-structural type `Vec<()>` in a pattern | ||
| --> $DIR/suggest_equality_comparison_instead_of_pattern_matching.rs:28:13 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a option
show_suggestions_with_unavailable_source.