1
Fork 0

libsyntax_ext => 2018

This commit is contained in:
Taiki Endo 2019-02-04 21:49:54 +09:00
parent e858c2637f
commit 94f121ff3f
35 changed files with 269 additions and 268 deletions

View file

@ -1,4 +1,5 @@
use errors::{self, Diagnostic, DiagnosticBuilder};
use crate::errors::{self, Diagnostic, DiagnosticBuilder};
use std::panic;
use proc_macro::bridge::{server, TokenTree};
@ -369,7 +370,7 @@ pub(crate) struct Rustc<'a> {
}
impl<'a> Rustc<'a> {
pub fn new(cx: &'a ExtCtxt) -> Self {
pub fn new(cx: &'a ExtCtxt<'_>) -> Self {
// No way to determine def location for a proc macro right now, so use call location.
let location = cx.current_expansion.mark.expn_info().unwrap().call_site;
let to_span = |transparency| {
@ -650,7 +651,7 @@ impl server::Literal for Rustc<'_> {
}
}
impl<'a> server::SourceFile for Rustc<'a> {
impl server::SourceFile for Rustc<'_> {
fn eq(&mut self, file1: &Self::SourceFile, file2: &Self::SourceFile) -> bool {
Lrc::ptr_eq(file1, file2)
}