Rollup merge of #79291 - JulianKnodt:ce_priv, r=petrochenkov

Add error message for private fn

Attempts to add a more detailed error when a `const_evaluatable` fn from another scope is used inside of a scope which cannot access it.

r? ````@lcnr````
This commit is contained in:
Jonas Schievink 2021-02-01 14:29:29 +01:00 committed by GitHub
commit 21d0e9b8dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 111 additions and 8 deletions

View file

@ -6,7 +6,7 @@ pub mod auto_trait;
mod chalk_fulfill;
pub mod codegen;
mod coherence;
mod const_evaluatable;
pub mod const_evaluatable;
mod engine;
pub mod error_reporting;
mod fulfill;