syntex
syntex copied to clipboard
No longer maintained
Now that Serde's code generation is stable and we no longer depend on Syntex, it no longer makes sense for our team to continue owning the Syntex stack. Please let...
Rustfmt is having issues on some terminals (https://github.com/rust-lang-nursery/rustfmt/issues/1180). I found that when syntex_error tries to print out the error, setting terminal attributes or resetting terminal attributes causes issues on some...
If `syntex_errors` is somewhere in dependencies, running `cargo build -vv` results in a fail: ``` Running `rustc --crate-name build_script_build /home/ri/.cargo/registry/src/github.com-1ecc6299db9ec823/kernel32-sys-0.2.2/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9b6c3463a8ee3470 -C extra-filename=-9b6c3463a8ee3470 --out-dir...
``` error[E0308]: mismatched types --> /Users/u689/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.32.0/src/ext/base.rs:487:33 | 487 | ext::quote::expand_quote_item)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected concrete lifetime, found bound lifetime parameter 'cx | = note: expected type `fn(&'cx mut ext::base::ExtCtxt` found type...
Now that Macros 1.1 is being stabilized, do we need to continue supporting `derive` in Syntex? What are the remaining use cases?
Moved from https://github.com/serde-rs/serde/issues/612. ```rust #[serde(deny_unknown_fields)] #[derive(Deserialize)] pub struct SomeStruct { /* ... */ } ``` This works in Macros 1.1 expansion but not with Syntex. Macros 1.1 expands derives ahead...
Moved from https://github.com/serde-rs/serde/issues/616. See this commit for a needed workaround: https://github.com/servo/webrender/commit/efd4e1d444e54d5c7429f14e872be5c8678ca116 With some analysis at https://github.com/servo/webrender/pull/549#discussion_r87451885 -- basically, given: ```#[cfg_attr(all(unix, not(target_os = "macos")), derive(Clone, Serialize, Deserialize))] ``` `Serialize` and `Deserialize`...
It used to be with syntax_syntex version 0.28 or that for `item: &Item` that were of kind `ItemKind::Impl` , the `item.ident` would have the identifier that the impl applied to....
If you register the `macro_rules!` macro like so: ```rust let mut reg = syntex::Registry::new(); reg.add_ident_macro("macro_rules",syntex_syntax::ext::tt::macro_rules::MacroRulesExpander); ``` you'll get this error: ``` error: internal compiler error: add_macro is not supported yet...
It would be nice to mark `Parser::parse_fn_decl_with_self` as `pub`, because of in my code: https://github.com/Dushistov/rust_siwg/blob/master/src/lib.rs to use it I have to use copy/paste technique, what is sad.