Sitelet https://github.com/dtolnay/syn/commit/fb251b4dcb241601013c30cae3870135609c329d
Skip to content

Commit fb251b4

Browse files
committed
Delete early return from lazy-static error case
It should still expand to a `static` in this case to avoid producing needless name resolution errors in caller's code.
1 parent 7cb1cc5 commit fb251b4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • examples/lazy-static/lazy-static/src

‎examples/lazy-static/lazy-static/src/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub fn lazy_static(input: TokenStream) -> TokenStream {
8282
.unwrap()
8383
.error("I can't think of a legitimate use for lazily initializing the value `()`")
8484
.emit();
85-
return TokenStream::new();
8685
}
8786

8887
// Assert that the static type implements Sync. If not, user sees an error

0 commit comments

Comments
 (0)