Skip to content

Commit 5ba22c0

Browse files
committed
Add item_like_imports feature.
1 parent 513e955 commit 5ba22c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ pub struct Resolver<'a> {
10531053

10541054
arenas: &'a ResolverArenas<'a>,
10551055
dummy_binding: &'a NameBinding<'a>,
1056+
new_import_semantics: bool, // true if `#![feature(item_like_imports)]`
10561057
}
10571058

10581059
pub struct ResolverArenas<'a> {
@@ -1209,6 +1210,7 @@ impl<'a> Resolver<'a> {
12091210
span: DUMMY_SP,
12101211
vis: ty::Visibility::Public,
12111212
}),
1213+
new_import_semantics: session.features.borrow().item_like_imports,
12121214
}
12131215
}
12141216

src/libsyntax/feature_gate.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ declare_features! (
285285

286286
// Allows the sysV64 ABI to be specified on all platforms
287287
// instead of just the platforms on which it is the C ABI
288-
(active, abi_sysv64, "1.13.0", Some(36167))
288+
(active, abi_sysv64, "1.13.0", Some(36167)),
289+
290+
// Use the import semantics from RFC 1560.
291+
(active, item_like_imports, "1.13.0", Some(35120))
289292
);
290293

291294
declare_features! (

0 commit comments

Comments
 (0)