-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
First pass at implementing 'trait_missing.ron' #115
Conversation
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.
The query looks good!
This is because Rust has three different kinds of structs: unit structs struct Baz {
x: u32,
y: u32,
} But you raise an interesting question — perhaps that There's already a check that checks part of this ( You're welcome to take on those checks as well, if you'd like. I added it in #5 as |
In #117 I added one line to unblock this PR, so you don't have to debug "why are traits never found as items" and then edit the data bindings (Trustfall |
No rush at all, just checking in to see how you're doing. Any questions? Anything I can do to help? |
Hi, I'm traveling out of the country currently, so I won't probably won't get around to working on this until the week of the 19th. |
1 similar comment
Hi, I'm traveling out of the country currently, so I won't probably won't get around to working on this until the week of the 19th. |
No worries at all, no rush. Enjoy your travel! I just wanted to make sure you aren't blocked on me. |
Hi! We recently merged a significant revamp of the directory structure and how the tests are organized, and if you're interested in continuing with this PR either now or in January, I wanted to let you know that I'd be happy to help. If you've moved on to other projects, that's totally fine — no worries! Just let me know so I can reassign this lint to someone else. If I don't hear back by Jan 15, I'll assume you've moved on to other things and I'll close this PR. |
Hi, thanks for following up on this. Yes, you can assign this to someone else. Sorry for the long radio silence. |
No worries, thanks for the heads-up! |
Closes #73
I was referencing the
struct_missing.ron
file, and in there there's astruct_type @output @tag
line in the query that doesn't exist in the enum lint. Curious what this is for.TODOs
trait_missing.ron
query filetrait_missing.rs
filesrc/test_data/<query_name>.output.run
.<query_name>
to the list of queries tested by thequery_execution_tests!()
macro near the bottom ofsrc/adapter.rs
../scripts/regenerate_test_rustdocs.sh
to generate the new rustdoc JSON file.cargo test
and ensure your new test appears in the test list and runs correctly.include_str!("queries/<query_name>.ron")
, line toSemverQuery::all_queries()
in thesrc/query.rs
file, to ensure your query is enabled for use in query runs.