From c113503b41c1941bb94747c119d7749a5deae8b2 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Tue, 3 Dec 2024 15:14:50 +0100 Subject: [PATCH] Rust: fix doc typo --- .pre-commit-config.yaml | 2 +- rust/ql/.generated.list | 6 +++--- .../codeql/rust/controlflow/internal/generated/CfgNodes.qll | 2 +- rust/ql/lib/codeql/rust/elements/ArrayRepeatExpr.qll | 2 +- .../codeql/rust/elements/internal/ArrayRepeatExprImpl.qll | 2 +- .../rust/elements/internal/generated/ArrayRepeatExpr.qll | 2 +- .../ql/test/extractor-tests/generated/.generated_tests.list | 2 +- .../generated/ArrayRepeatExpr/gen_array_repeat_expr.rs | 2 +- rust/schema/annotations.py | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b677468025b..c0bd4abd0d02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,7 +72,7 @@ repos: - id: rust-codegen name: Run Rust checked in code generation - files: ^misc/codegen/|^rust/(schema.py$|codegen/|.*/generated/|ql/lib/(rust\.dbscheme$|codeql/rust/elements)|\.generated.list) + files: ^misc/codegen/|^rust/(prefix\.dbscheme|schema/|codegen/|.*/generated/|ql/lib/(rust\.dbscheme$|codeql/rust/elements)|\.generated.list) language: system entry: bazel run //rust/codegen -- --quiet pass_filenames: false diff --git a/rust/ql/.generated.list b/rust/ql/.generated.list index c4b09b740fdc..93bfbb28bef8 100644 --- a/rust/ql/.generated.list +++ b/rust/ql/.generated.list @@ -1,10 +1,10 @@ -lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll 707922d0b7d9718dbe552c3cba830d9ca66673f366f9e86e70137cd739029822 4a133879d2657597dd61f8e4b72944d8d81fb9115fb21488654804d05726911a +lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll 2dfc45d5b2b93b3aa226924da7f9321c2d7a20e60ac7a6a48215118f73fdb181 f1ec54884508eb1f72dcda6677f8e11b79043e906b1c7f3e408e1606e290e347 lib/codeql/rust/elements/Abi.qll 4c973d28b6d628f5959d1f1cc793704572fd0acaae9a97dfce82ff9d73f73476 250f68350180af080f904cd34cb2af481c5c688dc93edf7365fd0ae99855e893 lib/codeql/rust/elements/Addressable.qll 13011bfd2e1556694c3d440cc34af8527da4df49ad92b62f2939d3699ff2cea5 ddb25935f7553a1a384b1abe2e4b4fa90ab50b952dadec32fd867afcb054f4be lib/codeql/rust/elements/ArgList.qll 661f5100f5d3ef8351452d9058b663a2a5c720eea8cf11bedd628969741486a2 28e424aac01a90fb58cd6f9f83c7e4cf379eea39e636bc0ba07efc818be71c71 lib/codeql/rust/elements/ArrayExpr.qll 04e5710b083ce29b51e9c9cefd3fa24df5fbf79b0dbaef23b1724d7e708372e5 dd0b89075c985e67aaeb19e1750cc9301f0c1c991232d67a185797dcfe75b223 lib/codeql/rust/elements/ArrayListExpr.qll 451aedcecb479c385ff497588c7a07fda304fd5b873270223a4f2c804e96b245 a8cb008f6f732215623b5626c84b37b651ca01ccafb2cf4c835df35d5140c6ad -lib/codeql/rust/elements/ArrayRepeatExpr.qll d7be62b0840660beffabb5951b40ae1c1b77d1d6bdab9a75ec7f1d456420a1d3 847fc9105a7e1c99e1fbedf4ea7bcd198f3392819b6c1fab9c893c2c06f8a3cd +lib/codeql/rust/elements/ArrayRepeatExpr.qll 4b7ed5be7d2caaf69f6fc0cd05b0e2416c52d547b1a73fb23d5a13007f75f4dd f6366f21cc48376b5fdf37e8c5c2b19415d4cbdeef09f33bb99cde5cb0f5b0e7 lib/codeql/rust/elements/ArrayType.qll affd43d308200d60d08e8924cdbb2a17a827ebaa62a296e07bb9ce97451e3c4c 80589a7f79bf2ac293a027faf2589b3027a6c4a286533f2ffccad259a306a8cb lib/codeql/rust/elements/AsmExpr.qll 2f1c78e92b56d66a559543b2103d8f880dd4fa4c6907346f668b3714cf2355e9 12e174fc469c067c957f6c1a5969ab56a71a07c537ca930a564cce81c7ab4481 lib/codeql/rust/elements/AssocItem.qll 5e514287bbe353d1d637991e7af836e5659ad66922df99af68ab61399e7f8f9a 3733af54938271161ee2720c32ac43228d519b5c46b7cea1e4bbe3dc634f8857 @@ -422,7 +422,7 @@ lib/codeql/rust/elements/internal/generated/ArgList.qll 1b75b2d7dcf524eb468a0268 lib/codeql/rust/elements/internal/generated/ArrayExpr.qll 64d194a9a9d6467d123b90f910775ffc28b6c04e44990d6a1af6d1dbb2ec5bf5 ccc6183f9e90a6c11c5f79a068003a7d63db227fa69287d3ac12d48e8af63ac7 lib/codeql/rust/elements/internal/generated/ArrayExprInternal.qll 67a7b0fae04b11cf771727ff39a123fb2d5ce6e2d650d32478fcb33a26ed5688 15833405fa85f6abe0e5146dac283cb5a142a07f08300ccc15a1dae30ed88942 lib/codeql/rust/elements/internal/generated/ArrayListExpr.qll f325163c2bd401286305330482bee20d060cecd24afa9e49deab7ba7e72ca056 ae3f5b303e31fc6c48b38172304ee8dcf3af2b2ba693767824ea8a944b6be0eb -lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll c8da67cf3bd67e1101b6ebc342f0b4ba2d9366c300f2eadeb017efedfcb3b5de 0e6ba406b156b07a4d3c28eca187ff9f90b2ef6a73899c0dc703d69953d49e6a +lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll ac2035488d5b9328f01ce2dd5bd7598e3af1cbb383ddb48b648e1e8908ea82fc 3ec910b184115fb3750692287e8039560e20bd6a5fb26ac1f9c346424d8eaa48 lib/codeql/rust/elements/internal/generated/ArrayType.qll 225ac477f67865d72b2a2e17420f5e52c25452a3c14f7ff367f873a859f97783 0030e3bf296dd5b69ea912fc85dc7120b060780033083127257cdca792dc3f4b lib/codeql/rust/elements/internal/generated/AsmExpr.qll b5fef59589c02c17857a4a7f5c7b5efb747a1e98710167efa5c2e88cffd7bcbb b43b297a3b4894e8dd92ef3a23b76f2684c303d41e6030398e69b7754ebea9cd lib/codeql/rust/elements/internal/generated/AssocItem.qll aa7c06e001b67e4a59476fa7299e09f8da16c93f91aff0ec9812c64386e7c023 0032b45e34e6aba9c4b3d319b108efa0de8ad679b5f254a1ec7c606877ff5e95 diff --git a/rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll b/rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll index f84547933c02..97d44793667c 100644 --- a/rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll +++ b/rust/ql/lib/codeql/rust/controlflow/internal/generated/CfgNodes.qll @@ -143,7 +143,7 @@ module MakeCfgNodes Input> { } /** - * An array expression with a repeat oeprand and a repeat length. For example: + * An array expression with a repeat operand and a repeat length. For example: * ```rust * [1; 10]; * ``` diff --git a/rust/ql/lib/codeql/rust/elements/ArrayRepeatExpr.qll b/rust/ql/lib/codeql/rust/elements/ArrayRepeatExpr.qll index 4253f75f0319..7e6be8cc2632 100644 --- a/rust/ql/lib/codeql/rust/elements/ArrayRepeatExpr.qll +++ b/rust/ql/lib/codeql/rust/elements/ArrayRepeatExpr.qll @@ -8,7 +8,7 @@ import codeql.rust.elements.ArrayExpr import codeql.rust.elements.Expr /** - * An array expression with a repeat oeprand and a repeat length. For example: + * An array expression with a repeat operand and a repeat length. For example: * ```rust * [1; 10]; * ``` diff --git a/rust/ql/lib/codeql/rust/elements/internal/ArrayRepeatExprImpl.qll b/rust/ql/lib/codeql/rust/elements/internal/ArrayRepeatExprImpl.qll index 2f1f75a48a80..dbf8bcf46fa3 100644 --- a/rust/ql/lib/codeql/rust/elements/internal/ArrayRepeatExprImpl.qll +++ b/rust/ql/lib/codeql/rust/elements/internal/ArrayRepeatExprImpl.qll @@ -15,7 +15,7 @@ private import codeql.rust.elements.internal.generated.Synth module Impl { // the following QLdoc is generated: if you need to edit it, do it in the schema file /** - * An array expression with a repeat oeprand and a repeat length. For example: + * An array expression with a repeat operand and a repeat length. For example: * ```rust * [1; 10]; * ``` diff --git a/rust/ql/lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll b/rust/ql/lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll index 8451ad5c34f7..df7b21452a1c 100644 --- a/rust/ql/lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll +++ b/rust/ql/lib/codeql/rust/elements/internal/generated/ArrayRepeatExpr.qll @@ -15,7 +15,7 @@ import codeql.rust.elements.Expr */ module Generated { /** - * An array expression with a repeat oeprand and a repeat length. For example: + * An array expression with a repeat operand and a repeat length. For example: * ```rust * [1; 10]; * ``` diff --git a/rust/ql/test/extractor-tests/generated/.generated_tests.list b/rust/ql/test/extractor-tests/generated/.generated_tests.list index a966b68bf50c..b2f6bcd4cb16 100644 --- a/rust/ql/test/extractor-tests/generated/.generated_tests.list +++ b/rust/ql/test/extractor-tests/generated/.generated_tests.list @@ -1,7 +1,7 @@ Abi/gen_abi.rs 5d2f6eccb2bab86080188be9700ab64a34fa6e8e8e7b08f65a5c97d1de0a900c 5d2f6eccb2bab86080188be9700ab64a34fa6e8e8e7b08f65a5c97d1de0a900c ArgList/gen_arg_list.rs 569d0b9b0479de5453ae0f89e4f90e32b02ee84dfb3d815821d722ece6f75b64 569d0b9b0479de5453ae0f89e4f90e32b02ee84dfb3d815821d722ece6f75b64 ArrayListExpr/gen_array_list_expr.rs 99a1233b77a6b6eb0a538025688ca5a0824118a123bef0fe3f92a81834b17924 99a1233b77a6b6eb0a538025688ca5a0824118a123bef0fe3f92a81834b17924 -ArrayRepeatExpr/gen_array_repeat_expr.rs 2d3ed378b055681b71efda5c50989d2465c8b4210bd1ad52a05d68c55aaa61e2 2d3ed378b055681b71efda5c50989d2465c8b4210bd1ad52a05d68c55aaa61e2 +ArrayRepeatExpr/gen_array_repeat_expr.rs 8cc7c0a435a02864290db6a498a5fcf227d8ee7ed87ee1943ad4d326c8314a0e 8cc7c0a435a02864290db6a498a5fcf227d8ee7ed87ee1943ad4d326c8314a0e ArrayType/gen_array_type.rs 3cb5f35006648d676ead1088aa330cd34beaabaaad7b9aa952e6375bc1cec5cb 3cb5f35006648d676ead1088aa330cd34beaabaaad7b9aa952e6375bc1cec5cb AsmExpr/gen_asm_expr.rs 00b21fd66fe12785174bd0160d0317a6c78ff05dbba73313eb07b56531cf3158 00b21fd66fe12785174bd0160d0317a6c78ff05dbba73313eb07b56531cf3158 AssocTypeArg/gen_assoc_type_arg.rs 00ec0e22c4d73338de605dc3b1b1306bc83a95f87376ce976f08d2f9923cc2b4 00ec0e22c4d73338de605dc3b1b1306bc83a95f87376ce976f08d2f9923cc2b4 diff --git a/rust/ql/test/extractor-tests/generated/ArrayRepeatExpr/gen_array_repeat_expr.rs b/rust/ql/test/extractor-tests/generated/ArrayRepeatExpr/gen_array_repeat_expr.rs index f30f1916d4a8..9c68fb96f86e 100644 --- a/rust/ql/test/extractor-tests/generated/ArrayRepeatExpr/gen_array_repeat_expr.rs +++ b/rust/ql/test/extractor-tests/generated/ArrayRepeatExpr/gen_array_repeat_expr.rs @@ -1,6 +1,6 @@ // generated by codegen, do not edit fn test_array_repeat_expr() -> () { - // An array expression with a repeat oeprand and a repeat length. For example: + // An array expression with a repeat operand and a repeat length. For example: [1; 10]; } diff --git a/rust/schema/annotations.py b/rust/schema/annotations.py index dd241d5b7505..2978cb13c66f 100644 --- a/rust/schema/annotations.py +++ b/rust/schema/annotations.py @@ -579,7 +579,7 @@ class ArrayListExpr(ArrayExpr): @synth.from_class(ArrayExprInternal) class ArrayRepeatExpr(ArrayExpr): """ - An array expression with a repeat oeprand and a repeat length. For example: + An array expression with a repeat operand and a repeat length. For example: ```rust [1; 10]; ```