]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_ast/util/literal.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / librustc_ast / util / literal.rs
index ea59f867c59d24aaf7241c1284d4a50b48fda602..597e5b437fcb15c983912b200c3c7afc4e9d40d8 100644 (file)
@@ -10,8 +10,8 @@
 use rustc_span::symbol::{kw, sym, Symbol};
 use rustc_span::Span;
 
-use log::debug;
 use std::ascii;
+use tracing::debug;
 
 pub enum LitError {
     NotLiteral,
@@ -205,7 +205,7 @@ pub fn from_token(token: &Token) -> Result<Lit, LitError> {
                 token::Lit::new(token::Bool, name, None)
             }
             token::Literal(lit) => lit,
-            token::Interpolated(ref nt, _) => {
+            token::Interpolated(ref nt) => {
                 if let token::NtExpr(expr) | token::NtLiteral(expr) = &**nt {
                     if let ast::ExprKind::Lit(lit) = &expr.kind {
                         return Ok(lit.clone());