-
Notifications
You must be signed in to change notification settings - Fork 13
Add support to span #31
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
Comments
@rustbot claim |
how should we expose it. If we expose it directly (have |
We should encapsulate the path, so no one relies on having direct access to them. We probably want to intern the pathbuf for the file, so we don't keep replicating it. |
Should we return |
Add function that returns span of an item in smir Addressees rust-lang/project-stable-mir#31 Maybe we should change `Span = Opaque` into something else, and then return `String` with newly added function, I don't think it matters that much though, since we are not storing `Span` anywhere. r? `@oli-obk`
Add function that returns span of an item in smir Addressees rust-lang/project-stable-mir#31 Maybe we should change `Span = Opaque` into something else, and then return `String` with newly added function, I don't think it matters that much though, since we are not storing `Span` anywhere. r? `@oli-obk`
can we close this now ? |
Right now the spans are opaque and thus not very useful. We should add a way to retrieve file, line, col and expansion information. |
Improve Span in smir Addressing rust-lang/project-stable-mir#31 r? `@oli-obk`
Improve Span in smir Addressing rust-lang/project-stable-mir#31 r? ``@oli-obk``
Rollup merge of rust-lang#115772 - ouz-a:smir_span2, r=oli-obk Improve Span in smir Addressing rust-lang/project-stable-mir#31 r? ``@oli-obk``
I believe we can close this now, right? Feel free to reopen if there's more work to be done here. Thanks! |
Users should be able to retrieve the code span of SMIR items.
The text was updated successfully, but these errors were encountered: