You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *`target_feature`[attribute]* may be applied to a function to
61
61
enable code generation of that function for specific platform architecture
62
-
features. It uses the [_MetaListNameValueStr_] syntax with a single key of
62
+
features. It uses the [MetaListNameValueStr] syntax with a single key of
63
63
`enable` whose value is a string of comma-separated feature names to enable.
64
64
65
65
```rust
@@ -495,7 +495,6 @@ trait object whose methods are attributed.
495
495
> [!NOTE]
496
496
> The aforementioned shim for function pointers is necessary because `rustc` implements `track_caller` in a codegen context by appending an implicit parameter to the function ABI, but this would be unsound for an indirect call because the parameter is not a part of the function's type and a given function pointer type may or may not refer to a function with the attribute. The creation of a shim hides the implicit parameter from callers of the function pointer, preserving soundness.
@@ -663,9 +663,6 @@ error[E0277]: the trait bound `&str: AsExpression<Integer>` is not satisfied
663
663
The first error message includes a somewhat confusing error message about the relationship of `&str` and `Expression`, as well as the unsatisfied trait bound in the blanket impl. After adding `#[diagnostic::do_not_recommend]`, it no longer considers the blanket impl for the recommendation. The message should be a little clearer, with an indication that a string cannot be converted to an `Integer`.
0 commit comments