Skip to content

Commit 2653440

Browse files
bors[bot]matklad
andauthored
Merge #5323
5323: Rewrite item_tree tests to expect r=matklad a=matklad insta review wouldn't update the test, so ... bors r+ πŸ€– Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 00c81f8 + b20a6b5 commit 2653440

File tree

4 files changed

+112
-105
lines changed

4 files changed

+112
-105
lines changed

β€ŽCargo.lockβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcrates/ra_hir_def/Cargo.tomlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ tt = { path = "../ra_tt", package = "ra_tt" }
3333

3434
[dev-dependencies]
3535
insta = "0.16.0"
36+
expect = { path = "../expect" }

β€Žcrates/ra_hir_def/src/item_tree/lower.rsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ impl Ctx {
546546
let id: ModItem = match item {
547547
ast::ExternItem::FnDef(ast) => {
548548
let func = self.lower_function(&ast)?;
549+
self.data().functions[func.index].is_unsafe = true;
549550
func.into()
550551
}
551552
ast::ExternItem::StaticDef(ast) => {

0 commit comments

Comments
Β (0)