]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #96432 - SparrowLii:dbg_scope, r=davidtwco
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Thu, 28 Apr 2022 00:40:34 +0000 (02:40 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 00:40:34 +0000 (02:40 +0200)
commitd956d014f28d4a57e62b22ef6993a7d6811a573d
tree2c1a17b7ba902df2352229f468dc8e9d831e6f54
parent80045d65e111568f0fe2f5371a6d0f7d8c81b496
parent843e8d19ec9dc0f1c0ddd700210761aef2b180d5
Rollup merge of #96432 - SparrowLii:dbg_scope, r=davidtwco

not need `Option` for `dbg_scope`

This PR fixes a few FIXME about not using `Option` in `dbg_scope` field of `DebugScope`, during `create_function_debug_context` func in codegen parts.
Added a `BitSet<SourceScope>` parameter to `make_mir_scope` to indicate whether the `DebugScope` has been instantiated.
cc ````@eddyb````