use rustc::ty::{self, DefIdTree};
use rustc::util::nodemap::FxHashSet;
use syntax::ast::{self, Ident, Path};
-use syntax::ext::base::MacroKind;
+use syntax_expand::base::MacroKind;
use syntax::feature_gate::BUILTIN_ATTRIBUTES;
use syntax::source_map::SourceMap;
use syntax::struct_span_err;
span, "`Self` in type parameter default".to_string());
err
}
- ResolutionError::ConstParamDependentOnTypeParam => {
- let mut err = struct_span_err!(
- self.session,
- span,
- E0671,
- "const parameters cannot depend on type parameters"
- );
- err.span_label(span, format!("const parameter depends on type parameter"));
- err
- }
}
}