diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b7b53860f..144805d1ce 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 6f943e6942..46444a93bb 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 `` is passed as argument, the regular expression to be stored will /// be `^()$`. +/// +/// 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,