Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/lib.rs')
-rw-r--r--crates/hir-def/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir-def/src/lib.rs b/crates/hir-def/src/lib.rs
index da9ffae8aa..c78818c642 100644
--- a/crates/hir-def/src/lib.rs
+++ b/crates/hir-def/src/lib.rs
@@ -114,6 +114,9 @@ pub struct ImportPathConfig {
pub prefer_prelude: bool,
/// If true, prefer abs path (starting with `::`) where it is available.
pub prefer_absolute: bool,
+ /// If true, paths containing `#[unstable]` segments may be returned, but only if if there is no
+ /// stable path. This does not check, whether the item itself that is being imported is `#[unstable]`.
+ pub allow_unstable: bool,
}
#[derive(Debug)]