Skip to content

Commit 12cae30

Browse files
Drop forget_guarantee, introduced only on master
1 parent 9d7e021 commit 12cae30

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_builtin_macros/src

1 file changed

+1
-4
lines changed

compiler/rustc_builtin_macros/src/test.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ pub fn expand_test_or_bench(
111111
// These were a warning before #92959 and need to continue being that to avoid breaking
112112
// stable user code (#94508).
113113
ast::ItemKind::MacCall(_) => diag.struct_span_warn(attr_sp, msg),
114-
// `.forget_guarantee()` needed to get these two arms to match types. Because of how
115-
// locally close the `.emit()` call is I'm comfortable with it, but if it can be
116-
// reworked in the future to not need it, it'd be nice.
117-
_ => diag.struct_span_err(attr_sp, msg).forget_guarantee(),
114+
_ => diag.struct_span_err(attr_sp, msg),
118115
};
119116
err.span_label(attr_sp, "the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions")
120117
.span_label(item.span, format!("expected a non-associated function, found {} {}", item.kind.article(), item.kind.descr()))

0 commit comments

Comments
 (0)