Skip to content
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

Fix difference in error message compared to proc-macro-error #2

Merged

Conversation

gamma0987
Copy link

@gamma0987 gamma0987 commented Sep 6, 2024

I experienced a difference in the error messages compared to proc-macro-error (- is proc-macro-error, + is proc-macro-error2)

 103 |     #[benches::my_id(file = String::from("iai-callgrind/tests/fixtures/numbers.fix"))]
-    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |                             ^^^^^^^
 
 109 |     #[benches::my_id(file = String::from("iai-callgrind/tests/fixtures/numbers.fix"))]
-    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |                             ^^^^^^^

 3 | #[library_benchmark(wrong = LibraryBenchmarkConfig::default())]
-  |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  |                     ^^^^^^^
 
 4 | #[bench::id(invalid = "value")]
-  |             ^^^^^^^^^^^^^^^^^
+  |             ^^^^^^^^^
 
 8 | #[bench::id(wrong = LibraryBenchmarkConfig::default())]
-  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  |             ^^^^^^^

 16 | #[benches::wrong(wrong = LibraryBenchmarkConfig::default())]
-   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^^^^^^

These diffs are excerpts from the error messages here if you need the full error messages.

UPDATE:

Sorry, I haven't read #1 thoroughly enough and my original description of this pr was wrong.

Copy link
Owner

@GnomedDev GnomedDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

@GnomedDev GnomedDev merged commit 3d4108e into GnomedDev:master Sep 6, 2024
6 checks passed
@gamma0987 gamma0987 deleted the fix-difference-in-error-message branch September 6, 2024 20:06
@gamma0987
Copy link
Author

Sure. Thanks for working on this crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants