diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-02-15 08:31:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-02-18 09:38:34 +1100 |
| commit | d26bf742db0754893567401e49ae8b016c878a92 (patch) | |
| tree | 891c27d6805a649ded71e355b64abaa1783f391d /src/rustllvm/RustWrapper.cpp | |
| parent | f47ec2ad5b6887b3d400aee49e2294bd27733d18 (diff) | |
| download | rust-d26bf742db0754893567401e49ae8b016c878a92.tar.gz rust-d26bf742db0754893567401e49ae8b016c878a92.zip | |
Change `Token::interpolated_to_tokenstream()`.
It is currently a method of `Token`, but it only is valid to call if `self` is a `Token::Interpolated`. This commit eliminates the possibility of misuse by changing it to an associated function that takes a `Nonterminal`, which also simplifies the call sites. This requires splitting out a new function, `nonterminal_to_string`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
