Review comments.

This commit is contained in:
Camille GILLOT 2019-12-29 20:45:48 +01:00
parent 1b92e7e446
commit 31f85d3fe2
3 changed files with 5 additions and 13 deletions

View file

@ -1,9 +1,4 @@
//! Name resolution for lifetimes.
//!
//! Name resolution for lifetimes follows *much* simpler rules than the
//! full resolve. For example, lifetime names are never exported or
//! used between functions, and they operate in a purely top-down
//! way. Therefore, we break lifetime name resolution into a separate pass.
//! Name resolution for lifetimes: type declarations.
use crate::hir::def_id::{DefId, LocalDefId};
use crate::hir::{GenericParam, ItemLocalId};

View file

@ -16,13 +16,6 @@
#![feature(nll)]
#![recursion_limit = "256"]
#[macro_use]
extern crate rustc;
#[macro_use]
extern crate log;
#[macro_use]
extern crate syntax;
pub use rustc::hir::def::{Namespace, PerNS};
use Determinacy::*;

View file

@ -26,6 +26,10 @@ use syntax_pos::Span;
use rustc::hir::intravisit::{self, NestedVisitorMap, Visitor};
use rustc::hir::{self, GenericParamKind, LifetimeParamKind};
use log::debug;
use rustc::{bug, span_bug};
use syntax::{help, span_err, struct_span_err, walk_list};
use rustc::middle::resolve_lifetime::*;
use rustc_error_codes::*;