about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-23 14:11:42 +0000
committerGitHub <noreply@github.com>2022-03-23 14:11:42 +0000
commitde5925da5c4f5840781a8a6481ffa3289c413e4c (patch)
tree64718b0b47787a707aaa71076175a24f882556fd /src/test/codegen/src-hash-algorithm
parent83b4329c6f5914cd5aba7ef51f8cc2aea10522d9 (diff)
parent1e2a4c1bdbc72b6cf5cc894d96fdbf8d5709e44a (diff)
downloadrust-de5925da5c4f5840781a8a6481ffa3289c413e4c.tar.gz
rust-de5925da5c4f5840781a8a6481ffa3289c413e4c.zip
Merge #11801
11801: fix: avoid returning `None` from `Span::join` to fix some proc macros r=jonas-schievink a=jonas-schievink

Some proc macros, notably rocket, `.unwrap()` the result of `Span::join` (and correctly so, it should never be `None`). We don't have a proper implementation of that API, so we always returned `None`. This changes our stub impl to return the first span instead.

Does not fully fix rocket's macros, they need other stuff to work too.

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions