rust/compiler/rustc_resolve/src
Jonas Schievink f049b0be96
Rollup merge of #79374 - mendess:const-param-expr-diagnostic, r=lcnr
Add note to use nightly when using expr in const generics

As recommended by `@Icnr` in #73899 and in zulip, I've added a note saying that const expressions can be used in nightly.

```
error: generic parameters may not be used in const operations
  --> $DIR/issue-61935.rs:10:23
   |
 6 |         Self:FooImpl<{N==0}>
   |                       ^ cannot perform const operation using `N`
   |
   = help: const parameters may only be used as standalone arguments, i.e. `N`
   = note: use feature(const_generics) and feature(const_evaluatable_checked) to enable this

error: aborting due to previous error
```

I hope the note is well written 😅
2020-11-24 13:17:51 +01:00
..
late Rollup merge of #77802 - jyn514:bootstrap-specific, r=nikomatsakis 2020-11-15 13:39:43 +01:00
build_reduced_graph.rs resolve: Do not put macros into module.unexpanded_invocations unless necessary 2020-11-22 14:42:29 +03:00
check_unused.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
def_collector.rs Expand NtExpr tokens only in key-value attributes 2020-11-03 00:53:43 +03:00
diagnostics.rs Swap note for help 2020-11-24 11:05:55 +00:00
imports.rs Revert "Revert "resolve: Avoid "self-confirming" import resolutions in one more case"" 2020-11-06 11:22:13 -05:00
late.rs Auto merge of #78826 - petrochenkov:mrscopes2, r=eddyb 2020-11-13 05:40:37 +00:00
lib.rs const_generics: assert resolve hack causes an error 2020-11-20 23:29:54 +01:00
macros.rs rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00