1
Fork 0

Automatically taint when reporting errors from ItemCtxt

This commit is contained in:
Oli Scherer 2024-07-05 09:16:00 +00:00
parent cd3d98b3be
commit fd9a92542c
26 changed files with 183 additions and 374 deletions

View file

@ -16,7 +16,6 @@ fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
//~| ERROR: type provided when a constant was expected
Example::<gimme_a_const!(marker)>
//~^ ERROR: type provided when a constant was expected
//~| ERROR type annotations needed
}
fn from_marker(_: impl Marker<{
@ -37,10 +36,8 @@ fn main() {
let _fail = Example::<external_macro!()>;
//~^ ERROR: type provided when a constant
//~| ERROR type annotations needed
let _fail = Example::<gimme_a_const!()>;
//~^ ERROR unexpected end of macro invocation
//~| ERROR: type provided when a constant was expected
//~| ERROR type annotations needed
}