-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Most of macros from std are not resolved #1688
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
EDIT: Nevermind, I misread the issue Also sorry for my multiple replies. I guess GitHub doesn't use idempotency tokens |
It seems to be caused by Here is a simple example: #[macro_export]
macro_rules! foo {
() => { 42 };
} In #[macro_use] // This has no effect
extern crate crate1;
// use crate1::*; // Uncomment this, and everything works
fn main() {
let _t = foo!(); // No type inferred
} |
Some related issue (may be blocking issue):
|
So this is still not working, however But note that
|
|
I'm using rust-analyzer from master with vscode extension.
I found it failed to infer the type of
vec!
(no type decorator, even no{unknown}
), but it works well with my simple implementation usingmacro_rules
. So I think there is something wrong resolving them.Most of macros from std do not work, except
std::dbg!
, whiledbg!
(without prefix) still fails.The output from "Rust Analyzer Language Server Trace" contains no errors.
Screenshot:

The text was updated successfully, but these errors were encountered: