diff options
| author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2023-06-05 13:10:23 +0300 | 
|---|---|---|
| committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2023-06-05 13:10:23 +0300 | 
| commit | 9ff17e6bdaa50892dd9bdb1b116cb71b73dd711a (patch) | |
| tree | cbffbccb83865b418a0aabb4487b6e8fe70c590d /scripts/generate_rust_analyzer.py | |
| parent | d922b80b1010cd6164fa7d3c197b4fbf94b47beb (diff) | |
| parent | 2e1492835e439fceba57a5b0f9b17da8e78ffa3d (diff) | |
| download | linux-9ff17e6bdaa50892dd9bdb1b116cb71b73dd711a.tar.xz | |
Merge drm/drm-next into drm-intel-gt-next
For conflict avoidance we need the following commit:
  c9a9f18d3ad8 drm/i915/huc: use const struct bus_type pointers
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
| -rwxr-xr-x | scripts/generate_rust_analyzer.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py index ecc7ea9a4dcf..946e250c1b2a 100755 --- a/scripts/generate_rust_analyzer.py +++ b/scripts/generate_rust_analyzer.py @@ -104,7 +104,10 @@ def generate_crates(srctree, objtree, sysroot_src):              name = path.name.replace(".rs", "")              # Skip those that are not crate roots. -            if f"{name}.o" not in open(path.parent / "Makefile").read(): +            try: +                if f"{name}.o" not in open(path.parent / "Makefile").read(): +                    continue +            except FileNotFoundError:                  continue              logging.info("Adding %s", name) | 
