Tell users not to file a bug when using internal library features
This commit is contained in:
parent
eb10639928
commit
b5a03c75d5
@ -117,6 +117,12 @@ fn feature_list(attr: &Attribute) -> ThinVec<ast::NestedMetaItem> {
|
||||
// Otherwise, the feature is unknown. Record it as a lib feature.
|
||||
// It will be checked later.
|
||||
features.set_declared_lib_feature(name, mi.span());
|
||||
|
||||
// Similar to above, detect internal lib features to suppress
|
||||
// the ICE message that asks for a report.
|
||||
if features.internal(name) && ![sym::core, sym::alloc, sym::std].contains(&crate_name) {
|
||||
sess.using_internal_features.store(true, std::sync::atomic::Ordering::Relaxed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user