Flag unsafe blocks from format! as compiler-generated

This commit is contained in:
Alex Crichton 2013-09-05 20:50:10 -07:00
parent 19a6fabad8
commit 11e9c48353
5 changed files with 21 additions and 5 deletions

View file

@ -479,7 +479,13 @@ pub struct Field {
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
pub enum BlockCheckMode {
DefaultBlock,
UnsafeBlock(/* generated internally */ bool),
UnsafeBlock(UnsafeSource),
}
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
pub enum UnsafeSource {
CompilerGenerated,
UserProvided,
}
#[deriving(Clone, Eq, Encodable, Decodable,IterBytes)]