diff options
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | bindgen/lib.rs | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b7b5386..144805d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -201,7 +201,8 @@ ## Changed * Regex inputs are sanitized so alternation (`a|b`) is handled correctly but - wildcard patterns (`*`) are now considered invalid. + wildcard patterns (`*`) are now considered invalid. The `.*` pattern can be + used as a replacement. * the `ParseCallbacks`trait does not require to implement `UnwindSafe`. * the `Builder::parse_callbacks` method no longer overwrites previously added callbacks and composes them in a last-to-first manner. diff --git a/bindgen/lib.rs b/bindgen/lib.rs index 6f943e69..46444a93 100644 --- a/bindgen/lib.rs +++ b/bindgen/lib.rs @@ -244,6 +244,10 @@ impl Default for CodegenConfig { /// regular expressions as arguments. These regular expressions will be parenthesized and wrapped /// in `^` and `$`. So if `<regex>` is passed as argument, the regular expression to be stored will /// be `^(<regex>)$`. +/// +/// Releases of `bindgen` with a version lesser or equal to `0.62.0` used to accept the wildcard +/// pattern `*` as a valid regular expression. This behavior has been deprecated and the `.*` +/// pattern must be used instead. #[derive(Debug, Default, Clone)] pub struct Builder { options: BindgenOptions, |