From 3774687f4bebd5bdf3f95ec8e3652f4776db1656 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Tue, 4 Jun 2024 17:54:48 +0000 Subject: [PATCH] Bug 1900522 Part 3 - Update autogen_warning in servo/ports/geckolib/cbindgen.toml. r=layout-reviewers,emilio We don't need to manually generate `ServoStyleConsts.h`. Update the warning to avoid confusion. Differential Revision: https://phabricator.services.mozilla.com/D212506 --- servo/ports/geckolib/cbindgen.toml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/servo/ports/geckolib/cbindgen.toml b/servo/ports/geckolib/cbindgen.toml index 5388f2a79399..5f4e423b0c50 100644 --- a/servo/ports/geckolib/cbindgen.toml +++ b/servo/ports/geckolib/cbindgen.toml @@ -19,11 +19,8 @@ trailer = """ #pragma GCC diagnostic pop #include "mozilla/ServoStyleConstsInlines.h" """ -autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. - * To generate this file: - * 1. Get the latest cbindgen using `cargo install --force cbindgen` - * a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release - * 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate style -o layout/style/ServoStyleConsts.h` +autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. See RunCbindgen.py + * To modify this file, edit servo/ports/geckolib/cbindgen.toml and build Firefox. */ """ include_guard = "mozilla_ServoStyleConsts_h"