Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: godot-rust/gdext
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2dc78d27b96cb73fe6f9f6abfd6be37337a2d3a6
Choose a base ref
..
head repository: godot-rust/gdext
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 34709771ca5f20077852d926b4f16c1434f6d5e4
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 godot-core/src/obj/gd.rs
3 changes: 1 addition & 2 deletions godot-core/src/obj/gd.rs
Original file line number Diff line number Diff line change
@@ -209,8 +209,7 @@ impl<T: GodotClass> Gd<T> {
/// ⚠️ Returns the last known, possibly invalid instance ID of this object.
///
/// This function does not check that the returned instance ID points to a valid instance!
/// Unless performance is a problem, use [`instance_id()`][Self::instance_id] or
/// [`instance_id_or_none()`][Self::instance_id_or_none] instead.
/// Unless performance is a problem, use [`instance_id()`][Self::instance_id] instead.
pub fn instance_id_unchecked(&self) -> InstanceId {
// SAFETY:
// A `Gd` can only be created from a non-null `RawGd`. Meaning `raw.instance_id_unchecked()` will