Add unsized_fn_params feature
This commit is contained in:
parent
2a71e45411
commit
708fc3b1a2
46 changed files with 165 additions and 86 deletions
|
@ -1845,9 +1845,9 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
|||
err.note("all function arguments must have a statically known size");
|
||||
}
|
||||
if tcx.sess.opts.unstable_features.is_nightly_build()
|
||||
&& !self.tcx.features().unsized_locals
|
||||
&& !self.tcx.features().unsized_fn_params
|
||||
{
|
||||
err.help("unsized locals are gated as an unstable feature");
|
||||
err.help("unsized fn params are gated as an unstable feature");
|
||||
}
|
||||
}
|
||||
ObligationCauseCode::SizedReturnType => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue