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
* it is an error to name an item through ambiguous use declarations
143
-
* two globs imports which both have an item matching that name where the items are different
144
-
* this is not an error even if is a third non glob binding resolution to an item with the same name
145
-
* it is not an error to have two glob imports which include items which would be ambiguous so long as you do not name one of those items through the ambiguous glob imports
146
-
* Should this live alongside use decls item page or in the name resolution page?
* derive helpers used before their associated derive may not shadow other attributes or other derive helpers that are otherwise in scope after their derive
242
-
* TODO example? This ones harder to do concisely afaik
243
-
244
-
Helper attributes may not be used before the macro that introduces them.
245
-
246
-
* What happens if two macros introduce the same helper, will the second one not
247
-
be able to see the attribute of the first anymore, assuming their order is
248
-
"firstmacro" "helper" "secondmacro"?
249
-
250
-
> [!NOTE]
251
-
> rustc currently allows derive helpers to be used before their attribute macro
252
-
> introduces them into scope so long as they do not shadow any other attributes
253
-
> or derive helpers that are otherwise correctly in scope. This behavior
254
-
> deprecated and slated for removal.
255
-
> <!-- ignore: requires external crates -->
256
-
> ```rust,ignore
257
-
> #[helper] // deprecated, hard error in the future
258
-
> #[derive(WithHelperAttr)]
259
-
> struct Struct {
260
-
> field: (),
261
-
> }
262
-
> ```
263
-
>
264
-
> For more details, see [Rust issue #79202](https://github.com/rust-lang/rust/issues/79202).
* derive helpers used before their associated derive may not shadow other attributes or other derive helpers that are otherwise in scope after their derive
348
+
* TODO example? This ones harder to do concisely afaik
349
+
350
+
Helper attributes may not be used before the macro that introduces them.
351
+
352
+
* What happens if two macros introduce the same helper, will the second one not
353
+
be able to see the attribute of the first anymore, assuming their order is
354
+
"firstmacro" "helper" "secondmacro"?
355
+
356
+
> [!NOTE]
357
+
> rustc currently allows derive helpers to be used before their attribute macro
358
+
> introduces them into scope so long as they do not shadow any other attributes
359
+
> or derive helpers that are otherwise correctly in scope. This behavior
360
+
> deprecated and slated for removal.
361
+
> <!-- ignore: requires external crates -->
362
+
> ```rust,ignore
363
+
> #[helper] // deprecated, hard error in the future
364
+
> #[derive(WithHelperAttr)]
365
+
> struct Struct {
366
+
> field: (),
367
+
> }
368
+
> ```
369
+
>
370
+
> For more details, see [Rust issue #79202](https://github.com/rust-lang/rust/issues/79202).
0 commit comments