-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
expected error scanner is too imprecise #1476
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone
Comments
0c0w3
added a commit
to 0c0w3/rust
that referenced
this issue
Sep 11, 2012
joshtriplett
added a commit
to joshtriplett/rust
that referenced
this issue
Oct 7, 2022
- .gitattributes: Mark minified javascript as binary to filter greps - fix very minor punctuation typo - diagnostic structs: derive on enum (rust-lang#1477) - Update running tests with the new flags (rust-lang#1476) - Rename typeck to hir_analysis (rust-lang#1475) - fix typo and make paragraph consistent (rust-lang#1474) - Update about-this-guide.md - Link to the correct page in "about this guide" - Update r-a config suggestions - don't refer to the compile-time interpreter as "Miri" (rust-lang#1471) - UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558 - Update mdbook and its extensions versions - Remove unmaintained action - Update some actions versions - Fix some typos Update motivated in large part by the most recent commit, to fix `git grep`.
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Oct 8, 2022
… r=ehuss Update rustc-dev-guide - .gitattributes: Mark minified javascript as binary to filter greps - fix very minor punctuation typo - diagnostic structs: derive on enum (rust-lang#1477) - Update running tests with the new flags (rust-lang#1476) - Rename typeck to hir_analysis (rust-lang#1475) - fix typo and make paragraph consistent (rust-lang#1474) - Update about-this-guide.md - Link to the correct page in "about this guide" - Update r-a config suggestions - don't refer to the compile-time interpreter as "Miri" (rust-lang#1471) - UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558 - Update mdbook and its extensions versions - Remove unmaintained action - Update some actions versions - Fix some typos Update motivated in large part by the most recent commit, to fix `git grep`.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Oct 8, 2022
… r=ehuss Update rustc-dev-guide - .gitattributes: Mark minified javascript as binary to filter greps - fix very minor punctuation typo - diagnostic structs: derive on enum (rust-lang#1477) - Update running tests with the new flags (rust-lang#1476) - Rename typeck to hir_analysis (rust-lang#1475) - fix typo and make paragraph consistent (rust-lang#1474) - Update about-this-guide.md - Link to the correct page in "about this guide" - Update r-a config suggestions - don't refer to the compile-time interpreter as "Miri" (rust-lang#1471) - UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558 - Update mdbook and its extensions versions - Remove unmaintained action - Update some actions versions - Fix some typos Update motivated in large part by the most recent commit, to fix `git grep`.
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Oct 8, 2022
… r=ehuss Update rustc-dev-guide - .gitattributes: Mark minified javascript as binary to filter greps - fix very minor punctuation typo - diagnostic structs: derive on enum (rust-lang#1477) - Update running tests with the new flags (rust-lang#1476) - Rename typeck to hir_analysis (rust-lang#1475) - fix typo and make paragraph consistent (rust-lang#1474) - Update about-this-guide.md - Link to the correct page in "about this guide" - Update r-a config suggestions - don't refer to the compile-time interpreter as "Miri" (rust-lang#1471) - UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558 - Update mdbook and its extensions versions - Remove unmaintained action - Update some actions versions - Fix some typos Update motivated in large part by the most recent commit, to fix `git grep`.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Oct 8, 2022
… r=ehuss Update rustc-dev-guide - .gitattributes: Mark minified javascript as binary to filter greps - fix very minor punctuation typo - diagnostic structs: derive on enum (rust-lang#1477) - Update running tests with the new flags (rust-lang#1476) - Rename typeck to hir_analysis (rust-lang#1475) - fix typo and make paragraph consistent (rust-lang#1474) - Update about-this-guide.md - Link to the correct page in "about this guide" - Update r-a config suggestions - don't refer to the compile-time interpreter as "Miri" (rust-lang#1471) - UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558 - Update mdbook and its extensions versions - Remove unmaintained action - Update some actions versions - Fix some typos Update motivated in large part by the most recent commit, to fix `git grep`.
bjorn3
added a commit
to bjorn3/rust
that referenced
this issue
Apr 5, 2024
Fix ICE on unchecked shift
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
The code in compiletest which scans for expected errors when you use the
//!
mechanism to associate an error with a particular line is not very smart. It just looks for a filename, line number, and the stringerror
orwarning
. This sometimes causes it to fail tests that do not deserve to fail. For example, if you have a line of code like:and the compiler reports the expected error, you will get a test failure. This is because the compiler also reports the line of code that caused the error, and the compiletest code sees the
error
string inlog(error, x)
and thinks that this line of code is a second error report which was not expected.The text was updated successfully, but these errors were encountered: