// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//go:build go1.20
//go:build go1.21
// +build go1.20
// +build go1.21
packageassume_no_moving_gc
packageassume_no_moving_gc
@ -22,5 +22,5 @@ func init() {
ifos.Getenv(env)==v{
ifos.Getenv(env)==v{
return
return
}
}
panic("Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the "+v+" runtime. If you want to risk it, run with environment variable "+env+"="+v+" set. Notably, if "+v+" adds a moving garbage collector, this program is unsafe to use.")
panic("Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the "+v+" runtime. If you want to risk it, run with environment variable "+env+"=\""+v+"\" set. Notably, if "+v+" adds a moving garbage collector, this program is unsafe to use.")