diff options
| author | Nika Layzell <nika@thelayzells.com> | 2017-12-12 12:14:54 -0500 |
|---|---|---|
| committer | Nika Layzell <nika@thelayzells.com> | 2017-12-12 12:14:54 -0500 |
| commit | 0ccf1af4378dabbb944a57490e28a2ee528fe23c (patch) | |
| tree | 0ca8887cabacfc2eae3d6108fcee44cead628dbb /src/libproc_macro | |
| parent | 4c2819d32604c2c5817d0d2639363aa47e80fd7a (diff) | |
| download | rust-0ccf1af4378dabbb944a57490e28a2ee528fe23c.tar.gz rust-0ccf1af4378dabbb944a57490e28a2ee528fe23c.zip | |
Expose the line and column fields from the proc_macro::LineColumn struct
Diffstat (limited to 'src/libproc_macro')
| -rw-r--r-- | src/libproc_macro/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index 4a6841aedca..6516040adb8 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -265,10 +265,12 @@ impl Span { #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct LineColumn { /// The 1-indexed line in the source file on which the span starts or ends (inclusive). - line: usize, + #[unstable(feature = "proc_macro", issue = "38356")] + pub line: usize, /// The 0-indexed column (in UTF-8 characters) in the source file on which /// the span starts or ends (inclusive). - column: usize + #[unstable(feature = "proc_macro", issue = "38356")] + pub column: usize } /// The source file of a given `Span`. |
