Add assertion to ensure the query doesn't get called before type infererence is done.
Add assertion to ensure the query doesn't get called before type infererence is done.

graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust