Comments (1)
Expansion steals the result of the parse query. You either need to access it in the after_crate_root_parsing
callback if you want to print the AST before macro expansion (and thus also mod foo;
not being expanded into mod foo { ... }
yet) or you need to access tcx.resolver_for_lowering().borrow().1
instead if you want to access the post-expansion AST. You can get the tcx
using something like queries.global_ctxt().expect("GlobalCtxt stole").borrow_mut().enter(|tcx| { ... })
.
from rust.
Related Issues (20)
- [TSan] futex syscalls are not marked as blocking, causing hangs on TSan builds when combined with async signals HOT 6
- ICE: `unexpected infer type` HOT 4
- ICE: `unexpected inference var` HOT 5
- ICE: failed to resolve instance for <fn() -> impl ...> HOT 2
- on eBPF a Rust fn should handle more than 5 args
- Consider using `llvm-strip` HOT 13
- ICE: `offset of unsized field (type S) cannot be computed statically` HOT 4
- ICE: write_immediate_to_mplace: invalid Scalar layout: TyAndLayout{ ... HOT 2
- ICE: assertion failed: layout.is_sized() HOT 1
- ICE: specialization graph: `unexpected infer in QueryInput` HOT 4
- Can't ignore soft destabilization of `rustc-serialize` with `#![allow(soft_unstable)]` HOT 6
- ICE: `{OpaqueTypeKey { def_id: DefId .. ` HOT 2
- rustdoc incorrectly raises a `rustdoc::redundant_explicit_links` warning when the link is in fact required HOT 1
- error: Error loading target specification: Could not find specification for target "riscv64-unknown-linux-gnu". HOT 24
- Compiler forgets about function-level where clause when a clause for an associated type is present HOT 1
- UB Check blocks MIR inlining of `Vec::deref` HOT 8
- Running `./x.py test miri --stage 0` twice rebuilds miri, cargo-miri, and rustdoc HOT 7
- Array-as-Immediate array ABI is missing `noundef` parameter metadata
- Generators are not supported by TokenStream HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.