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
[Docs] Fully qualify standard library imports with std. prefix
Summary
As of Mojo 1.0.0b2, implicit standard-library imports are a hard error —
stdlib modules must be fully qualified with a std. prefix (e.g. from
std.gpu.host import DeviceContext instead of from gpu.host import
DeviceContext). This was previously a deprecation warning in b1. Several
doc/tutorial code examples still used the old syntax, so readers copying
them now hit an unhelpful unable to locate module 'gpu' error.
This PR migrates the remaining stale examples across the docs to the
std.-qualified form. Reported in [forum
#3237](https://forum.modular.com/t/standard-library-import-warning-error-between-b1-and-b2/3237).
MODULAR_ORIG_COMMIT_REV_ID: 8ddba94a5b0a5b29b29f2baa89bf340227b01a79
0 commit comments