}
PathParameters::Parenthesized(ref data) => match parenthesized_generic_args {
ParenthesizedGenericArgs::Ok =>
- self.lower_parenthesized_parameter_data(data, itctx),
+ self.lower_parenthesized_parameter_data(data),
ParenthesizedGenericArgs::Warn => {
self.sess.buffer_lint(PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES,
CRATE_NODE_ID, data.span, msg.into());
}
fn lower_parenthesized_parameter_data(&mut self,
- data: &ParenthesizedParameterData,
- itctx: ImplTraitContext)
+ data: &ParenthesizedParameterData)
-> (hir::PathParameters, bool) {
const DISALLOWED: ImplTraitContext = ImplTraitContext::Disallowed;
let &ParenthesizedParameterData { ref inputs, ref output, span } = data;
bindings: hir_vec![hir::TypeBinding {
id: self.next_id().node_id,
name: Symbol::intern(FN_OUTPUT_NAME),
- ty: output.as_ref().map(|ty| self.lower_ty(&ty, itctx))
+ ty: output.as_ref().map(|ty| self.lower_ty(&ty, DISALLOWED))
.unwrap_or_else(|| mk_tup(self, hir::HirVec::new(), span)),
span: output.as_ref().map_or(span, |ty| ty.span),
}],
#![feature(conservative_impl_trait)]
-pub fn fourway_add(a: i32) -> impl Fn(i32) -> impl Fn(i32) -> impl Fn(i32) -> i32 {
- move |b| move |c| move |d| a + b + c + d
-}
+// NOTE commented out due to issue #45994
+//pub fn fourway_add(a: i32) -> impl Fn(i32) -> impl Fn(i32) -> impl Fn(i32) -> i32 {
+// move |b| move |c| move |d| a + b + c + d
+//}
fn some_internal_fn() -> u32 {
1