Extra assertions in eval_body_using_ecx to disallow queries for

functions that does allocations
This commit is contained in:
Tunahan Karlibas 2020-12-09 14:53:35 +03:00
parent 7cb74ed191
commit de1cd4b36d
No known key found for this signature in database
GPG key ID: ECC4968DC9D453DE
2 changed files with 7 additions and 1 deletions

View file

@ -132,7 +132,6 @@ pub use self::pointer::{Pointer, PointerArithmetic};
/// Uniquely identifies one of the following:
/// - A constant
/// - A static
/// - A const fn where all arguments (if any) are zero-sized types
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, TyEncodable, TyDecodable)]
#[derive(HashStable, Lift)]
pub struct GlobalId<'tcx> {