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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

*Resolve* spanned errors at call/mixed site #1467

Merged
merged 1 commit into from Jun 8, 2023

Commits on Jun 7, 2023

  1. *Resolve* spanned errors at call/mixed site

    - This fixes the error message loss (shadowed by an error complaining about `::core` not found) for 2015 edition callers when the callee was using `Error::new_spanned` over the caller's input tokens (since this would then *resolve* `::core` using the caller's edition).
    
      - an example: rustwasm/wasm-bindgen#3415 (comment) complains about `unresolved import` while pointing to an open parenthesis.
    
    
    - More generally, it is more correct to only tweak the `located_at` aspect of spans when dealing with a `compile_error!` invocation.
    danielhenrymantilla committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    a091982 View commit details
    Browse the repository at this point in the history