1
Fork 0

Clarify that raw retags are not permitted in Mir

This commit is contained in:
Jakob Degen 2022-12-21 10:30:38 -08:00
parent d6da428f34
commit cb2c7bb833
7 changed files with 17 additions and 19 deletions

View file

@ -15,9 +15,6 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
@call("mir_retag", args) => {
Ok(StatementKind::Retag(RetagKind::Default, Box::new(self.parse_place(args[0])?)))
},
@call("mir_retag_raw", args) => {
Ok(StatementKind::Retag(RetagKind::Raw, Box::new(self.parse_place(args[0])?)))
},
@call("mir_set_discriminant", args) => {
let place = self.parse_place(args[0])?;
let var = self.parse_integer_literal(args[1])? as u32;