@@ -100,7 +100,7 @@ mod boxed_resolver {
100
100
}
101
101
102
102
// Note: Drop order is important to prevent dangling references. Resolver must be dropped first,
103
- // then resolver_arenas and finally session.
103
+ // then resolver_arenas and session.
104
104
impl Drop for BoxedResolverInner {
105
105
fn drop ( & mut self ) {
106
106
self . resolver . take ( ) ;
@@ -109,10 +109,10 @@ mod boxed_resolver {
109
109
}
110
110
111
111
impl BoxedResolver {
112
- pub ( super ) fn new < F > ( session : Lrc < Session > , make_resolver : F ) -> Self
113
- where
114
- F : for < ' a > FnOnce ( & ' a Session , & ' a ResolverArenas < ' a > ) -> Resolver < ' a > ,
115
- {
112
+ pub ( super ) fn new (
113
+ session : Lrc < Session > ,
114
+ make_resolver : impl for < ' a > FnOnce ( & ' a Session , & ' a ResolverArenas < ' a > ) -> Resolver < ' a > ,
115
+ ) -> BoxedResolver {
116
116
let mut boxed_resolver = Box :: new ( BoxedResolverInner {
117
117
session,
118
118
resolver_arenas : Some ( Resolver :: arenas ( ) ) ,
@@ -168,11 +168,6 @@ pub fn create_resolver(
168
168
crate_name : & str ,
169
169
) -> BoxedResolver {
170
170
tracing:: trace!( "create_resolver" ) ;
171
- // Currently, we ignore the name resolution data structures for the purposes of dependency
172
- // tracking. Instead we will run name resolution and include its output in the hash of each
173
- // item, much like we do for macro expansion. In other words, the hash reflects not just
174
- // its contents but the results of name resolution on those contents. Hopefully we'll push
175
- // this back at some point.
176
171
BoxedResolver :: new ( sess, move |sess, resolver_arenas| {
177
172
Resolver :: new ( sess, & krate, & crate_name, metadata_loader, & resolver_arenas)
178
173
} )
@@ -263,8 +258,6 @@ fn pre_expansion_lint(
263
258
/// syntax expansion, secondary `cfg` expansion, synthesis of a test
264
259
/// harness if one is to be provided, injection of a dependency on the
265
260
/// standard library and prelude, and name resolution.
266
- ///
267
- /// Returns [`None`] if we're aborting after handling -W help.
268
261
pub fn configure_and_expand (
269
262
sess : & Session ,
270
263
lint_store : & LintStore ,
0 commit comments