Skip to content

Commit

Permalink
Propagate span info from origin code to generated code
Browse files Browse the repository at this point in the history
Most of `quote!` invocations are replaced with `quote_spanned!` ones.
Now everywhere - sometimes it's pointless, sometimes we don't have
any meaningless location to toke a span from, sometimes I just can't
workaround the current implementation - too much changes.
  • Loading branch information
CreepySkeleton authored and TeXitoi committed Sep 17, 2019
1 parent af8a4b8 commit 52fa726
Showing 4 changed files with 262 additions and 190 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -183,7 +183,8 @@
//! - On field-level: `Arg::with_name("name")`.
//!
//! The name for the argument the field stands for, this name appears in help messages.
//! Defaults to a name, deduced from a field, see also [`rename_all`](#specifying-argument-types).
//! Defaults to a name, deduced from a field, see also
//! [`rename_all`](#specifying-argument-types).
//!
//! - `version`: `[version = "version"]`
//!
Loading

0 comments on commit 52fa726

Please sign in to comment.