We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0823d commit c8886d5Copy full SHA for c8886d5
xtask/src/check_raw.rs
@@ -16,8 +16,8 @@ use syn::spanned::Spanned;
16
use syn::token::Comma;
17
use syn::{
18
parenthesized, Abi, Attribute, Field, Fields, FieldsNamed, FieldsUnnamed, File, Item,
19
- ItemConst, ItemMacro, ItemStruct, ItemType, LitInt, ReturnType, Type, TypeBareFn,TypePtr,
20
- Visibility,
+ ItemConst, ItemMacro, ItemStruct, ItemType, LitInt, ReturnType, Type, TypeArray,TypeBareFn,
+ TypePtr,Visibility,
21
};
22
use walkdir::WalkDir;
23
@@ -195,6 +195,7 @@ fn is_efiapi(f: &TypeBareFn) -> bool {
195
/// Validate a type (used for fields, arguments, and return types).
196
fn check_type(ty: &Type, src: &Path) -> Result<(), Error> {
197
match ty {
198
+ Type::Array(TypeArray { elem, .. }) => check_type(elem, src),
199
Type::BareFn(f) => check_fn_ptr(f, src),
200
Type::Never(_) | Type::Path(_) => {
201
// Allow.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments